Last active
October 27, 2017 00:11
-
-
Save jh00nbr/6f9fd0bfedc0543bc51c9a7aae867d6c to your computer and use it in GitHub Desktop.
Script utilizado para gerar a lista de ips com base nos prefixies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess | |
import sys | |
#Script utilizado para gerar a lista de ips com base nos prefixes | |
output_file = open("output_ips","a") | |
prefixes_ovh = ['109.190.0.0/16','151.127.0.0/16','46.105.0.0/16','37.187.0.0/16','46.105.192.0/20','46.105.192.0/23','46.105.194.0/23','54.36.0.0/16','51.254.0.0/15','54.38.0.0/16','51.254.0.0/15','91.121.0.0/16','91.134.0.0/16'] | |
sys.stdout.write("[+] Generating ips :)\n") | |
sys.stdout.flush() | |
for __pre__ in prefixes_ovh: | |
prips_command = subprocess.call(['prips',str(__pre__)],stdout=output_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment