Minor bug fix to make --file-read and --os-bof syntactically work also with -d (direct connection)

This commit is contained in:
Bernardo Damele 2012-02-17 15:16:05 +00:00
parent aee269cc14
commit ebd40b3933
2 changed files with 2 additions and 4 deletions

View File

@ -51,8 +51,7 @@ class Filesystem(GenericFilesystem):
inject.goStacked("BULK INSERT %s FROM '%s' WITH (CODEPAGE='RAW', FIELDTERMINATOR='%s', ROWTERMINATOR='%s')" % (txtTbl, rFile, randomStr(10), randomStr(10)), silent=True)
# Reference: http://support.microsoft.com/kb/104829
binToHexQuery = """
DECLARE @charset VARCHAR(16)
binToHexQuery = """DECLARE @charset VARCHAR(16)
DECLARE @counter INT
DECLARE @hexstr VARCHAR(4096)
DECLARE @length INT

View File

@ -76,8 +76,7 @@ class Takeover(GenericTakeover):
shellcodeChar = shellcodeChar[:-1]
self.spExploit = """
DECLARE @buf NVARCHAR(4000),
self.spExploit = """DECLARE @buf NVARCHAR(4000),
@val NVARCHAR(4),
@counter INT
SET @buf = '