# grep demo that find HTTP dump in response body

plugins
output console
output config textFile
set fileName output-w3af.txt
set verbose True
back
output config console
#set verbose True
back
grep httpInBody

discovery webSpider
discovery config webSpider
set onlyForward True
back

back

target
set target http://moth/w3af/grep/http_in_body/index.html
back

start

assert len( kb.kb.getData( 'httpInBody', 'response' ) ) == 1
assert len( kb.kb.getData( 'httpInBody', 'request' ) ) == 1

exit
