Sign in to follow this  
Followers 0
erezlevi

executing AutoIT Exe from server-side script Web

8 posts in this topic

hi,

I wrote the following in ASP on my web server:

<% 
    dim wshell
    set wshell = CreateObject("WScript.Shell") 
    wshell.run "c:\erez-telnet.exe" 
    set wshell = nothing 
%>

the .exe file is an Auto-IT exe file. but the server side does not run it if I surf using IE to this page.

why?

Share this post


Link to post
Share on other sites



How do you know it doesn't run? Are you sure it's not just exiting immediately?

Share this post


Link to post
Share on other sites

Because I am not seeing it under Processes (au3wrapper) at all.

do you have a working one?

Share this post


Link to post
Share on other sites

I'm not sure what you mean by "working one". I don't work with ASP so I'm just looking at other things it might be.

Does your server give permissions to use the objects?

Share this post


Link to post
Share on other sites

bump.

does anyone have succesfully called an Auto-IT exe from ASP or .net web server application ? (server side scripting)

Share this post


Link to post
Share on other sites

Are you able to run non-AutoIt applications this way? If you can't run anything at all, your problem lies with the ASP setup and is not an AutoIt problem.

Try running something like notepad and see if it runs. If it doesn't, it's obvious the problem isn't AutoIt.

Share this post


Link to post
Share on other sites

hi,

my Auto-IT script only perform telnet stuff:

$ipaddr = "192.168.10.10"
    $port = 23
    TCPStartup()
    $i = 1
    Dim $ConnectedSocket = -1
    $ConnectedSocket = TCPConnect($ipaddr, $port)
    Sleep(600)
    TCPSend($ConnectedSocket, Binary("0xfffb18fffb1f"))
    TCPSend($ConnectedSocket, Binary("0xfffc20fffc23fffb27"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffa1f00500019fff0"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffa2700fff0"))
    TCPSend($ConnectedSocket, Binary("0xfffa1800414e5349fff0"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffd03"))
    Sleep(10)
    TCPSend($ConnectedSocket, Binary("0xfffb01fffe05fffc21"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffc01"))
    Sleep(200)
    TCPSend($ConnectedSocket, Binary("0xfffd01"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "abi")
    Sleep(500)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "abithebest")
    Sleep(1000)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1000)
    TCPSend($ConnectedSocket, "vt220")
    Sleep(500)
    TCPSend($ConnectedSocket, Binary("0x0d"))
    Sleep(1500)

the asp code works fine with : ping.exe for example.

Share this post


Link to post
Share on other sites

Does ASP not let you do that? PHP lets you use sockets, so I would expect ASP to as well.

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  
Followers 0