★ wanayoo — archive 1999 https://github.com/mystikdeveloped/python-projectsNouvelle recherche | Portail wanayoo
Skip to content
🐍 Ethical Hacking with Python
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
README.md Update README.md Jan 18, 2020
_config.yml
dl_intercept.py updates Jan 18, 2020
dns_spoof.py
login_cracker.py
mac_changer.py updates Jan 18, 2020
netscan.py updates Jan 18, 2020
portscan.py updates Jan 18, 2020
simple_mac_changer.py Update simple_mac_changer.py Jan 10, 2020
web_spider.py Update web_spider.py Jan 18, 2020

README.md

🐍 Python Programs 🐍

A list of python projects created while learning the language as it relates to ethical hacking and cyber security. Most tools work as is, some need to be converted to python3 and there is a full TODO list as well for each one. This list is not conclusive nor complete, and more projects will be added as I get them completed and operational.


Contents


Python DNS Spoofer

Simple python program to spoof DNS

Usage:
python3 dns_spoof.py


MITM File Download Interceptor

Usage:
python3 dl_intercept.py

Works via the following steps:

  1. Monitor network traffic for seq/ack transmit data across HTTP traffic
  2. If found, check raw packet for common document file types
  3. If found, modify raw load to redirect victim to malicious site & download

Supported doc types

  • .exe

MAC Address Changers

simple_mac_changer usage:
python3 simple_mac_changer.py <interface> <MAC>

  • user provides interface and what MAC to set manually no input validation

mac_changer usage:
python3 mac_changer.py -i interface

  • generates random hex MAC value
  • more verbosity on process

Network Scanner

Usage:
python3 netscan.py -t ip/subnet

Will return Responding IP and MAC Address of the scanned network range


Port Scanner

Usage:
python3 portscan.py <ip>

Scans the top 1000 ports and returns ports found open


Python WebApp Login Cracker

A simple login page cracker using a supplied username and wordlist file for passwords.

Usage:
python3 login_cracker.py -t TARGET -u USER -w WORDLIST

The output will only generate if a password is found for the supplied username does not verbose all attempted passwords
[+] Login found --> password

If no password is found to match the username supplied:
[-] End of file reached - no password found


Python Webpage Spider

A simple python script to crawl a website and output all URLs located

Usage:
python3 web_spider.py -t TARGET

The output will generate all links located on the target site example below is IP of metasplotable

python main.py -t http://10.10.20.131/
http://10.10.20.131/twiki/
http://10.10.20.131/phpMyAdmin/
http://10.10.20.131/mutillidae/
http://10.10.20.131/dvwa/
http://10.10.20.131/dav/

TODOs:

  • File Interceptor

    • Planned doc types
      • .pdf
      • .doc / .docx
      • .xls / .xlsx
      • .csv
      • others
  • Network Scanner

    • Obtain host info
    • Add port scanning within the script
    • Obtain port service informaiton like nmap once included
    • Add execution for simple exploit checks (anon FTP, SSH enum, SMB mapping, rpcclient, etc)
  • Login Cracker

    • Argument to accept username file
    • Try all options with supplied user/pass files not locating first successful login
    • Support for : separated files (user:pass)
  • Web Spider

    • Get recursive working to click-thru and pull all links that can be located
    • Output in a cleaner format
    • Highligh of import URLs found (e.g. login, admin, etc.)
    • Incorporate into a vuln scanner script using lists of important URLs found
    • Commented code within script to incorporate scanning for subdomains still needs to be worked out (e.g. subdomain.domain.com)
You can’t perform that action at this time.