Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ea613b

Browse files
committed
type correction and adding global flag kb.ignoreTimeout which could be useful
1 parent 27f0e73 commit 2ea613b

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
13541354
kb.headersFp = {}
13551355
kb.hintValue = None
13561356
kb.htmlFp = []
1357+
kb.ignoreTimeout = False
13571358
kb.injection = injectionDict()
13581359
kb.injections = []
13591360

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def getPage(**kwargs):
100100
raise404 = kwargs.get('raise404', True)
101101
auxHeaders = kwargs.get('auxHeaders', None)
102102
response = kwargs.get('response', False)
103-
ignoreTimeout = kwargs.get('ignoreTimeout', False)
103+
ignoreTimeout = kwargs.get('ignoreTimeout', kb.ignoreTimeout)
104104
refreshing = kwargs.get('refreshing', False)
105105

106106
# flag to know if we are dealing with the same target host

plugins/dbms/access/fingerprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __sandBoxCheck(self):
5050
return retVal
5151

5252
def __sysTablesCheck(self):
53-
infoMsg = "executing system table(s) existance fingerprint"
53+
infoMsg = "executing system table(s) existence fingerprint"
5454
logger.info(infoMsg)
5555

5656
# Microsoft Access table reference updated on 01/2010

plugins/generic/enumeration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def getTables(self, bruteForce=None):
789789

790790
return kb.data.cachedTables
791791

792-
message = "do you want to use common table existance check? [Y/n/q]"
792+
message = "do you want to use common table existence check? [Y/n/q]"
793793
test = readInput(message, default="Y")
794794

795795
if test[0] in ("n", "N"):
@@ -999,7 +999,7 @@ def getColumns(self, onlyColNames=False):
999999

10001000
return kb.data.cachedColumns
10011001

1002-
message = "do you want to use common columns existance check? [Y/n/q]"
1002+
message = "do you want to use common columns existence check? [Y/n/q]"
10031003
test = readInput(message, default="Y")
10041004

10051005
if test[0] in ("n", "N"):
@@ -1871,7 +1871,7 @@ def searchTable(self):
18711871
bruteForce = True
18721872

18731873
if bruteForce:
1874-
message = "do you want to use common table existance check? [Y/n/q]"
1874+
message = "do you want to use common table existence check? [Y/n/q]"
18751875
test = readInput(message, default="Y")
18761876

18771877
if test[0] in ("n", "N"):
@@ -2026,7 +2026,7 @@ def searchColumn(self):
20262026
bruteForce = True
20272027

20282028
if bruteForce:
2029-
message = "do you want to use common columns existance check? [Y/n/q]"
2029+
message = "do you want to use common columns existence check? [Y/n/q]"
20302030
test = readInput(message, default="Y")
20312031

20322032
if test[0] in ("n", "N"):

0 commit comments

Comments
 (0)