Created
June 11, 2018 15:09
-
-
Save fgsahoward/0b8888df03cddd08bfc46d7ebf960a5f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[howard@sterling shellcodes]$ gcc -c shell1_32.s -m32 -o obj/shell1_32.o | |
[howard@sterling shellcodes]$ ld -melf_i386 -o bin/shell1_32 obj/shell1_32.o | |
[howard@sterling shellcodes]$ objdump -Dz bin/shell1_32 | |
bin/shell1_32: file format elf32-i386 | |
Disassembly of section .text: | |
08048074 <_start>: | |
8048074: 55 push %ebp | |
8048075: 89 e5 mov %esp,%ebp | |
8048077: 31 ff xor %edi,%edi | |
8048079: 57 push %edi | |
804807a: bf 9f 90 04 08 mov $0x804909f,%edi | |
804807f: 57 push %edi | |
8048080: bf 97 90 04 08 mov $0x8049097,%edi | |
8048085: 57 push %edi | |
8048086: 89 fb mov %edi,%ebx | |
8048088: 89 e1 mov %esp,%ecx | |
804808a: 31 d2 xor %edx,%edx | |
804808c: 31 c0 xor %eax,%eax | |
804808e: b8 0b 00 00 00 mov $0xb,%eax | |
8048093: cd 80 int $0x80 | |
8048095: 5d pop %ebp | |
8048096: c3 ret | |
Disassembly of section .data: | |
08049097 <shell_name>: | |
8049097: 2f das | |
8049098: 62 69 6e bound %ebp,0x6e(%ecx) | |
804909b: 2f das | |
804909c: 73 68 jae 8049106 <_end+0x62> | |
804909e: 00 .byte 0x0 | |
0804909f <shell_arg>: | |
804909f: 2d .byte 0x2d | |
80490a0: 70 00 jo 80490a2 <__bss_start> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment