• Few Important Functions or Defs

    import urllib3, os, sys #Get Member of any Imported module def get_member(module_name): for i in dir(module_name): print(i) get_member(urllib3) def checking_root(): if ( os.getuid() != 0 ): print ("[!]The Script should be run as root") sys.exit() else: pass checking_root() #--------------- generate random password import os,random,string def generate_random_password(): rPassword="" length = 9 chars = string.ascii_letters + "!@#$%^&*()" suffix = string.digits random.seed = (os.urandom(1024)) rPassword = ''.join(random.choice(chars) for i in range(5)) + '@' + ''.join(random.choice(suffix) for j in range(3)) print("RandomPassword=%s" % rPassword) generate_random_password() Ask Vikas
    Just press 'Run'.