[英]How to make a python program that is going to click on a browser link for unlimited number of times with the different ip?
I want to make a python program that is going to click on a random browser link for unlimited number of times but every time it clicks the link the ip needs to be different.我想制作一个 python 程序,该程序将无限次单击随机浏览器链接,但每次单击该链接时,ip 都需要有所不同。 I am going to use this for the link invite rewards.我将使用它作为链接邀请奖励。
According Vamshi Reddyin in Linux shell you can do like this or in windows with Cygwin shell According Vamshi Reddyin in Linux shell you can do like this or in windows with Cygwin shell
#!bash
counter=0
# Assuming eth0 is your interface
while [ $counter -lt 256 ]
do
# Suppose you want prefix of 12.12.12.0/24
a=12
b=12
c=12
d=$counter
ip="$a.$b.$c.$d"
echo "Ip Address is changed to $ip"
ifconfig eth0 $ip
counter=`expr $counter + 1`
# Now sleep for one second
sleep 1
done
But this is just to change the ip every second, and you have to write the Python code yourself但这只是每秒更改ip,你必须自己编写Python代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.