1 little known secret of nslookup.exe, part 2
利用nslookup.exe的view命令读取文件并排序,通过构造特定文件和本地payload实现代码执行。 2025-10-19 00:42:7 Author: www.hexacorn.com(查看原文) 阅读量:6 收藏

This is a little lolbin trick you can do with a nslookup.exe program.

One of the less-known nslookup.exe commands is view <filename>. When executed, it reads a content of a given file and sorts it. The sorting bit is interesting to us as it is delivered by means of executing a command sort < %s | more.

So, one can create a dummy file f.ex. foo.txt, then a nslookup-driving command file f.ex. bar.txt that includes a command to view the content of the foo.txt file, and then place a payload inside a sort.exe or more.exe program present in a local directory, and finally run nslookup with the input delivered from the bar.txt file – resulting in an execution of our payload:


文章来源: https://www.hexacorn.com/blog/2025/10/19/1-little-known-secret-of-nslookup-exe-2/
如有侵权请联系:admin#unsafe.sh