Ladon UsbLog查看USB使用记录,检测是否被他人用U盘插过自己电脑
目录1.Ladon查看USB使用记录 2.CMD查看USB使用记录 3.BAT查看USB使用记录 4.C#查看USB使用记录
更新功能Ladon 8.7 2021.8.14 [+]UsbLog USB使用记录查看(USB名称、USB标记、路径信息)
Ladon查看
C#查看1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 USBConnKey = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Enum\USBSTOR", false); foreach (string sub1 in USBConnKey.GetSubKeyNames()) { RegistryKey sub1key = USBConnKey.OpenSubKey(sub1, false); foreach (string sub2 in sub1key.GetSubKeyNames()) { try { RegistryKey sub2key = sub1key.OpenSubKey(sub2, false); if (sub2key.GetValue("Service", "").Equals("disk")) { String Path = "USBSTOR" + "\\" + sub1 + "\\" + sub2; String Name = (string)sub2key.GetValue("FriendlyName", ""); Console.WriteLine("USB_Name: " + Name); Console.WriteLine("UID_Tag: " + sub2); Console.WriteLine("Path: " + Path + "\r\n"); } } catch (Exception msg) { Console.WriteLine(msg.Message); } } } ``` ### Cmd查看 ```Bash for /f %i in ('reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR') do @for /f %x in ('reg query "%i"') do @reg query "%x" /v FriendlyName | findstr FriendlyName
Bat查看1 for /f %%i in ('reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR' ) do @for /f %%x in ('reg query "%%i"' ) do @reg query "%%x" /v FriendlyName | findstr FriendlyName
Ladon其它信息收集模块Getinfo 渗透基础信息收集(常用命令) Getinfo2 渗透基础信息收集(WMI信息) RdpLog 查看3389连接记录 Recent 最近文件访问记录 QueryProxy 查看代理服务器 GetPipe 查看本机命名管道 netver .net&powershell版本查看 allver 安装软件列表
Ladon下载历史版本: https://github.com/k8gege/Ladon/releases 7.0版本:http://k8gege.org/Download 8.7版本:K8小密圈