Link to home
Start Free TrialLog in
Avatar of Long Le
Long Le

asked on

Running an executable through telnet.

Hi All,

I setup a Server A as a telnet server. Then client A is using putty to telnet into Server A.
I successfully connect to the server and can run commands but when I try and open an exe. Nothing happens
It just returns  an empty line.When I go to Server A and open command prompt and execute the program it runs inside the command prompt window.
So not sure what I am doing wrong in the telnet setting for the program not to be starting.
Avatar of David Favor
David Favor
Flag of United States of America image

I hope you mean ssh.

Using telnet is not recommended, as this means everything you type is scrapable + hackable.

To do this via ssh, you'd run a command similar to...

ssh -i /root/.ssh/your-key.rsa root@144.217.34.10 -- your-command-here

Open in new window

Hi Long Le

I assume you installed the telnet server role in Windows?

Which OS does the server have?
What kind of EXE do you want to execute, what does it?
Also, telnet is cleartext (as David Favor stated), so everybody with a sniffer can read your user/pass when logging on, don't use that if you can avoid it.

If the servers are in the same network, best is to use powershell remote-execution / invoke for such things. Or psexec.exe tool from sysinternals if you need to achieve such things. Even its quite a hack...

regards
Thomas
Avatar of Long Le
Long Le

ASKER

I installed telnet server on a test vm. Playing with a Motorola.MC9090 barcode gun to run a program to move inventory around.
You should still run ssh.

If you're running WiFi, anyone can hack any WiFi in a few minutes using aircrack-ng.

Then if you're running any cleartext protocol, they can scoop user/pass combos off the wire.

If you must use telnet, use 16-32 byte random hashes for user + pass, then rotate these periodically.

Docs suggest this device supports ssh, so likely best to check into ssh setup first.
Hi Long Le

So I assume the Barcode gun should execute an "executable" on the Telnet Server when it scans something specific?

We need to know a little bit more specific what you want to achieve so we can help. I know you just "fiddeling" around and testing it. So let's do not fixate on the telnet security issue, but checking what you want program exactly.

regards
Thomas
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.