Machine Problem Submissions for EE298
pip install -r requirements.txt
Implementing SHA-512 Hashing Algorithm in Python
- accepts both file and string input
python3 sha512.py "hello world"
python3 sha512.py input.pdf
- accepts benchmarking tests using
hashlib
module insota_sha512.py
python3 benchmark_sha512.py "hello world!"
- to download 100MB test file, you may use the sample below
curl -O https://files.testfile.org/PDF/10MB-TESTFILE.ORG.pdf
curl -O https://files.testfile.org/PDF/100MB-TESTFILE.ORG.pdf
Implementing an NMAP-like Port Scanner in Python
- uses NMAP-like syntax to accept hostnames, individual and ranges of ip addresses, and even a subnet in CIDR notation
python3 port_scanner.py scanme.nmap.org
python3 port_scanner.py 202.92.128.1
python3 port_scanner.py 202.92.127-128.1-204
python3 port_scanner.py 202.92.1/24
- uses NMAP-like syntax to accept individual and ranges of ports using
-p
tag
python3 port_scanner.py 202.92.128.1 -p 22,30-50,80,100-1000
- use
-O
tag to enable OS Detection *requires root access - use
-sV
tag to enable Service Info Detection
sudo python3 port_scanner.py scanme.nmap.org -sV -O
- use
-sU
tag to opt for UDP Scanning of port53
and161
*disables OS detection and Service Info Detection
python3 port_scanner.py scanme.nmap.org -sU