mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Introducing 'new style classes' (idea from Pull request #284)
This commit is contained in:
parent
0f191f624c
commit
b6650add46
13 changed files with 18 additions and 18 deletions
|
|
@ -81,7 +81,7 @@ from thirdparty.socks.socks import ProxyError
|
|||
from thirdparty.multipart import multipartpost
|
||||
|
||||
|
||||
class Connect:
|
||||
class Connect(object):
|
||||
"""
|
||||
This class defines methods used to perform HTTP requests
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import socket
|
|||
import threading
|
||||
import time
|
||||
|
||||
class DNSQuery:
|
||||
class DNSQuery(object):
|
||||
"""
|
||||
Used for making fake DNS resolution responses based on received
|
||||
raw request
|
||||
|
|
@ -58,7 +58,7 @@ class DNSQuery:
|
|||
|
||||
return retVal
|
||||
|
||||
class DNSServer:
|
||||
class DNSServer(object):
|
||||
def __init__(self):
|
||||
self._requests = []
|
||||
self._lock = threading.Lock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue