From 9da824575b3f4496431691bdb3f6ce45c601accc Mon Sep 17 00:00:00 2001 From: SkyperTHC Date: Wed, 4 Mar 2026 16:56:48 +0000 Subject: packetstorm sync --- other/shell/shellcode.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 other/shell/shellcode.c (limited to 'other/shell/shellcode.c') diff --git a/other/shell/shellcode.c b/other/shell/shellcode.c deleted file mode 100644 index 1fc68cf..0000000 --- a/other/shell/shellcode.c +++ /dev/null @@ -1,46 +0,0 @@ -/* shellcode extraction utility, - * by type / teso, small mods by scut. - */ - - -#include -#include - -extern void cbegin (); -extern void cend (); - - -int -main (int argc, char *argv[]) -{ - int i; - unsigned char * buf = (unsigned char *) cbegin; - unsigned char ex_buf[1024]; - - - printf ("/* %d byte shellcode */\n", cend - cbegin); - printf ("\""); - for (i = 0 ; buf < (unsigned char *) cend; ++buf) { - - printf ("\\x%02x", *buf & 0xff); - - if (++i >= 12) { - i = 0; - printf ("\"\n\""); - } - } - printf ("\";\n"); - - printf("\n"); - - if (argc > 1) { - printf ("%02x\n", ((unsigned char *) cbegin)[0]); - printf ("%02x\n", ex_buf[0]); - memcpy (ex_buf, cbegin, cend - cbegin); - printf ("%02x\n", ex_buf[0]); - ((void (*)()) &ex_buf)(); - } - - exit (EXIT_SUCCESS); -} - -- cgit v1.3