Machine Problem Submissions for EE298
pip install -r requirements.txtImplementing 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
hashlibmodule 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.pdfcurl -O https://files.testfile.org/PDF/100MB-TESTFILE.ORG.pdfImplementing 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.orgpython3 port_scanner.py 202.92.128.1python3 port_scanner.py 202.92.127-128.1-204python3 port_scanner.py 202.92.1/24- uses NMAP-like syntax to accept individual and ranges of ports using
-ptag
python3 port_scanner.py 202.92.128.1 -p 22,30-50,80,100-1000- use
-Otag to enable OS Detection *requires root access - use
-sVtag to enable Service Info Detection
sudo python3 port_scanner.py scanme.nmap.org -sV -O- use
-sUtag to opt for UDP Scanning of port53and161*disables OS detection and Service Info Detection
python3 port_scanner.py scanme.nmap.org -sU