Skip to main content
deleted 5 characters in body
Source Link
S4M11R
  • 399
  • 2
  • 6
  • 14

Solved with a simple bash script

#!/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
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!

Solved with a simple bash script

#!/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
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!

Solved with a simple bash script

#!/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

Thanks dreamlax for the tip!

added 209 characters in body
Source Link
S4M11R
  • 399
  • 2
  • 6
  • 14

Solved with a simple bash script

#!/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
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!

Solved with a simple bash script

#!/bin/bash

echo "Enter port to listen"
read portL

while true;
do
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!

Solved with a simple bash script

#!/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
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!

Source Link
S4M11R
  • 399
  • 2
  • 6
  • 14

Solved with a simple bash script

#!/bin/bash

echo "Enter port to listen"
read portL

while true;
do
    sudo nc -l -p $portL
done
exit 0

Thanks dreamlax for the tip!