mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-25 05:06:10 +00:00
Minor bug fixes to --os-shell (altought web backdoor functionality still to be reviewed).
Minor common library code refactoring. Code cleanup. Set back the default User-Agent to sqlmap for comparison algorithm reasons. Updated THANKS.
This commit is contained in:
parent
5121a4dcba
commit
16b4530bbe
35 changed files with 158 additions and 201 deletions
|
|
@ -64,7 +64,7 @@ class Magic:
|
|||
try:
|
||||
magic_close(self.cookie)
|
||||
except Exception, e:
|
||||
print "got thig: ", e
|
||||
print "got this:", e
|
||||
|
||||
|
||||
_magic_mime = None
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ class MultipartPostHandler(urllib2.BaseHandler):
|
|||
v_files = []
|
||||
v_vars = []
|
||||
try:
|
||||
for(key, value) in data.items():
|
||||
if type(value) == file:
|
||||
v_files.append((key, value))
|
||||
else:
|
||||
v_vars.append((key, value))
|
||||
for(key, value) in data.items():
|
||||
if type(value) == file:
|
||||
v_files.append((key, value))
|
||||
else:
|
||||
v_vars.append((key, value))
|
||||
except TypeError:
|
||||
systype, value, traceback = sys.exc_info()
|
||||
raise sqlmapDataException, "not a valid non-string sequence or mapping object", traceback
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue