Shellcode that print What is The M4Tr1X ?! and then exits.
24613700722f04736909af821d62b7e6bc1c78910a71e75776a1e46bce154fb9
/*morpheus.c >> part of M4TR1X series of codez...
0101010101010101010101010101010101010101010101010101010101010101
Linux x86 shellcode
by
Shashank Pandey a.k.a Shash>> a.k.a Neo1 (Neo wins, Neo Won)
0101010101010101010101010101010101010101010101010101010101010101
ph333r.... ;-)
write(0,"--What is The M4TR1X ?!", 23); exit();
--> up j00rs to all the political dot-slash kids !
--> thanx f0r ru1n1ng tha scene ...jerks !!
Pearl of Wise-dumb : <<Govts. are guided by INTERESTS not by MORALITIES>>
Mail: reach_shash@linuxmail.org
*/
/*
main()
{
__asm__("
// write(0,"--What is The M4TR1X ?!", 23)
xorl %ebx,%ebx #zero-ing ebx as value for STDOUT is 0 here
xorl %eax,%eax #zero-ing eax
xorl %edx,%edx #zero-ing edx
movb $0x18,%dl #creating space for the string
pushl $0x0a213f20
pushl $0x58315254
pushl $0x344d2065
pushl $0x68542073
pushl $0x69207461
pushl $0x68572d2d
mov %esp,%ecx #move contents of esp to ecx
movb $0x4,%al #syscall for write()
int $0x80 #executing the syscall
//exit() call
movb $0x1,%al #syscall for exit()
int $0x80 #executing the syscall
");
}
*/
#include<stdio.h>
char shellcode[]=
"\x31\xdb\x31\xc0\x31\xd2\xb2\x18\x68\x20\x3f\x21"
"\x0a\x68\x54\x52\x31\x58\x68\x65\x20\x4d\x34\x68"
"\x73\x20\x54\x68\x68\x61\x74\x20\x69\x68\x2d\x2d"
"\x57\x68\x89\xe1\xb0\x04\xcd\x80\xb0\x01\xcd\x80";
main(){
void (*funk)() = (void *)shellcode;
printf("Shellcode is %d bytes\nExecuting Shellcode..\n\n", strlen(shellcode));
funk();
}
/*
Morpheus.c >> part of M4TR1X series....
*/