Skip to content

Commit 33d3ac0

Browse files
committed
set current payload if there is only one available.
1 parent 91f617f commit 33d3ac0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ private void retrievePayloads() throws IOException, RPCClient.MSFException {
211211
for(String pName : list) {
212212
payloads.add(new Payload(pName));
213213
}
214+
215+
if(payloads.size() == 1)
216+
currentPayload = payloads.get(0);
214217
}
215218

216219
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)