1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Autohotkey in VPS

Discussion in 'BlackHat Lounge' started by kitteh101, Oct 14, 2015.

  1. kitteh101

    kitteh101 Regular Member

    Joined:
    Jan 17, 2012
    Messages:
    363
    Likes Received:
    53
    Occupation:
    Consultant
    Location:
    International
    I just got a windows vps and i want to run my autohotkey script in it while being able to minimize my vps and still use my mouse cursor for other things, how can i do this?
     
  2. kitteh101

    kitteh101 Regular Member

    Joined:
    Jan 17, 2012
    Messages:
    363
    Likes Received:
    53
    Occupation:
    Consultant
    Location:
    International
    :bump:Is it even possible to do?

    I'm going to be using bots most automation but im still curious:abducted:
     
    Last edited: Oct 14, 2015
  3. zoom5

    zoom5 Newbie

    Joined:
    Apr 28, 2015
    Messages:
    40
    Likes Received:
    7
    Like Nike, just do it. You literally laid out the steps for achieving this. What's the problem?
     
  4. kitteh101

    kitteh101 Regular Member

    Joined:
    Jan 17, 2012
    Messages:
    363
    Likes Received:
    53
    Occupation:
    Consultant
    Location:
    International
    I know how to run a bot on a vps because my mouse cursor is not in use.

    With autohotkeys it uses the mouse cursor, so i was wondering if i could run a autohotkey script inside my vps and still use my mouse outside of the vps window, that is what the problem is.

     
    Last edited: Oct 14, 2015
  5. RiTu

    RiTu Regular Member

    Joined:
    Oct 28, 2007
    Messages:
    403
    Likes Received:
    158
    Location:
    shiver down your spine
    Macro software such as AHK (or anything that involves mouse) require an active session.

    What that means is, it will work if you connect via remote desktop and run the macro, and it won't steal your local mouse cursor focus. However, if you minimize the RDP window or close it, the macro will stop working (because the session will end).

    Since the session has to be active at all times, I recommend teamviewer or VNC, like tightvnc or realvnc.
     
  6. blackmint

    blackmint Power Member

    Joined:
    Jun 8, 2013
    Messages:
    655
    Likes Received:
    340
    Location:
    BHW
    you are running the script inside vps. not in your desktop.
    so not a problem.
    just try it yourself. you will realize.
    as the above member said, use Teamviewer.
     
  7. taketheride

    taketheride Junior Member

    Joined:
    Mar 3, 2015
    Messages:
    143
    Likes Received:
    19
    Yeah, the autohotkey script will not steal your cursor if you run it from the vps itself. But like previously stated, it will stop working when you close the remote desktop connection if you're using mouse-movement and clicks in your script. There is another way of sending commands from an autohotkey script without using the mouse, directly to the target, can't remember what it was not though.
     
  8. blackmint

    blackmint Power Member

    Joined:
    Jun 8, 2013
    Messages:
    655
    Likes Received:
    340
    Location:
    BHW
    I dont think minimizing the RDP window causes any problems.
    Only closing the RDP will end the session.
     
  9. kitteh101

    kitteh101 Regular Member

    Joined:
    Jan 17, 2012
    Messages:
    363
    Likes Received:
    53
    Occupation:
    Consultant
    Location:
    International
    Team Viewer worked for me.

    I also like the file transfer feature.