Skip to content

Commit 74552be

Browse files
committed
Cleaning some garbage (hard coded paths with linux native slashes)
1 parent 425df06 commit 74552be

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/core/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ def setPaths():
919919
paths.SQLMAP_OUTPUT_PATH = os.path.join(paths.SQLMAP_ROOT_PATH, "output")
920920
paths.SQLMAP_DUMP_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "dump")
921921
paths.SQLMAP_FILES_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "files")
922-
paths.SQLMAP_SEXEC_PATH = os.path.join(paths.SQLMAP_EXTRAS_PATH, "shellcodeexec")
923922

924923
# sqlmap files
925924
paths.SQLMAP_HISTORY = os.path.join(paths.SQLMAP_ROOT_PATH, ".sqlmap_history")

lib/takeover/metasploit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,12 @@ def createMsfShellcode(self, exitfunc, format, extra, encode):
534534
os.unlink(self._shellcodeFilePath)
535535

536536
def uploadShellcodeexec(self, web=False):
537-
self.shellcodeexecLocal = paths.SQLMAP_SEXEC_PATH
537+
self.shellcodeexecLocal = os.path.join(paths.SQLMAP_EXTRAS_PATH, "shellcodeexec")
538538

539539
if Backend.isOs(OS.WINDOWS):
540-
self.shellcodeexecLocal += "/windows/shellcodeexec.x%s.exe" % "32"
540+
self.shellcodeexecLocal = os.path.join(self.shellcodeexecLocal, "windows", "shellcodeexec.x%s.exe" % "32")
541541
else:
542-
self.shellcodeexecLocal += "/linux/shellcodeexec.x%s" % Backend.getArch()
542+
self.shellcodeexecLocal = os.path.join(self.shellcodeexecLocal, "linux", "shellcodeexec.x%s" % Backend.getArch())
543543

544544
__basename = "tmpse%s%s" % (self._randStr, ".exe" if Backend.isOs(OS.WINDOWS) else "")
545545

0 commit comments

Comments
 (0)