一个内网漫游的Bat小脚本

  • A+
所属分类:安全文章

一个内网漫游的Bat小脚本

@echo off  setlocal ENABLEDELAYEDEXPANSION   @FOR /F "usebackq eol=- skip=1 delims=" %%j IN (`net view ^| find "命令成功完成" /v ^|find  "The command completed successfully." /v`) DO (   @FOR /F "usebackq delims=" %%i IN (`@ping -n 1 -4 %%j ^| findstr "Pinging"`) DO (   @FOR /F "usebackq tokens=2 delims=[]" %%k IN (`echo %%i`) DO (echo \%%k  [%%j])   )   ) 


本文始发于微信公众号(飓风网络安全):一个内网漫游的Bat小脚本

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: