Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3776f2e

Browse files
committed
Minor refactoring for #4077
1 parent a6c26fe commit 3776f2e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from lib.core.common import pushValue
1414
from lib.core.common import readInput
1515
from lib.core.common import urlencode
16+
from lib.core.convert import getBytes
1617
from lib.core.convert import getUnicode
1718
from lib.core.data import conf
1819
from 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:\nGET %s" % url

0 commit comments

Comments
 (0)