Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
Want to end Telnet session after displaying banner
I'm working on setting up a wargame server & want users to be able to telnet to the server at a certain port, view a custom banner, then be instantly disconnected.
I've installed & configured inetd w/ my banner but can't think of a way to disconnect from the session before the login prompt.
Never mind, I got it. For reference, here's what I did:
I got rid of telnet entirely and created a bash script with the following:
while [ 1 ]; do
cat /etc/issue.net | netcat -l 6666
This way, when someone attempts to telnet to port 6666, the contents of /etc/issue.net will be displayed then the session is instantly closed.