Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Make Sure Script Is Ran As Root
- if [ $(id -u) != 0 ]; then
- echo; echo -e "\e[1;31mScript must be run as sudo. Please Type \"sudo\" To Run As Root \e[0m"; echo
- exit 1
- fi
- echo "Enter port to listen"
- read portL
- while true;
- do
- nc -l -p $portL
- done
- exit 0
Add Comment
Please, Sign In to add comment