-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.py
36 lines (28 loc) · 1.25 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from threading import Thread;
from random import choice;
from subprocess import call;
from sys import executable;
from time import sleep;
from os import name;
ip_local=['192.168.0.1', '192.168.0.2', '192.168.0.3','192.168.0.10'];
with open('proxies.txt','r') as f:
proxies=str(f.read())
proxies=proxies.split('\n')
call([executable,'-m','pip','install','requests']);
from requests import get;
global R,B,C,G
Vermelho='\033[1;31m';Azul='\033[1;34m';Branco='\033[1;37m';Verde='\033[1;32m';
call([{'nt':'cls','posix':'clear'}[name]])
print('''%s __ __ __ __ __ __ __
/\ \/ / /\ \ /\ "-.\ \ /\ \_\ \
\ \ _"-. \ \ \ \ \ \-. \ \ \____ \
\ \_\ \_\ \ \_\ \ \_\\"\_\ \/\_____\
\/_/\/_/ \/_/ \/_/ \/_/ \/_____/ \n%s'''%(Azul,Branco))
def main(proxy):
call(['ifconfig','eth0','down']);
call(['ifconfig','eth0',choice(ip_local),'up']);
try: print('[ %s!%s ] Conectado a %s%s%s.'%(Verde,Branco,Verde,get('https://httpbin.org/ip',proxies={'http://':proxy,'https://':proxy}).json()['origin'],Branco))
except Exception: print('[ %sX%s ] Não foi possível se conectar a %s%s%s.'%(Vermelho,Branco,Vermelho,proxy,Branco))
if __name__ == '__main__':
while True:
for ip in proxies: Thread(target=main(ip)).start();sleep(0.7)