|
44 | 44 | import org.csploit.android.gui.dialogs.FatalDialog; |
45 | 45 | import org.csploit.android.helpers.NetworkHelper; |
46 | 46 | import org.csploit.android.helpers.ThreadHelper; |
47 | | -import org.csploit.android.net.Endpoint; |
48 | 47 | import org.csploit.android.net.GitHubParser; |
49 | 48 | import org.csploit.android.net.Network; |
50 | 49 | import org.csploit.android.net.RemoteReader; |
51 | 50 | import org.csploit.android.net.Target; |
52 | 51 | import org.csploit.android.net.Target.Exploit; |
53 | | -import org.csploit.android.net.Target.Type; |
54 | 52 | import org.csploit.android.net.http.proxy.HTTPSRedirector; |
55 | 53 | import org.csploit.android.net.http.proxy.Proxy; |
56 | 54 | import org.csploit.android.net.http.server.Server; |
|
87 | 85 | import java.util.LinkedList; |
88 | 86 | import java.util.List; |
89 | 87 | import java.util.Map; |
90 | | -import java.util.Vector; |
91 | 88 | import java.util.regex.Matcher; |
92 | 89 | import java.util.regex.Pattern; |
93 | 90 | import java.util.zip.GZIPInputStream; |
@@ -836,12 +833,10 @@ public static void loadSession(String filename) throws Exception{ |
836 | 833 | throw new Exception(filename + " does not exists or is empty."); |
837 | 834 | } |
838 | 835 |
|
839 | | - public static ToolBox getTools() { |
840 | | - synchronized (System.class) { |
841 | | - if(mTools == null) |
842 | | - mTools = new ToolBox(); |
843 | | - return mTools; |
844 | | - } |
| 836 | + public synchronized static ToolBox getTools() { |
| 837 | + if(mTools == null) |
| 838 | + mTools = new ToolBox(); |
| 839 | + return mTools; |
845 | 840 | } |
846 | 841 |
|
847 | 842 | public static RPCClient getMsfRpc() { |
|
0 commit comments