forked from ContactLeft/sqlifuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestsuite.py
More file actions
executable file
·28 lines (19 loc) · 901 Bytes
/
Copy pathtestsuite.py
File metadata and controls
executable file
·28 lines (19 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
import subprocess
import os, re
def purge(dir, pattern):
for f in os.listdir(dir):
if re.search(pattern, f):
os.remove(os.path.join(dir, f))
print "Cleanup."
purge('./session/','_-logs-testsuite-*')
purge('./output/','_-logs-testsuite-*')
print"Testing."
print "001 - MSSQL - Integer - GET"
subprocess.check_call(['./sqlifuzzer-0.7.2.sh', '-l ./logs/testsuite/001.log', '-n', '-t http://192.168.52.128'])
print "002 - MSSQL - Integer - POST"
subprocess.check_call(['./sqlifuzzer-0.7.2.sh', '-l ./logs/testsuite/002.log', '-n', '-t http://192.168.52.128'])
print "003 - MSSQL - String - GET"
subprocess.check_call(['./sqlifuzzer-0.7.2.sh', '-l ./logs/testsuite/003.log', '-s', '-t http://192.168.52.128'])
print "004 - MSSQL - String - POST"
subprocess.check_call(['./sqlifuzzer-0.7.2.sh', '-l ./logs/testsuite/004.log', '-s', '-t http://192.168.52.128'])