顯示具有 ip 標籤的文章。 顯示所有文章
顯示具有 ip 標籤的文章。 顯示所有文章

2018年9月7日 星期五

使用ip取得電腦名稱及mac address


nmap --script smb-os-discovery 192.168.0.1

抓以下兩個區塊的資料

MAC Address: 4C:CC:6A:77:A5:98 (Micro-star Intl)

Host script results:
| smb-os-discovery:
|   OS: Windows 7 Enterprise 7601 Service Pack 1 (Windows 7 Enterprise 6.1)
|   OS CPE: cpe:/o:microsoft:windows_7::sp1
|   Computer name: xx
|   NetBIOS computer name: xx\x00
|   Workgroup: xxgroup\x00
|_  System time: 2018-09-07T10:03:26+08:00

2018年6月25日 星期一

取得台灣IP列表

取得台灣IPv4列表
#fetch http://ftp.apnic.net/stats/apnic/delegated-apnic-latest

#netmask `cat delegated-apnic-latest | awk -F'|' '/TW\|ipv4/ {print $4":+"($5-1)}'` > tw_ip_range.txt

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

2016年9月19日 星期一

ip range

google "ipinfo + asxxxxx"

facebook    as32934
google        as15169
microsoft    as8075

2016年3月29日 星期二

google 的 IP 位址

參考:
https://support.google.com/a/answer/60764?hl=zh-Hant



nslookup -q=TXT _spf.google.com 8.8.8.8

nslookup -q=TXT _netblocks.google.com 8.8.8.8
nslookup -q=TXT _netblocks2.google.com 8.8.8.8
nslookup -q=TXT _netblocks3.google.com 8.8.8.8



即可拿到IP清單