Giter Club home page Giter Club logo

simplebitsserver's Introduction

SimpleBITSServer (Background Intelligent Transfer Service)

A simple python implementation of a BITS server. BITS protocol is used to transfer files asynchronously between a client and a server. The BITS protocol metadata communication resides mainly in BITS-defined HTTP headers, all start with prefix "BITS-". For that reason, this implemantation is based on python's built-in SimpleHTTPRequestHandler.

The implementation corresponds to the MSDN specification for client and server packets.

  • It was originally developed as an ad-hoc utility for modelling a BITS upload job scenario.
  • The corresponding client is Windows' built-in PowerShell cmdlet.
  • Therefore, It is not intended to fully implement or abide to the official specification. Further work may be done in the future to expand the specification coverage.

Background

Official protocol specification - Background Intelligent Transfer Service (BITS)

Example use at SafeBreach Labs

Usage

Server

  • Tested with Python 2.7:
python SimpleBITSServer.py [port]

Client

Prerequisites:

  • Must run on a Windows OS to use the Microsoft Windows BITS Service.
  • Ports or protocol mimics might exist, please inform us if you do find
  • a BITS client, preferably PowerShell's Start-BitsTransfer. Alternatively:
  • Windows' built in utility - bitsadmin.exe (deprecated)
  • Any program implementing the required interfaces as described on MSDN

The simple PowerShell usage this server was built to service:

> Import-Module BitsTransfer
> Start-BitsTransfer -TransferType Upload -Source C:\temp\to_upload.txt -Destination http://127.0.0.1/to_upload.txt -DisplayName TEST

Authors

Dor Azouri - Initial work

See also the list of contributors who participated in this project.

License

WTFPL - do What the Fuck You Want To Public License

simplebitsserver's People

Contributors

dorazouri avatar

Watchers

 avatar  avatar

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.