I
I
iandriyanov2012-06-09 10:47:24
linux
iandriyanov, 2012-06-09 10:47:24

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

3 answer(s)
I
iandriyanov, 2012-06-09
@iandriyanov

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/

B
barker, 2012-06-09
@barker

If the cookies are exactly correct, then the user agent can also try to set a human one.

I
iandriyanov, 2012-06-09
@iandriyanov

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 question

Ask a Question

731 491 924 answers to any question