swstrau118 Posted April 24, 2013 Share Posted April 24, 2013 I created this Logon Script to be able to log on to a particular website. However it's unecrypted and you can easily see the password. My question is - is there any way you can put a variable in autoit that will pull your Windows/Network password into the "Password Field" so that it is encrypted? Reason I ask is if a user changes his/her password every six months it's hard to have to continually update everyone's script. Any ideas? Here is the Code listed Below: #include $oIE = _IECreate ("") $oForm = _IEFormGetObjByName ($oIE, "MAIN") $oQuery1 = _IEFormElementGetObjByName ($oForm, "SITE") $oQuery2 = _IEFormElementGetObjByName ($oForm, "LOGON_ID") $oQuery3 = _IEFormElementGetObjByName ($oForm, "PASSWORD") $sin="1001" $uname=@UserName ;This variable allows me to pull my windows username $pwd="Password" ; I want to know if there is an variable to pull windows password as well _IEFormElementSetValue ($oQuery1,$sin) _IEFormElementSetValue ($oQuery2,$uname) _IEFormElementSetValue ($oQuery3,$pwd) $oButton=_IEGetObjById($oIE,"ENTER") _IEAction ($oButton, "click") _IELoadWait($oIE,0) Link to comment Share on other sites More sharing options...
water Posted April 24, 2013 Share Posted April 24, 2013 I doubt the website can handle the encrypted password. And I don't know of a way to get the Windows password (encrypted or not). But I could be wrong here. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
spudw2k Posted April 24, 2013 Share Posted April 24, 2013 Now you got me thinking....Windows must do something to cache the password (probably encrypted) otherwise how does locking/unlocking work? Anyways, you are providing your Windows username and password for access to the website? I assume the site in run on a server in your domain? Can Windows Authentication be enabled? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
swstrau118 Posted April 24, 2013 Author Share Posted April 24, 2013 Now you got me thinking....Windows must do something to cache the password (probably encrypted) otherwise how does locking/unlocking work? Anyways, you are providing your Windows username and password for access to the website? I assume the site in run on a server in your domain? Can Windows Authentication be enabled? That's what I was thinking, Windows has to do something with the Windows Password that would give you the ability to call the Windows Password. Yes I am providing the Windows username and Password for the website with is run a sever in the domain - I have Authentication enabled but the way the site is coded it use the Windows Authentication - it doesn't allow you to "Save" password either. The way I had it was sending the username and password through Plain text $pwd="Password" However this can't be used because it's sending the credentials un-encrypted, I am trying to make this log on easier for everyone having to use this website (logs them out every 15 minutes) So i either want to some how create a hotkey that will allow them to type in their userID and Password and it will save to the script. Or just have it use a variable to grab the windows password. Thanks for all your help I'm lost on this one Link to comment Share on other sites More sharing options...
spudw2k Posted April 25, 2013 Share Posted April 25, 2013 Not that this helps (just an observation) but is the site running on SSL (https)? If not then cleartext passwords are being sent to anyways. If it is using SSL than sending the password shouldn't be an issue. I'm also at a loss. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now