Sign in to follow this  
Followers 0
Andre

Detect a remote access session

9 posts in this topic

Hi,

is it possible to detect that someone is dialling in ?

I want to reboot my server afer the remote access user has closed the connection.

But how to find out if someone is connected ?

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites



You could use a packet sniffer with filters and logs, and gather the info from the logs to your AutoIT script.

Share this post


Link to post
Share on other sites

Hi,

No is not what i want, should be an AutoIt solution.

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I've heard someone wrote a simple ping application for AutoIT. Otherwise, AutoIT doesn't support network sniffing.

However, you could solve it by detecting windows or processes in windows and make your script react on that.

*Edit*

I have a little question concerning this aswell acctualy. If anyone reads this and knows of a good "commandline packet sniffer" that can log packets to a file, preferably filtered, please post your suggestion here.

Thanx.

Edited by faldo

Share this post


Link to post
Share on other sites

i know but i don't see any new processs come up when i dail in...


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Packet sniffing r00lz dude. If you are a network admin of some kind you could actually use the "Back Orifice" tool created by the "Cult of the Dead Cow" to do all the things you want legally.

By the way... Just to add this really quick. Once you install the Back Orifice it is very hard to remove. Make sure that you want it before you download and install it.

Edited by Py7|-|[]/\/

Share this post


Link to post
Share on other sites

Why not log dialup logins to the event log. Then query the event log Security with AutoIt for either logins or logouts, Client name, etc.. then write your script accordingly?

Just an idea.

RocTx

Share this post


Link to post
Share on other sites

Is your RAS setup to assign IP addresses via DHCP? If yes, you can ping each address in the range.

If none are active, do nothing.

If some are alive, set a variable, say $connected to YES and re-ping

If $connected is YES and no IP are alive, then you can assume that the connection is finished and reboot.

I let you workout the script.


CheersNobby

Share this post


Link to post
Share on other sites

Hi Nobby,

Tried it and it's so easy now.

Thnx.

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

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