Prevent Shell |
Sensiva |
Prevent Shell |
Feb 25 2008 07:14 |
|
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 |
|
Feb 25 2008 10:20 |
|
>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 |
Feb 25 2008 17:54 |
|
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 |
|
Feb 26 2008 10:46 |
|
>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 |
Feb 26 2008 13:35 |
|
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 |
|
Feb 26 2008 18:57 |
|
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 |
Feb 27 2008 00:34 |
|
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 |
|
Feb 27 2008 14:23 |
|
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 |
|
Jul 17 2010 14:09 |
|
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 |
|
Jul 20 2010 18:56 |
|
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 |
Sep 23 2016 01:46 |
|
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.
|