mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Bug fix for Python 3.3 (drei)
This commit is contained in:
parent
0eee52ae25
commit
d815e6c278
2 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ See the file 'LICENSE' for copying permission
|
|||
|
||||
from __future__ import print_function
|
||||
|
||||
import binascii
|
||||
import codecs
|
||||
import os
|
||||
import re
|
||||
|
|
@ -79,7 +80,7 @@ class DNSServer(object):
|
|||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("", 53))
|
||||
s.send(codecs.decode("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000", "hex")) # A www.google.com
|
||||
s.send(binascii.unhexlify("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000")) # A www.google.com
|
||||
response = s.recv(512)
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue