BOOK THIS SPACE FOR AD
ARTICLE ADSending requests to a Web server via Curl, Netcat, and Python to Access Sensitive files and data | 2024
pwn.college is an online platform that offers training modules for cybersecurity professionals. It helps students and others learn about and practice core cybersecurity concepts.
Pwn.college is an education platform for students (and other interested parties) to learn about, and practice, core cybersecurity concepts in a hands-on fashion. In martial arts terms, it is designed to take a “white belt” in cybersecurity to becoming a “blue belt”, able to approach (simple) CTFs and wargames. Our philosophy is “practice makes perfect”.
The platform is maintained by an awesome team of hackers at Arizona State University. It powers much of ASU’s cybersecurity curriculum, and is open, for free, to participation for interested people around the world!
Level 1 — Send an HTTP request using curl
curl localhostnc -v localhost 80 GET /flag #Hit Enterimport requestshost = "<http://127.0.0.1:80/flag>"r = requests.get(host)print(r.text)
python3 FILE_NAME.py
curl localhost/flag -H 'Host: a704cd4f0bc3b6bc9ac864fe113514b1'
echo -e "GET /flag HTTP/1.1\\r\\nHost: 54b7ada9efe2fe3bad7818b1b5a65330\\r\\n\\r\\n" | nc localhost 80
import requestshost = "<http://127.0.0.1:80/flag>"h= {"Host":"f9e84c83115d25e09d53f13b00f4b75c"}r = requests.get(host, headers=h)
print(r.text)
Level 7-39 will be added in a while