pwn.college Talking Web dojo.
- For
curl
, should its versatility bewilder you, the man page for curl is a treasure trove of wisdom. Ifnetcat
seems enigmatic, allow netcat's documentation to shed light on its mysteries. And, when the intricacies of thepython requests
library beckon, dive into its comprehensive guide.
-L follow redirects
-s Silent mode
-S Show errors when -s is used
-H Include header "Host: spark"
curl \
--data-urlencode "paramName=value" \
--data-urlencode "secondParam=value" \
http://example.com
curl -d "a=56b1102aea2c3356181231827d2eaee2" -X POST http://localhost
curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:3000/data
$ nc localhost 80
POST / HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 34
a=f7f0bcd9b52fdc623a26691c56abb5a9
import requests
headers = {'Host': '940a71b6118d37fd5e29c86db67f9841'}
r = requests.get('http://localhost', headers=headers)
print(r.text)
import requests
import json
headers = {'Content-Type': 'application/json'}
data = {'a': 'b1380eba863b9288430f200ed8c7bbbc'}
r = requests.post('http://localhost', headers=headers, data=json.dumps(data))
print(r.text)