mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor code refactoring
This commit is contained in:
parent
337973df77
commit
b03f91437b
4 changed files with 45 additions and 16 deletions
|
|
@ -39,7 +39,11 @@ class Miscellaneous:
|
|||
def getRemoteTempPath(self):
|
||||
if not conf.tmpPath:
|
||||
if Backend.isOs(OS.WINDOWS):
|
||||
conf.tmpPath = "C:/WINDOWS/Temp"
|
||||
print "Backend.getOsVersion():", type(Backend.getOsVersion()), Backend.getOsVersion()
|
||||
if Backend.getOsVersion() == "2000":
|
||||
conf.tmpPath = "C:/WINNT/Temp"
|
||||
else:
|
||||
conf.tmpPath = "C:/WINDOWS/Temp"
|
||||
else:
|
||||
conf.tmpPath = "/tmp"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue