mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-28 04:20:58 +00:00
Minor fixes
This commit is contained in:
parent
bf28b0ae47
commit
87a3a2e51c
13 changed files with 247 additions and 88 deletions
|
|
@ -11,6 +11,7 @@ import logging
|
|||
import os
|
||||
import random
|
||||
import re
|
||||
import shutil
|
||||
import socket
|
||||
import sqlite3
|
||||
import subprocess
|
||||
|
|
@ -212,6 +213,7 @@ def vulnTest():
|
|||
if "<tmpfile>" in cmd:
|
||||
handle, tmp = tempfile.mkstemp()
|
||||
os.close(handle)
|
||||
cleanups.append(tmp)
|
||||
cmd = cmd.replace("<tmpfile>", tmp)
|
||||
|
||||
os.environ["SQLMAP_UNSAFE_EVAL"] = '1'
|
||||
|
|
@ -237,6 +239,11 @@ def vulnTest():
|
|||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
shutil.rmtree(tmpdir)
|
||||
except:
|
||||
pass
|
||||
|
||||
return retVal
|
||||
|
||||
def apiTest():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue