Sign in to follow this  
Followers 0
Niclas

Random password from a list

8 posts in this topic

I've written a script with AutoIT, which opens the config of a Netgear router and enters a password in the wireless settings.

After that the config is saved and the browser window will be closed.

This works well already but naturally only the password used in the script is always being entered.

Now I'd like the script to be run by the windows taskplaner each second day.

For not having always the same password being entered I'd like AutoIt to open up a textfile (or whatever) and pick a random entry to enter as the new password in the Netgear configuration.

Additionally a window should pop up, showing the recent password after it has been entered and eventually an e-mail should be generated in which also the used password is entered.

Can this be realized with AutoIt ? There are the functions "FileRead" and "FileReadLine" but how can a textfile being opened before and a random entry being picked ?

Share this post


Link to post
Share on other sites



Hi,

no problem. Random. _FileReadToArray, even sending an email ist no prob.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Great ! That did it. :P

Many thanks.

The next problem is, that instead off one of the passwords being entered, the only entry being made is a "3". But the window popping up thereafter shows the randomly picked password.

Any clue ?

Share this post


Link to post
Share on other sites

Great ! That did it. :D

Many thanks.

The next problem is, that instead off one of the passwords being entered, the only entry being made is a "3". But the window popping up thereafter shows the randomly picked password.

Any clue ?

Hi,

versuch es doch mal hier: Ist vielleicht einfacher. :P

http://autoit.aufwaerts.de/portal.php

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Ja, werde mich dann mal wohl registrieren. :P

Habe diesen Post auch im deutschen Unattended-Forum gepostet, aber da kam noch nicht allzuviel zurück.

Share this post


Link to post
Share on other sites

Has anyone a clue why only a "3" is entered into the textfield of the router config instead off the randomly chosen password out of the textfile ?

Like I said, the messagebox shows the chosen password correctly. :P

Share this post


Link to post
Share on other sites

Thanks to th.meger it's solved.

Instead off "Send($count)" it had to be "Send($read)".

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