Skip to content

reddiedev/pokeMONS-EE298

Repository files navigation

pokeMONS-EE298

Machine Problem Submissions for EE298

pip install -r requirements.txt

Machine Problem 1: Hashing v16

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 in sota_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

Machine Problem 2: Port Scanner v16

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 port 53 and 161 *disables OS detection and Service Info Detection
python3 port_scanner.py scanme.nmap.org -sU

About

Machine Problem Submission for EE298

Topics

Resources

License

Stars

Watchers

Forks

Languages