Apache Mina
Hello there, I am building a CNC / Telnet server using Apache Mina and ran into some issues from the very beginng... First, I will be showing my Classes which are in the relation of the CNC...
CNCServerHandler: https://pastebin.com/A5ea3AgF
CNCServer: https://pastebin.com/HEJedJ1F
CNCClient: https://pastebin.com/qk2Au8Bf
ClientSessionHandler: https://pastebin.com/paWniEHP
Those classes are supposed to:
- Open a telnet port on the server which is used to run the application
- Accept incoming connections to the port
- Handle user input related to that connection (username, password etc.)
Now, the first issue is, whenever I start a telnet session on that port using putty, it is just a blank screen and I have to type something first, for the session to actually appear... THEN, the username input is just skipped and left as a blank String which is very bad.
If you type "quit" it closes, like expected, BUT the input is not behind the prompt where it supposed to be... "Ryze@USERNAME-->", but one line below... I appreciate any help or ideas, as the information about apache mina on the internet are very limited and I also copied this code from a video I have seen.
The bad looking client screen of the Putty session will be added as an image.
Pastebin
Possible Spam Detected - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
CNCServer - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
CNCCLient - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
ClientSessionHandler - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
⌛
This post has been reserved for your question.
Hey @netty.bootstrap! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Why?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.