mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adding a hidden switch --dummy used for dummy runs (getPage() returns random data) - usefull for testing purposes for skipping connections
This commit is contained in:
parent
bf05709841
commit
0e89cc62a2
5 changed files with 17 additions and 1 deletions
|
|
@ -1131,7 +1131,7 @@ def checkNullConnection():
|
|||
return kb.nullConnection is not None
|
||||
|
||||
def checkConnection(suppressOutput=False):
|
||||
if not any([conf.proxy, conf.tor]):
|
||||
if not any((conf.proxy, conf.tor, conf.dummy)):
|
||||
try:
|
||||
socket.getaddrinfo(conf.hostname, None)
|
||||
except socket.gaierror:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue