Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrecco/lzw-shellcode
Decompress shellcode for x32/x64 Windows and i386/amd64 Linux and tools for pack/unpack payload
https://github.com/mrecco/lzw-shellcode
Last synced: 23 days ago
JSON representation
Decompress shellcode for x32/x64 Windows and i386/amd64 Linux and tools for pack/unpack payload
- Host: GitHub
- URL: https://github.com/mrecco/lzw-shellcode
- Owner: MrEcco
- License: gpl-3.0
- Created: 2018-07-31T01:25:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T14:53:24.000Z (over 5 years ago)
- Last Synced: 2024-10-12T01:08:59.424Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 359 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lzw-shellcode
Decompress shellcode for x32/x64 Windows and Linux and tools for pack/unpack payloadThis project is ,in particular, just demonstration of how to work with heap from shellcode, and totatly, is example for develop any shellcode for any architecture.
LZW isnt high compression rate, but have tiny code and enouth for deliver small parts of remote mashine code.
Take no responsibility. The author refuses any liability that may arise as a result of using this code, regardless of who used it.
# Using guide
## Windows
```C
size_t(*shc_func)(byte*, size_t, byte*);
shc_func = (size_t(*)(byte*, size_t, byte*))VirtualAlloc(NULL, sizeof(shellcode),
MEM_COMMIT, PAGE_EXECUTE_READWRITE);
memcpy(shc_func, shellcode, sizeof(shellcode));
out_size = shc_func(in, in_size, out);
VirtualFree(shc_func, 0, MEM_RELEASE);
```
## Linux
```C
size_t (*shc_func)(byte *, size_t, byte *);
shc_func = (size_t (*)(byte *, size_t, byte *))mmap(NULL, sizeof(shellcode),
PROT_EXEC | PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
memcpy(shc_func, shellcode, sizeof(shellcode));
out_size = shc_func(in, in_size, out);
munmap(shc_func, sizeof(shellcode));
```# AV-detection
Isnt susceptible for static analisis on 04.08.2018.
Eazy detect any payload after decompress.