(RPCClient value)
| 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{ |
no test coverage detected