Answer the question
In order to leave comments, you need to log in
How to rob something that is on an ambiguous link?
I have a link ...../cgicmain_upload_wrapper.cgi?action=51&type=1
Being logged in on the site, and clicking on this link, the download of a file called events_dump.csv starts
How to implement this through the shell?
Answer the question
In order to leave comments, you need to log in
I tried this to log in and get cookies, and after going to the link, the result is zero
wget --post-data='s-login=*****&s-pass=*****' --save-cookies=my-cookies.txt --keep-session-cookies site.local/
If the cookies are exactly correct, then the user agent can also try to set a human one.
Here's the thing:
curl -u login:pass
-e local.site/index_file_wrapper.cgi?file=administration.html local.site/cgicmain_upload_wrapper.cgi?action=51&type=1
download a file on the command line
curl: (52) Empty reply from server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question