2017年5月15日 星期一

masscan 網路掃描

安裝
pkg install masscan

使用
#掃描整個網段的80port(TCP)
masscan 10.10.1.0/24 -p80 -e em0 --router-ip 10.10.1.254

#掃描單一IP的所有port(TCP)
masscan 10.10.1.1 -p0-65535 -e em0 --router-ip 10.10.1.254

#掃描port(UDP)
masscan 10.10.1.1 -pU:123 -e em0 --router-ip 10.10.1.254

2017年3月29日 星期三

修正新版kms server會造成win7認證失效的問題

不用重新開機,一次完成認證,黑色桌布需要自行更改回來。

@echo off

cscript.exe %SystemRoot%\system32\slmgr.vbs -rearm

net stop sppsvc

net start sppsvc

cscript.exe %SystemRoot%\system32\slmgr.vbs -skms kms-server
%SystemRoot%\system32\slmgr.vbs -ato

自動判別windows版本 導向不同kms server 認證

另存成BAT檔,尚未完整測試過,在 win7 及 win10 可正常運作。

@echo off
for /f "tokens=4-7 delims=[.] " %%i in ('ver') do (if %%i==Version (set v=%%j.%%k) else (set v=%%i.%%j))

if "%v%" == "6.1" goto win7

cscript.exe %SystemRoot%\system32\slmgr.vbs -skms 1.1.1.1
%SystemRoot%\system32\slmgr.vbs -ato
goto end

:win7
cscript.exe %SystemRoot%\system32\slmgr.vbs -skms 2.2.2.2
%SystemRoot%\system32\slmgr.vbs -ato
goto end


:end

2016年11月17日 星期四

2016年9月19日 星期一

ip range

google "ipinfo + asxxxxx"

facebook    as32934
google        as15169
microsoft    as8075