First you need to use wapiti-getcookieto collect cookies related to login. They are usually collected in a file, which can then be transferred on subsequent runs to wapiti.
Below is an example from the Wapiti example on the site.
Example
Firstly, I use wapiti-getcookieto enter a restricted area and receive a cookie in cookies.json:
$ python bin/wapiti-getcookie /tmp/cookies.json http:
<Cookie PHPSESSID=OLPNLIEBPEFELBIFGMKJEKOD for 127.0.0.1/>
Please enter values for the following form:
url = http:
username (default) : admin
password (letmein) : secret
<Cookie PHPSESSID=OLPNLIEBPEFELBIFGMKJEKOD for 127.0.0.1/>
This can also be done using the wapiti cookie as follows:
$ python bin/wapiti-cookie /tmp/cookies.json \
http:
Then I browse the vulnerable site using a cookie and excluding the logout script:
$ wapiti http:
References
Wapiti example
source
share