Sign in to follow this  
Followers 0
swstrau118

Input Box Help

11 posts in this topic

Hello I am wondering, is it possible to have an Input box pop up where you can type your password in and then have it save it in "Memory" until computer is restarted? So you will only need to type in the password once and it will remember it. I don't want to store the password in the Autoit exe because someone can grab it, so looking for some help. Here is what I have so far

#include <IE.au3>

$oIE = _IECreate ("website")
$oForm = _IEFormGetObjByName ($oIE, "MAIN")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "SITE")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "LOGON_ID")
$oQuery3 = _IEFormElementGetObjByName ($oForm, "PASSWORD")
$sin="1001"
$uname=@UserName
$pwd = InputBox("Security Check", "Enter your password.", "", "*")
_IEFormElementSetValue ($oQuery1,$sin)
_IEFormElementSetValue ($oQuery2,$uname)
_IEFormElementSetValue ($oQuery3,$pwd)
$oButton=_IEGetObjById($oIE,"ENTER")
_IEAction ($oButton, "click")
_IELoadWait($oIE,0)

Share this post


Link to post
Share on other sites



Hi,

Take a look at the _Crypt*, File* functions in the helpfile.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

I am not sure how the _Cyrpt actually works - I don't understand how you can encrypt the password and send it not encrypted.. Could you help me understand this? That would be a great help

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

There are the helpfile examples, I can't help you more than them.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

I have, at times, used registry - just convert to binary and bury it somewhere so you're not including additional files. As with all things, a determined enough person is going to find it either way.

$pw = "MyPassword"
$hash = Binary($pw)
RegWrite("HKCU\Software\MyAutoItApp", "hex", "REG_BINARY", $hash)

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Let's combine the best of both worlds.  Use *_crypt on the password and then store it in the registry.  Protip: AutoIt may not be the best if the application must be totally secure.  I imagine that after someone types in the password but before it gets encrypted a malicious hacker can retrieve the password and then have access to your porn or your Carpenter's album collection.

Share this post


Link to post
Share on other sites

I don't need it to be completely secure, just so that if someone looks at the source code they won't see the password in Plain text. How can you store the password in the registry? Am i correct that the _Crypt allows you to type in a password which will encrypt it and then you can store that in the registry without having the password in plain text in your source code? If so when you want to send your password to say log into your gmail - how could it decrypt your password?

Thanks for all your help - this one has got me stumped

Share this post


Link to post
Share on other sites

Is there a way you can decrypt the password without showing the password in your source code? I wonder if there is a way to have an inputbox where you can type in the password and it would be put into an array (non encrypted) and as long as the script is running you can send the password. Once you close the script and re-run it you'll have to type it in again once.. and it will store the password so everytime you execute the script it would send the password that is stored in memory. Do you think this is possible?

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