Jump to content

Random password from a list


Niclas
 Share

Recommended Posts

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 ?

Link to comment
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

Link to comment
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

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