Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- import os,sys,random;
- def main():
- b = os.urandom(32);
- rs = random.SystemRandom();
- r_i = rs.randint(0, sys.maxint);
- a = str(r_i >> 24 & 0xFF);
- b = str(r_i >> 16 & 0xFF);
- c = str(r_i >> 8 & 0xFF);
- d = str(r_i & 0xFF);
- octe = r_i%3;
- if(octe==0):
- a='x'
- if(octe==1):
- b='x'
- if(octe==2):
- c='x'
- if(octe==3):
- d='x';
- print(a+"."+b+"."+c+"."+d);
- if __name__=="__main__":
- main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement