Created
March 11, 2023 09:02
-
-
Save mitaken/485cbedc82690ef01100f6720c8bfa7d to your computer and use it in GitHub Desktop.
Open iLO3 admin panel bypassing SSL certification warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Call WScript.Quit() | |
Sub Main() | |
Const CstStrILO3 = "https://192.168.1.100/" | |
Dim ObjIE, ObjDoc, ObjLinks, ObjLink | |
Set ObjIE = WScript.CreateObject("InternetExplorer.Application") | |
ObjIE.Navigate2(CstStrILO3) | |
While ObjIE.Busy Or ObjIE.readyState <> 4 | |
'警告ページ表示待ち | |
WEnd | |
Set ObjDoc = ObjIE.document | |
Set ObjLinks = ObjDoc.links | |
For Each ObjLink In ObjLinks | |
If ObjLink.id = "overridelink" Then | |
Call ObjLink.click() | |
End If | |
Next | |
Set ObjLinks = Nothing | |
Set ObjDoc = Nothing | |
While ObjIE.Busy Or ObjIE.readyState <> 4 | |
'ホームページ表示待ち | |
WEnd | |
'ホームページ表示後にIE表示 | |
ObjIE.Visible = True | |
Set ObjIE = Nothing | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment