mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
minor update
This commit is contained in:
parent
1a708cf12d
commit
3619fc5127
|
@ -17,7 +17,6 @@ from lib.core.agent import agent
|
||||||
from lib.core.common import beep
|
from lib.core.common import beep
|
||||||
from lib.core.common import getFilteredPageContent
|
from lib.core.common import getFilteredPageContent
|
||||||
from lib.core.common import getUnicode
|
from lib.core.common import getUnicode
|
||||||
from lib.core.common import preparePageForLineComparison
|
|
||||||
from lib.core.common import randomInt
|
from lib.core.common import randomInt
|
||||||
from lib.core.common import randomStr
|
from lib.core.common import randomStr
|
||||||
from lib.core.common import readInput
|
from lib.core.common import readInput
|
||||||
|
|
|
@ -1093,14 +1093,6 @@ def sanitizeAsciiString(subject):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def preparePageForLineComparison(page):
|
|
||||||
retVal = page
|
|
||||||
|
|
||||||
if isinstance(page, basestring):
|
|
||||||
return page.replace("><", ">\n<").replace("<br>", "\n").splitlines()
|
|
||||||
|
|
||||||
return retVal
|
|
||||||
|
|
||||||
def getFilteredPageContent(page):
|
def getFilteredPageContent(page):
|
||||||
retVal = page
|
retVal = page
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ See the file 'doc/COPYING' for copying permission
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from lib.core.common import getFilteredPageContent
|
from lib.core.common import getFilteredPageContent
|
||||||
from lib.core.common import preparePageForLineComparison
|
|
||||||
from lib.core.common import wasLastRequestError
|
from lib.core.common import wasLastRequestError
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
|
@ -98,9 +97,9 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
||||||
if getSeqMatcher:
|
if getSeqMatcher:
|
||||||
return ratio
|
return ratio
|
||||||
|
|
||||||
# In case of an DBMS error page return False
|
# In case of an DBMS error page return None
|
||||||
elif wasLastRequestError():
|
elif wasLastRequestError():
|
||||||
return False
|
return None
|
||||||
|
|
||||||
elif ratio == 1:
|
elif ratio == 1:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user