#Apache Mina

4 messages · Page 1 of 1 (latest)

full prism
#

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.

covert scaffoldBOT
#

This post has been reserved for your question.

Hey @full prism! Please use /close or the Close 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.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

idle horizon
#

Why?