Skip to content

Commit cbb966c

Browse files
committed
currentPayload could be null...
1 parent 73d1908 commit cbb966c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cSploit/src/org/csploit/android/net/metasploit/MsfExploit.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,13 @@ public boolean launch() throws RPCClient.MSFException {
225225
Map<String,Object> opts = new HashMap<String, Object>();
226226

227227
opts.put("TARGET", currentTarget);
228-
opts.put("PAYLOAD", currentPayload.getName());
229228

230229
Collection<Option> allOptions = new ArrayList<>(options);
231-
allOptions.addAll(currentPayload.getOptions());
230+
231+
if(currentPayload != null) {
232+
opts.put("PAYLOAD", currentPayload.getName());
233+
allOptions.addAll(currentPayload.getOptions());
234+
}
232235

233236
for(Option o : allOptions) {
234237
opts.put(o.getName(), o.getValue());

0 commit comments

Comments
 (0)