print('The scanned port : ' + str(port1[:]).strip('[]')) port(ip=ip, portt=port1) if service_port is None: pass else: print('The scanned port : ' + str(service_port[:]).strip('[]')) service_sc(ip, service_port) if is_directory is False: pass #NOT directory scan,prepare to perform a subdomain scan else: dir(is_directory, dictionary, thread) if domain is not None: sub_scan(domain) if __name__ == '__main__': time = Timer.Mytimer() time.start() try: main() except: print( '\n[!]Warning: if your computer system is *nix,please execute this program by root privilege.exp:sudo python3 Thescanner.py\n' 'if your computer system is windows,please open terminal by using Administrator privilege\n\n' ) print( '\n\033[1;36;40m--------------------------------------------------------------------------------\033[0m' ) time.stop() print('\n\n[-]The scanning is over.\n')