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

Skip to content

Commit d815e6c

Browse files
committed
Bug fix for Python 3.3 (drei)
1 parent 0eee52a commit d815e6c

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.3.5.99"
21+
VERSION = "1.3.5.100"
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/request/dns.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import print_function
99

10+
import binascii
1011
import codecs
1112
import os
1213
import re
@@ -79,7 +80,7 @@ def _check_localhost(self):
7980
try:
8081
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
8182
s.connect(("", 53))
82-
s.send(codecs.decode("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000", "hex")) # A www.google.com
83+
s.send(binascii.unhexlify("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000")) # A www.google.com
8384
response = s.recv(512)
8485
except:
8586
pass

0 commit comments

Comments
 (0)