Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use option "-e" with netcat (link netcat traditional) #38

Open
poka-IT opened this issue Aug 20, 2018 · 0 comments
Open

Use option "-e" with netcat (link netcat traditional) #38

poka-IT opened this issue Aug 20, 2018 · 0 comments

Comments

@poka-IT
Copy link

poka-IT commented Aug 20, 2018

If you get an error with netcat about option "-e" missing, it's because linux use by default an alternative version of netcat: GNU-Netcat.
To use Traditional netcat:
sudo apt install netcat
sudo rm /etc/alternatives/nc
sudo ln -s /bin/nc.traditional /etc/alternatives/nc

Now use the alias "nc" instead "netcat":
:;while true;do nc -lp 8080 -e ./bashttpd ;done

(ctrl-z to stop file descriptor listening and kill -9 %1 2 times to kill the process)
If you want to load the process in background: :;while true;do nc -lp 8080 -e ./bashttpd ;done&

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant