mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
Added a desktop shortcut and updated paths
This commit is contained in:
parent
e8f69ba3af
commit
bf81c45c4c
2
package/win/tcg-rim-tool/InstallTools.bat
Normal file
2
package/win/tcg-rim-tool/InstallTools.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\create_hirstools_desktop_shortcut.ps1"
|
@ -4,9 +4,11 @@ To get the tools running on windows follow the instructions below:
|
||||
|
||||
1- Unzip "ZIP_Files"
|
||||
|
||||
2- Double click runTools.bat, a HIRS terminal should open.
|
||||
2- Run the install file under ```hirstools\IntsallTools.bat``` a HIRS_tools shortcut should appear on your desktop
|
||||
|
||||
To run the rim tool try the following commands
|
||||
3- Double click HIRS_tools.lnk shortcut and HIRS terminal should open.
|
||||
|
||||
To run the rim tool try the following commands:
|
||||
|
||||
> rim -c base -a .\tcg_rim_tool\Base_Rim_Config.json -l .\tcg_rim_tool\TpmLog.bin -k .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.key -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRim.swidtag
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
# Unzip tools in the working directory
|
||||
Expand-Archive -Path ..\tcg_rim_tool.zip -DestinationPath .\tcg_rim_tool
|
||||
Expand-Archive -Path ..\tcg_eventlog_tool.zip -DestinationPath .\tcg_eventlog_tool
|
||||
# Create a shortcut to start the RIM shell
|
||||
$WshShell = New-Object -comObject WScript.Shell
|
||||
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\HIRS_tools.lnk")
|
||||
$Shortcut.TargetPath = "$PWD\RunTools.bat"
|
||||
$Shortcut.WorkingDirectory = "$PWD"
|
||||
$Shortcut.Save()
|
@ -1,10 +1,3 @@
|
||||
# Unzip tools in the working directory
|
||||
if (Test-Path ".\tcg_rim_tool") {
|
||||
Write-Output "tcg_rim_tool already unzipped"
|
||||
} else {
|
||||
Expand-Archive -Path .\tcg_rim_tool.zip -DestinationPath .\tcg_rim_tool
|
||||
Expand-Archive -Path .\tcg_eventlog_tool.zip -DestinationPath .\tcg_eventlog_tool
|
||||
}
|
||||
# Script to start a new shell with a rim alias
|
||||
$StartInfo = new-object System.Diagnostics.ProcessStartInfo
|
||||
$StartInfo.FileName = "$pshome\powershell.exe"
|
||||
|
@ -1,3 +1,2 @@
|
||||
@echo off
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0hirsshell.ps1"
|
||||
pause
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\hirsshell.ps1"
|
||||
|
Loading…
Reference in New Issue
Block a user