Page 1 of 1

Scan with command line

PostPosted: Sat Mar 09, 2013 5:48 pm
by obcd
Hi,

I am trying to reproduce this: viewtopic.php?f=5&t=10414

I have tried without any success the example and I have tried to adapt the example:
wget --cookies=on --keep-session-cookies --save-cookies=/tmp/cookie.txt --user-agent=Mozilla 'http://localhost:4040/login.view?user=MYUSER&password=MYPASSWORD'
wget --referer='http://localhost:4040' --cookies=on --load-cookies=/tmp/cookie.txt --keep-session-cookies --save-cookies=/tmp/cookie.txt 'http://localhost:4040/searchSettings.view?update=full'

What am I doing wrong?

Re: Scan with command line

PostPosted: Sat Mar 09, 2013 6:58 pm
by hakko
My post in that other thread wasn't helpful at all.. I'd use curl but I guess the syntax isn't super obvious.

Code: Select all
curl --data "j_username=XXX&j_password=YYY" http://localhost:4040/j_spring_security_check --cookie-jar /tmp/cookies.txt
curl --cookie /tmp/cookies.txt http://localhost:4040/searchSettings.view?update=full


Hope that makes up for my previous post!

Re: Scan with command line

PostPosted: Sat Mar 09, 2013 8:12 pm
by obcd
Awesome, thanks!