Advertisement
Guest User

Install

a guest
Apr 6th, 2020
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.68 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo Installing..
  4.  
  5. # Moving the files to /usr/bin
  6. cp search /usr/bin/ 2> /dev/null
  7. cp save /usr/bin/ 2> /dev/null
  8.  
  9.  
  10. # Creating symlinks
  11. ln -s /usr/bin/save save 2> /dev/null
  12. ln -s /usr/bin/search search 2> /dev/null
  13.  
  14.  
  15. # Creating pwn folder
  16. if [ ! -d "/pwn" ]; then
  17.   mkdir /pwn
  18.   touch /pwn/tricks
  19. fi
  20.  
  21. echo Sucessfully installed saveNsearch..
  22. echo Use \"save {cmd}\" to save command for later use.
  23.  
  24. echo -e "\n"
  25. echo Example:
  26. echo save crackmapexec -u users.txt -p passwords.txt --shares 10.10.10.149
  27.  
  28. echo search crackmap
  29. echo -e "\n"
  30. echo Use CrackMapExec to test creds on shares:
  31. echo crackmapexec -u users.txt -p passwords.txt --shares 10.10.10.149
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement