Git Product home page Git Product logo

phpkit's Introduction

phpkit

PHP Backdooring framework using include() and php://input to execute code.

phpkit-0.2a

Stealth PHP Backdooring Utility - Insecurety Research 2013

This is a simple kit to demonstrate a very effective way of backdooring a webserver running PHP. Essentially, it functions by parsing out any valid PHP code from raw HTTP POST data sent to it, and executing said PHP.

No eval() or other suspect calls are in the serverside script, the code is executed by the include() function. The php://input data stream (which is basically "anything sent via raw POST) is used to "capture" the raw POST data, and when parsed by include() the code sent is executed.

USAGE (server side backdoor): Upload "odd.php" to the webserver by any means necessary.

USAGE (client side application): For a shell, just run: ./phpkitcli.py --url http://example.tld/path/to/shell.php

This will automatically attempt to spawn a shell prompt. Please note, the shell is non interactive in that you cannot run programs like "nano" or "vi" via it. You know what I mean.

This version includes a file uploader! To upload files, do the following:

./phpkitcli.py --url http://example.tld/path/to/shell.php --mode UPLOAD --lfile /path/to/local/file --rfile /path/on/server/for/file

This should upload your file to the remote server and save it to the path specified.

Prerequisites: You must have the python "requests" module installed.

  • On Debian/Ubuntu: sudo apt-get install requests
  • On anything else: pip install requests

Please send me any bugs :)

phpkit's People

Contributors

infodox avatar

Stargazers

0xfd avatar Chandrapal Badshah avatar jtripper avatar

Watchers

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