File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.8.12 "
21+ VERSION = "1.3.8.13 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
540540BRUTE_COLUMN_EXISTS_TEMPLATE = "EXISTS(SELECT %s FROM %s)"
541541
542542# Data inside shellcodeexec to be filled with random string
543- SHELLCODEEXEC_RANDOM_STRING_MARKER = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
543+ SHELLCODEEXEC_RANDOM_STRING_MARKER = b "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
544544
545545# Period after last-update to start nagging about the old revision
546546LAST_UPDATE_NAGGING_DAYS = 60
Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ def uploadShellcodeexec(self, web=False):
634634 self .shellcodeexecLocal = os .path .join (self .shellcodeexecLocal , "windows" , "shellcodeexec.x%s.exe_" % "32" )
635635 content = decloak (self .shellcodeexecLocal )
636636 if SHELLCODEEXEC_RANDOM_STRING_MARKER in content :
637- content = content .replace (SHELLCODEEXEC_RANDOM_STRING_MARKER , randomStr (len (SHELLCODEEXEC_RANDOM_STRING_MARKER )))
637+ content = content .replace (SHELLCODEEXEC_RANDOM_STRING_MARKER , getBytes ( randomStr (len (SHELLCODEEXEC_RANDOM_STRING_MARKER ) )))
638638 _ = cloak (data = content )
639639 handle , self .shellcodeexecLocal = tempfile .mkstemp (suffix = "%s.exe_" % "32" )
640640 os .close (handle )
You can’t perform that action at this time.
0 commit comments