mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-28 20:16:28 +00:00
Modifying the mechanism to check for --check-internet
This commit is contained in:
parent
bb546015f9
commit
6890048041
3 changed files with 8 additions and 9 deletions
|
|
@ -73,7 +73,7 @@ from lib.core.exception import SqlmapUserQuitException
|
|||
from lib.core.settings import BOUNDED_INJECTION_MARKER
|
||||
from lib.core.settings import CANDIDATE_SENTENCE_MIN_LENGTH
|
||||
from lib.core.settings import CHECK_INTERNET_ADDRESS
|
||||
from lib.core.settings import CHECK_INTERNET_VALUE
|
||||
from lib.core.settings import CHECK_INTERNET_CODE
|
||||
from lib.core.settings import DEFAULT_COOKIE_DELIMITER
|
||||
from lib.core.settings import DEFAULT_GET_POST_DELIMITER
|
||||
from lib.core.settings import DUMMY_NON_SQLI_CHECK_APPENDIX
|
||||
|
|
@ -1586,8 +1586,7 @@ def checkConnection(suppressOutput=False):
|
|||
return True
|
||||
|
||||
def checkInternet():
|
||||
content = Request.getPage(url=CHECK_INTERNET_ADDRESS, checking=True)[0]
|
||||
return CHECK_INTERNET_VALUE in (content or "")
|
||||
return Request.getPage(url=CHECK_INTERNET_ADDRESS, checking=True)[2] == CHECK_INTERNET_CODE
|
||||
|
||||
def setVerbosity(): # Cross-referenced function
|
||||
raise NotImplementedError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue