Open Labs22 opened 5 years ago
As for #368, I'll use this opportunity for some shameless promotion.
You can use IVRE and run: ivre runscans --output ListCIDRs --asnum XXXXX > ASNum-XXXXX
(the list is generated based on Maxmind GeoIP databases).
Then, just run masscan -iL ASNum-XXXXX
.
Hope this helps.
This really help me a lot. thank you very much I'm in loving with IoT search engine. I've been using shodan, censys, zoomeye and now Ivre.
ASNUM="XXXXXX"
whois -h whois.ripe.net -T route $ASNUM -i origin | egrep "route: " | awk '{print $NF}' >> MYASIP.TXT
@Rokin05 good point, thanks for this hint! (but you should try IVRE anyway ;-) )
You have (I think) an error: you need to add AS
before $ASNUM
: whois -h whois.ripe.net -T route AS$ASNUM [...]
(at least, I had to do so). Also, you could use awk
directly and remove egreg
:
ASNUM="XXXXXX"
whois -h whois.ripe.net -T route AS$ASNUM -i origin | awk '/^route:/ {print $NF}' > MYASIP.TXT
Hey can you add a feature to scan the ASN number?