Jump to content

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


Recommended Posts

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..

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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}")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...