We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73d1908 commit cbb966cCopy full SHA for cbb966c
1 file changed
cSploit/src/org/csploit/android/net/metasploit/MsfExploit.java
@@ -225,10 +225,13 @@ public boolean launch() throws RPCClient.MSFException {
225
Map<String,Object> opts = new HashMap<String, Object>();
226
227
opts.put("TARGET", currentTarget);
228
- opts.put("PAYLOAD", currentPayload.getName());
229
230
Collection<Option> allOptions = new ArrayList<>(options);
231
- allOptions.addAll(currentPayload.getOptions());
+
+ if(currentPayload != null) {
232
+ opts.put("PAYLOAD", currentPayload.getName());
233
+ allOptions.addAll(currentPayload.getOptions());
234
+ }
235
236
for(Option o : allOptions) {
237
opts.put(o.getName(), o.getValue());
0 commit comments