mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
ready for production - closes #311
This commit is contained in:
parent
7ccdfc7244
commit
454f2ae10b
|
@ -20,17 +20,18 @@ SMTP_SERVER = "127.0.0.1"
|
||||||
SMTP_PORT = 25
|
SMTP_PORT = 25
|
||||||
SMTP_TIMEOUT = 30
|
SMTP_TIMEOUT = 30
|
||||||
FROM = "regressiontest@sqlmap.org"
|
FROM = "regressiontest@sqlmap.org"
|
||||||
#TO = "dev@sqlmap.org"
|
TO = "dev@sqlmap.org"
|
||||||
TO = "bernardo.damele@gmail.com"
|
|
||||||
SUBJECT = "Regression test results on %s" % TIME
|
SUBJECT = "Regression test results on %s" % TIME
|
||||||
CONTENT = ""
|
CONTENT = ""
|
||||||
TEST_COUNTS = []
|
TEST_COUNTS = []
|
||||||
ATTACHMENTS = {}
|
ATTACHMENTS = {}
|
||||||
|
|
||||||
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test --run-case 'Invalid'"
|
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test"
|
||||||
proc = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
proc = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
||||||
proc.wait()
|
proc.wait()
|
||||||
stdout, stderr = proc.communicate()
|
stdout, stderr = proc.communicate()
|
||||||
|
|
||||||
failed_tests = re.findall("running live test case: (.+?) \((\d+)\/\d+\)[\r]*\n.+test failed (at parsing item \"(.+)\" )?\- scan folder: (\/.+) \- traceback: (.*?)( - SQL injection not detected)?[\r]*\n", stdout, re.M)
|
failed_tests = re.findall("running live test case: (.+?) \((\d+)\/\d+\)[\r]*\n.+test failed (at parsing item \"(.+)\" )?\- scan folder: (\/.+) \- traceback: (.*?)( - SQL injection not detected)?[\r]*\n", stdout, re.M)
|
||||||
|
|
||||||
for failed_test in failed_tests:
|
for failed_test in failed_tests:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user