Code Monkey home page Code Monkey logo

threebytestager's Introduction

Three-Byte Stager

Serves up files, three bytes at a time, via DNS A records. Meant to serve a first-stage payload. As transfers are high-overhead and really quite slow, serving full binaries is not generally recommended if there is a faster way.

Sample stagers are in stagers. Please see the README in that directory for more information.

For legal use only.

Usage

./threebytestager

By default this will serve DNS requests on 0.0.0.0:53 and serve files which are in a directory named ./staged/. Please run with -h for configurable options.

Protocol

Requests should be of the form offset.filename.domain. The offset is a 24-bit hex number (i.e. from 0 to 0xFFFFFF). The filename can be anything which fits in a DNS label. Responses are single A records consisting of a static first byte (17) and three bytes from the file starting at the offset set in the request.

In practical terms to request a file named kmoused using the domain example.com the first request would be ffffff.kmoused.example.com to get the file size, the next request would be 0.kmoused.example.com, the request after that 3.kmoused.example.com, and so on up to the size returned by the very first query.

threebytestager's People

Contributors

magisterquis avatar

Watchers

 avatar James Cloos avatar

Forkers

m00zh33

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.