Mackey Posted November 27, 2019 Posted November 27, 2019 (edited) #include <IE.au3> If $CmdLine[0] < 2 Then MsgBox($MB_OK, "Usage", "Sample_Format <username> <password>") Else Sample_Format($CmdLine[1], $CmdLine[2]) EndIf Func Sample_Format($username, $password) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE","iexplore.exe","REG_DWORD",0) Local $ie = _IECreate("https://"&$username&":"&$password&"@<Proxy_IP>/") $hwnd = _IEPropertyGet($ie, "hwnd") WinSetState($hwnd, "", @SW_MAXIMIZE) Local $oie = _IEAttach("Cert") _IELinkClickByText($oie, "Continue to this website (not recommended).") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE","iexplore.exe","REG_DWORD",1) WinWaitClose($hwnd) EndFunc Hi Tech Team, So I'm having a problem on automating BlueCoat Proxy as it requires credentials by inputting it on Windows Security. Whenever I run this command it only inputs the username but not the password on Windows Security Prompt. (Please see image below) I wonder if there is something I need to tinker on the script or on the Internet Settings. Really appreciate your help on this. Thank you! Edited November 27, 2019 by Mackey
spudw2k Posted November 27, 2019 Posted November 27, 2019 if you input the password manually, does it accept it (is the password correct)? If you input the user and password in the URL manually, and accept the certificate warning, does it work (is it a script issue or an IE behavior)? 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 Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
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