0% found this document useful (0 votes)
1 views6 pages

Shellcode Creation

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views6 pages

Shellcode Creation

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Shellcode creation steps:

Shellcode creation steps:

section .text
global _start
_start:
mov rax,60
mov rdi,0
syscall

Write assembly program


for shellcode

Step 1:
Shellcode creation steps:
Shellcode

section .text
global _start Program.o \x48\xc7\xc0\x3c\x00\x00\x00\
_start: x48\xc7\xc7\x00\x00\x00\x00\
mov rax,60 x0f\x05
mov rdi,0
syscall

Extract the shellcode from


Write assembly program for assembled object file (*.o)
shellcode using objdump

Step 1:
Step 2:
Shellcode creation steps:
Shellcode

section .text
global _start Program.o \x48\xc7\xc0\x3c\x00\x00\x00\
_start: x48\xc7\xc7\x00\x00\x00\x00\
mov rax,60 x0f\x05
mov rdi,0
syscall

Extract the shellcode from Modify the assembly code such


Write assembly program for assembled object file (*.o) that there will be no null bytes in
shellcode using objdump shellcode, because nulls will break
the shellcode execution.

Step 1: Step:3
Step 2:
Shellcode creation steps:
Shellcode
No nulls

section .text
global _start Program.o \x48\x31\xc0\xb0\x3c\x48\x31\
_start: xff\x0f\x05
xor rax,rax
mov al,60
xor rdi,rdi
syscall

Extract the shellcode from Modify the assembly code such


Write assembly program for assembled object file (*.o) that there will be no null bytes in
shellcode using objdump shellcode, because nulls will break
the shellcode execution.

Step 1: Step:3
Step 2:
Shellcode creation steps:
No nulls Test the
Shellcode shellcode in c
program
section .text
global _start Program.o \x48\x31\xc0\xb0\x3c\x48\x31\
_start: xff\x0f\x05
xor rax,rax Final step:
mov al,60
xor rdi,rdi
syscall

Extract the shellcode from Modify the assembly code such


Write assembly program for assembled object file (*.o) that there will be no null bytes in
shellcode using objdump shellcode, because nulls will break
the shellcode execution.

Step 1: Step:3
Step 2:

You might also like