Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Python Pentest Toolkit

A collection of custom-written Python scripts for network and system security tasks. Created primarily to explore low-level networking, packet manipulation, and client-server architectures in Python.

Disclaimer: These scripts are for educational use and authorized testing only.

Scripts

Backdoor

A remote execution and file transfer tool using JSON and base64 encoding over raw sockets.

  • server.py: Listener.
  • client.py: The payload to be executed on the target.
  • Supports: cd, read, write, upload, download.

Keylogger

Captures keystrokes, handles special keys, and emails logs at a set interval using a background thread.

  • Note: Requires hardcoding SMTP credentials in keylogger.py before use.

MacChanger

Changes the MAC address of a specified network interface using ifconfig.

  • Usage: sudo python3 mac_changer.py -i <interface> [-m <new_mac> | -r]

ManInTheMiddle (ARP Poisoning)

Intercepts packets between a target and the gateway by continuously spoofing ARP responses. Restores the actual ARP tables gracefully upon CTRL+C.

  • Usage: sudo python3 arp_poison.py -t <target_ip> -g <gateway_ip>

NetworkScanner

Broadcasts ARP requests across a subnet to discover active hosts and their MAC addresses.

  • Usage: sudo python3 network_scanner.py -t 192.168.1.0/24

PacketListener

Sniffs HTTP traffic on a given interface. Extracts HTTP methods, URLs, and attempts to decode raw payloads (e.g., plain-text login data).

  • Usage: sudo python3 http_listener.py -i <interface>

Setup

Requires Python 3. Install the necessary dependencies:

pip install scapy pynput

Notes:

  • Scripts that manipulate network interfaces or sniff packets (mac_changer.py, arp_poison.py, network_scanner.py, http_listener.py) must be run with sudo.
  • Configure the static IP addresses in Backdoor/ scripts before running.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages