0

I am trying to fill a form of a webpage with curl and give it some arguments. Dumb enough, it also sends a hidden form in which there is an unique token which has to be sent back to the page, a so called CSRF Token. So I can get that token with wget and parsing, but I just established the wget connection and downloaded the site, and then closed the connection without needing that token. I want to do

curl --referer https://www.google.com/ -d 'username="admin"' -d 'passwort="admin"' -d 'csrfmiddlewaretoken="'$ip'"' https://wepba.ge/ > default.html

How to pass the valid token? How to establish a connection, hold it and pass the read token?

Best regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.