Jump to content
Sign in to follow this  
MrNymous

Open CMD / or TELNET type Commands - COMMAND NOT FOUND?

Recommended Posts

MrNymous

Hay Guys...

Something strange happend to me..

Well , a'm working on a recconect script (very easy .. i thought)

First i started the MS Telenet Client

Run("telnet.exe")

I searched fpr the Win in a while loop

if WinExists("[CLASS:ConsoleWindowClass]","")

Waited for the Win...

WinWaitActive("[CLASS:ConsoleWindowClass]","")

Send my Command

ControlSend("[CLASS:ConsoleWindowClass]","","","open 192.168.1.1")

Pressed Enter

ControlSend("[CLASS:ConsoleWindowClass]","","","{ENTER}")

And waited

Sleep($pause)

Well ... the thing that made my cry is the answer of the CMD ... (Wrong command or syntax ... )

When i type this in manually it works ....

http://www.abload.de/image.php?img=unbenanntaw13.png

Can someone help me ... A'm going crazy..

Share this post


Link to post
Share on other sites
FuryCell

Maybe it would be easier to use the STD functions to deal with telnet. Give me a few mins and I'll see if I can whip up a prototype.

Edit:On Windows 7 telnet.exe is not installed by default so I can't do it.

Edit2:Check this out also.

Edited by FuryCell

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites
Juvigy

This works for me on XP v 3.3.0.0

Run("telnet.exe")
Sleep(1000)
ControlSend("[CLASS:ConsoleWindowClass]","","","open 192.168.1.1")
ControlSend("[CLASS:ConsoleWindowClass]","","","{ENTER}")

Share this post


Link to post
Share on other sites
MrNymous

Well thats Wrong u got Telenet in Windows called Telnet there...

...mhm

try it...

run telnet.exe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.