MCPcopy Create free account
hub / github.com/cSploit/android / setMsfRpc

Method setMsfRpc

cSploit/src/org/csploit/android/core/System.java:859–876  ·  view source on GitHub ↗
(RPCClient value)

Source from the content-addressed store, hash-verified

857 }
858
859 public static void setMsfRpc(RPCClient value){
860 if(value==mMsfRpc)
861 return;
862 mMsfRpc = value;
863 // refresh all exploits
864 // NOTE: this method is usually called by the RPCServer Thread, which will not block the UI
865 for (Target t : getTargets()) { // use a copy of the targets to avoid deadlocks.
866 for (Exploit e : t.getExploits()) {
867 if (e instanceof MsfExploit) {
868 ((MsfExploit) e).refresh();
869 }
870 }
871 }
872 for( Plugin plugin : getPluginsForTarget() ) {
873 plugin.onRpcChange(value);
874 }
875
876 }
877
878 public static Proxy getProxy(){
879 try{

Callers 2

connectMethod · 0.95
disconnectMethod · 0.95

Calls 5

getTargetsMethod · 0.95
getPluginsForTargetMethod · 0.95
getExploitsMethod · 0.80
refreshMethod · 0.80
onRpcChangeMethod · 0.45

Tested by

no test coverage detected