Giter Club home page Giter Club logo

smugweb's Introduction

HTTP smuggling file converter

Useful for getting files past web filtering and web proxies. It converts the file into a binary base64 encoded blob that is included in a Javascript variable. The tool generates an example HTML file with the encoded file included in it. Upon rendering the page a createObjectURL() is made with the content triggering a file download.

How to use:

  1. Get the script
  2. Make the script executable and run the script where you specify the file you want to make downloadable using HTTP smuggling.
  3. If you are using any kind of automation for downloading the content then be careful on what file extension you give the file as some web browsers or web clients will not allow dangerous types e.g. executable files.
  4. Consider downloading the file with a temporary extension and then renaming the file after download.

Usage:

$ ./smugweb.sh calc.exe
-Javascript file smuggling page generator -- @0xtosh
OK Created download.html
  1. Host the download.html file somewhere on a web server or use it in whatever content you have that is relevant.
  2. Make sure only the relevant IP addresses have access to your content and use HTTPS.
  3. Go to the page directly with a browser or include the content of the download.html in your own client side web rendering content that supports Javascript. This should trigger the file download.

Different web browsers and web clients (with or without a web proxy) will have different download behaviors. Microsoft Edge usually allows for silent downloads.

For testing purposes. Use responsively.

smugweb's People

Contributors

0xtosh avatar

Watchers

 avatar

smugweb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.