Guest User

Untitled

a guest
Jan 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Make Sure Script Is Ran As Root
  4. if [ $(id -u) != 0 ]; then
  5. echo; echo -e "\e[1;31mScript must be run as sudo. Please Type \"sudo\" To Run As Root \e[0m"; echo
  6. exit 1
  7. fi
  8.  
  9. echo "Enter port to listen"
  10. read portL
  11.  
  12. while true;
  13. do
  14. nc -l -p $portL
  15. done
  16. exit 0
Add Comment
Please, Sign In to add comment