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.4.1.23 "
21+ VERSION = "1.4.1.24 "
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 )
Original file line number Diff line number Diff line change 1313from lib .core .common import pushValue
1414from lib .core .common import readInput
1515from lib .core .common import urlencode
16+ from lib .core .convert import getBytes
1617from lib .core .convert import getUnicode
1718from lib .core .data import conf
1819from lib .core .data import kb
@@ -132,7 +133,7 @@ def _search(dork):
132133 regex = DUCKDUCKGO_REGEX
133134
134135 try :
135- req = _urllib .request .Request (url , data = data . encode ( "utf-8" ), headers = requestHeaders )
136+ req = _urllib .request .Request (url , data = getBytes ( data ), headers = requestHeaders )
136137 conn = _urllib .request .urlopen (req )
137138
138139 requestMsg = "HTTP request:\n GET %s" % url
You can’t perform that action at this time.
0 commit comments