Advertisement
BornePlays

help

Jun 11th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2. import urllib2
  3.  
  4.  
  5. dump = ['']
  6. websites = open('sites.txt', 'r')
  7. lines = str(websites.readlines)
  8. websitesWrite = open('dump.txt', 'w')
  9.  
  10.  
  11. def main():
  12. for line in lines:
  13. response = urllib2.urlopen(line)
  14. errors = ["Error performing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''45''' at line 1", "error"]
  15. try:
  16. if response.read([errors]):
  17. print('Vuln: %s' %line)
  18. dump.append(line)
  19. else:
  20. print('Not Vuln: %s' %line)
  21. except websites.errors as msg:
  22. print('error ' + str(msg))
  23. try:
  24. websitesWrite.write(str(dump))
  25. except websitesWrite.errors as e:
  26. print('Error dumping: ' + str(e))
  27. print 'done!'
  28.  
  29. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement