mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Bug fix for Python 3.3 (drei)
This commit is contained in:
		
							parent
							
								
									0eee52ae25
								
							
						
					
					
						commit
						d815e6c278
					
				|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | |||
| from thirdparty.six import unichr as _unichr | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.3.5.99" | ||||
| VERSION = "1.3.5.100" | ||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | ||||
| VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||
|  |  | |||
|  | @ -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…
	
		Reference in New Issue
	
	Block a user