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

Skip to content

Commit 06e8546

Browse files
committed
Finally fixed MSSQL 2000 fingerprint
1 parent eeb34eb commit 06e8546

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/dbms/mssqlserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def checkDbms(self):
198198
logger.info(infoMsg)
199199

200200
for version in ( 0, 5, 8 ):
201-
payload = agent.fullPayload(" AND ( SUBSTRING((@@VERSION), 22, 1)=2 AND SUBSTRING((@@VERSION), 25, 1)=%d ) OR ( SUBSTRING((@@VERSION), 23, 1)=2 AND SUBSTRING((@@VERSION), 26, 1)=%d ) " % (version, version))
201+
payload = agent.fullPayload(" AND ( ( SUBSTRING((@@VERSION), 22, 1)=2 AND SUBSTRING((@@VERSION), 25, 1)=%d ) OR ( SUBSTRING((@@VERSION), 23, 1)=2 AND SUBSTRING((@@VERSION), 26, 1)=%d ) )" % (version, version))
202202
result = Request.queryPage(payload)
203203

204204
if result == True:

0 commit comments

Comments
 (0)