File tree Expand file tree Collapse file tree
cSploit/src/org/csploit/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545import org .csploit .android .WifiScannerActivity ;
4646import org .csploit .android .gui .dialogs .FatalDialog ;
4747import org .csploit .android .net .Endpoint ;
48+ import org .csploit .android .net .GitHubParser ;
4849import org .csploit .android .net .Network ;
4950import org .csploit .android .net .Network .Protocol ;
5051import org .csploit .android .net .Target ;
@@ -1203,6 +1204,8 @@ public static void clean(boolean releaseLocks){
12031204 mWakeLock .release ();
12041205 }
12051206
1207+ GitHubParser .resetAll ();
1208+
12061209 synchronized (mTargets ) {
12071210
12081211 for (Target t : mTargets )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class GitHubParser {
5454 private static GitHubParser coreRepo = new GitHubParser ("cSploit" , "android.native" );
5555 private static GitHubParser rubyRepo = new GitHubParser ("cSploit" , "android.native.ruby" );
5656
57- public static GitHubParser getMsfRepo () {
57+ public synchronized static GitHubParser getMsfRepo () {
5858 String customUsername = System .getSettings ().getString ("MSF_GITHUB_USERNAME" , "cSploit" );
5959 String customProject = System .getSettings ().getString ("MSF_GITHUB_PROJECT" , "android.MSF" );
6060
@@ -79,6 +79,13 @@ public static GitHubParser getRubyRepo() {
7979 return rubyRepo ;
8080 }
8181
82+ public static void resetAll () {
83+ cSploitRepo .reset ();
84+ coreRepo .reset ();
85+ rubyRepo .reset ();
86+ msfRepo .reset ();
87+ }
88+
8289 public GitHubParser (String username , String project ) {
8390 this .username = username ;
8491 this .project = project ;
You can’t perform that action at this time.
0 commit comments