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.5.99 "
21+ VERSION = "1.3.5.100 "
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 77
88from __future__ import print_function
99
10+ import binascii
1011import codecs
1112import os
1213import 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
You can’t perform that action at this time.
0 commit comments