MCPcopy Index your code
hub / github.com/0xj4f/offensivesecurity-python

github.com/0xj4f/offensivesecurity-python @1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.0 ↗ · + Follow
46 symbols 148 edges 21 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Offensive Security Python

From Zaid Sabih

Topics - Changing MAC Address - Network Scanner - ARP Spoofing - Packet Sniffer - DNS Spoofer - Replace Download

Target

docker run --rm -it -p 80:80 vulnerables/web-dvwa:latest

Playbook

Check on how to use these tools

Dependencies on PIP

  • scapy
  • scapy_http
  • netfilterqueue
  • netifaces

Changing the MAC Address

This tool will change your current MAC address. MAC Address is auto generated randomly. Just Specify the the interface.

python mac_changer.py -i <INTERFACE> # template
python mac_changer.py -i wlan0 # usage

You can Manually add the mac address by doin -m
-h for more info

Network Scanner

This tool will ping all the connected device inside the network/router.

python network_scanner.py -t <IP SUBNET> # Template
python network_scanner.py -t 192.168.1.1/24 # Usage

ARP Spoofing

This tools makes you the man in the middle. Tricks the gateway and the target IP to send you the data. Poisoning the ARP.

python arp_spoof.py -t <TARGET IP> -g <GATEWAY IP> # Template
python arp_spoof.py -t 192.168.1.2 -g 192.168.1.1 # Usage

Python 3 Compatibility

pip3 install scapy-python3

Same line Printing

print("\r [+] Info counter", end="")

Core symbols most depended-on inside this repo

get_mac
called by 3
arp_spoof.py
spoof
called by 2
arp_spoof.py
restore
called by 2
arp_spoof.py
get_current_mac
called by 2
mac_changer.py
crawl
called by 2
xss-scanner/scanner.py
run_scanner
called by 2
xss-scanner/scanner.py
get_mac_address
called by 2
util/randomize_mac.py
set_load
called by 1
code_injector.py

Shape

Function 36
Method 9
Class 1

Languages

Python100%

Modules by API surface

xss-scanner/scanner.py12 symbols
packet_sniffer.py5 symbols
network_scanner.py4 symbols
arp_spoof.py4 symbols
mac_changer.py3 symbols
web-penetration/spider.py2 symbols
util/randomize_mac.py2 symbols
replace_download.py2 symbols
post-connection/mac-chrome_passwords.py2 symbols
code_injector.py2 symbols
xss-scanner/legacy/form-extract.py1 symbols
web-penetration/path-crawler.py1 symbols

For agents

$ claude mcp add offensivesecurity-python \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact