Hello Developer's here my code and i'm getting Error..
import random
import time
import os
sec = int(input(" input time to change Ip in Sec: "))
limit = int(input('how many time do you want to change your ip: '))
ip = ".".join(map(str, (random.randint(0, 255) for _ in range(4))))
# main fuction
for _ in range(1,5):
ip = ".".join(map(str, (random.randint(0, 255) for _ in range(4))))
time.sleep(6)
os.system('sudo ifconfig wlo1 down')
os.system('sudo ifconfig wlo1 ip')
os.system('sudo ifconfig wlo1 up')
print('Your Current IP Address is ',ip)
and error is ...............
input time to change Ip in Sec: 2
how many time do you want to change your ip: 3
ip: Host name lookup failure
ifconfig: --help gives usage information.
Your Current IP Address is 212.49.83.22
ip: Host name lookup failure
ifconfig: --help gives usage information.
Your Current IP Address is 199.147.166.42
Aucun commentaire:
Enregistrer un commentaire