BPC Squad Bank Paypal And Cards | Carders Forum | Carding Forum

- Advertisement Area (For purchasing Ads or Banner contact ) Jabber [email protected] -(Telegram : @bpclover) -



Jerry's Store Excellent bases | AVS checker
Cerberux.CC The king shop with new checker feature attached + high quality spam cards direct from inbox.
Algae For Sale Global rare CC, Best Quality
CC+CVV Private Base Wholesale & Retail | Rare BINs
Bankman.biz Merchants, Banks US/EU, Crypto
BIGSTACKS DUMPS+PINS, EBT+PINS, CC+CVV




- Advertisement Area (For purchasing Ads or Banner contact )-Jabber-[email protected]

Best Regards
BPC Team







-BPCFORUM-  Registration Opened ####.


We are the Best one Carding Forum on Internet And you choose the right place to start Carding World so Enjoy your time with bpc , Also bpc is not responsible for any kind of post Because we are not a post owner So all stuff you will use at your own risk and If you face any kind of problem please feel free to contact with us.. Telegram : @bpclover
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


Ip Range Maker Python
#1
ips save like this :- 182.192.183.12

Code:
import sys
import re
import os

# Check for enough parameters
if len(sys.argv) < 3:
   print "Usage: rangemaker.py infile outfile"
   print "Example: rangemaker.py ips.txt out.txt"
   sys.exit

ipsfile = sys.argv[1]
outfile = sys.argv[2]

# Check if the ips file exists.
if not os.path.isfile(ipsfile):
   print "{0} not found!".format(ipsfile)
   sys.exit()

def make_range(ip):
   """Make range from ip"""

   # Check if the ip is valid
   ip_pattern = r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"

   match = re.match(ip_pattern, ip)
   if match:
       ip_list = ip.split(".")[:2]
       
       end = ".".join(ip_list + ["255"]*2)
       return "{start}-{end}\n".format(start=ip,
                                     end=end)

hOut = open(outfile, "a")

with open(ipsfile, "r") as hIps:
   for line in hIps:

       # Strip newline and skip empty lines
       line = line.strip()
       if line == "":
           continue

       range_string = make_range(line)
       if range_string:
           hOut.write(range_string)

hOut.close()
Find Rate
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Possibly Related Threads…
Thread Author Replies Views Last Post
  Absolute Python beginer [Ace] 12 12,040 06-02-2018, 08:37 AM
Last Post: whatpigs
  Patator v0.5 Python - Best Cracker subject0 1 4,050 04-23-2018, 12:49 AM
Last Post: bobhojunk
  Python Pocket reference [Ace] 3 4,756 04-23-2018, 12:46 AM
Last Post: bobhojunk
  Smtp Checker Python subject0 2 5,902 09-14-2017, 01:33 PM
Last Post: consuela
  Learning Python [Ace] 6 7,247 02-14-2017, 01:56 PM
Last Post: alioujalan
  Python Fast [Ace] 11 9,261 02-09-2017, 11:59 PM
Last Post: alioujalan
  Start Learning - Python Ruby PHP Pentest And Other subject0 2 3,446 01-22-2017, 11:41 PM
Last Post: Hern314
  Brute SSH Python 2016 subject0 0 2,921 11-20-2016, 02:50 PM
Last Post: subject0
  Enumerate Users Wordpress 2016 Python subject0 0 2,808 11-20-2016, 02:49 PM
Last Post: subject0
Thumbs Up Ip Safe Python - Spammers Hackers Carders subject0 0 2,676 11-19-2016, 09:14 PM
Last Post: subject0



Users browsing this thread:
1 Guest(s)

 
Carding forum