添加exchange_ssrf_poc

This commit is contained in:
shadow1ng
2021-03-31 17:03:33 +08:00
parent 559d6c7c4b
commit f4b6ecc363
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ func ParseIPC(ip string) ([]string, error) {
}
startNum := start[0]<<24 | start[1]<<16 | start[2]<<8 | start[3]
endNum := end[0]<<24 | end[1]<<16 | end[2]<<8 | end[3]
for num := startNum; num < endNum; num++ {
for num := startNum; num <= endNum; num++ {
ip := strconv.Itoa((num>>24)&0xff) + "." + strconv.Itoa((num>>16)&0xff) + "." + strconv.Itoa((num>>8)&0xff) + "." + strconv.Itoa((num)&0xff)
AllIP = append(AllIP, ip)
}