Skip to content

Commit 5fbf6aa

Browse files
Add files via upload
1 parent 4f9d0b2 commit 5fbf6aa

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Shellcode/Compile.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
echo "[+]Assembling with nasm[+]"
4+
nasm -f elf32 -o $1.o $1.nasm
5+
6+
echo "[+]Linking..[+]"
7+
ld -o $1 $1.o
8+
9+
echo "[+]Done![+]"

Shellcode/Compile_C.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "[+]Compiling ...[+]"
2+
3+
gcc -fno-stack-protector -z execstack $1.c -o $1

Shellcode/objdump_shellcode.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
echo "[+]Starting objdump[+]"
2+
3+
objdump -d $1 -M intel
4+
5+
echo
6+
7+
objdump -d ./$1|grep '[0-9a-f]:'|grep -v 'file'|cut -f2 -d:|cut -f1-6 -d' '|tr -s ' '|tr '\t' ' '|sed 's/ $//g'|sed 's/ /\\x/g'|paste -d '' -s |sed 's/^/"/'|sed 's/$/"/g'

0 commit comments

Comments
 (0)