KpyM Telnet/SSH Server - Forum
Prevent Shell
Sensiva Prevent Shell
 
Hello,
I want to use KypM as a listening server only that accept connections at specific port and log strings have been received to a file. Is this possible??

Thanks
Sensiva


Kroum Grigorov
 
>I want to use KypM as a listening server only that accept connections at specific port

I'm not sure that I get your question, KTS will listen only on the port you setup. It's usually 22 when running in SSH mode or 23 when in TELNET mode.

> and log strings have been received to a file.

There's a log file in Program Files\KTS\log\kts-log.txt is this what you want?

Kroum


Sensiva Explained again
 
I know this exactly, I can setup KpyM to listen to any port.
But once I connect to this port and logged in, it gets me into shell, which I don't want.
I want it to log every string I send to this port into a text log file
The log file you mentioned only logs connections tryout, but doesn't log what data has been exchanged during session

Please, advice

Thanks
Sensiva


Kroum Grigorov
 
>But once I connect to this port and logged in, it gets me into shell, which I don't want.
>I want it to log every string I send to this port into a text log file

You can't do that just using KTS.

The best I can think of is to automatically start your own application on top of the command shell that reads every key stroke and writes it to a log file.

Kroum


Sensiva No Keystrokes neeeded
 
No man!!... I am not talking about keystrokes.

I have a device that can initiate TCP/IP connection, and send specific strings or messages(which I need to log).

Can this device connect to KpyMs port then KpyM in turn won't drop into shell and start logging every string or message sent from this device.

I hope you understand me now


Kroum Grigorov
 
You can't do that just using KTS.

You can start your own application on top of the command shell that reads every key stroke and writes it to a log file.

When a device sends a message to the server it will be converted to keystrokes on the host and possibly logged by your "application".

Obviously this is far from optimal solution.
I definitely do not recommend you to implement this.

Kroum


Sensiva OMG... I liked your app
 
Oh... I am very sorry, I liked your program... I'll see what I can do...

Mean while.. what do you suggest? How can I make my PC listening for a specific port and once a connection established it logs all sent messages?

I'll Appreciate your advice
Thanks
Sensiva


Kroum Grigorov
 
I'm not aware of a product that can do that out of the box.
The best you can do is to find someone to create a custom software for you that does exactly what you nead.

Kroum


Ariel Coloma
 
Hi, after I telnet to the server, I am logged out right away. I am using 1.19a. Below is the log


1304 : 4128 2010- 7-17 9:54:28 875 : 0: KTS connected to 127.0.0.1:2621

588 : 720 2010- 7-17 9:54:29 390 : 0: session.exe started

588 : 720 2010- 7-17 9:54:29 468 : 0: connected to 127.0.0.1:2621

588 : 4180 2010- 7-17 9:54:48 859 : 0: login accepted: [ admin ]

588 : 4180 2010- 7-17 9:54:48 937 : 0: can't start shell

588 : 576 2010- 7-17 9:54:49 406 : 0: shell is dead

588 : 576 2010- 7-17 9:54:50 406 : 0: shutdown

588 : 5788 2010- 7-17 9:54:50 406 : 0: session.exe end


Kroum Grigorov
 
Check the NTFS permissions on command prompt(cmd.exe) file, the user you are loging in should have execute permissin on this file.
Also check your firewall/antivirus some of these are rather agressive when protecting your box and sometimes get suspicious when cmd.exe is started and might abort the execution.

Kroum


Mehrdda KTS Telnet mode issue
 
I have the same issue, running KTS in Telnet mode. It starts telnet ok and run Allusers.bat but then immediately logs out.
The log file shows,
Shell is dead
Shutdown
Session.exe end

Appreciate if you can help please.


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group