Skip to content

Commit

Permalink
Added GUI Installer files for Windows Installation
Browse files Browse the repository at this point in the history
  • Loading branch information
x0prc committed Aug 29, 2024
1 parent c320b77 commit 9751431
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
Binary file added windows/FDE-Turbo}/MyProg-x64.exe
Binary file not shown.
Binary file added windows/FDE-Turbo}/unins000.dat
Binary file not shown.
Binary file added windows/FDE-Turbo}/unins000.exe
Binary file not shown.
32 changes: 32 additions & 0 deletions windows/FDE-Turbo}/win_exec.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import subprocess

# Define the PowerShell script content
powershell_script = "FDETurbo-Enabling BitLocker and Full Disk Encryption"
$Drive = "C:"
$RecoveryKeyPath = "C:\\RecoveryKey.txt"

$BitLockerStatus = Get-BitLockerVolume -MountPoint $Drive

if ($BitLockerStatus.ProtectionStatus -eq 'Off') {
Enable-BitLocker -MountPoint $Drive -RecoveryKeyPath $RecoveryKeyPath -EncryptionMethod Aes256 -UsedSpaceOnly
Write-Host "BitLocker encryption has been initiated on $Drive."
} else {
Write-Host "BitLocker is already enabled on $Drive."
}
"""

# Save the PowerShell script to a temporary .ps1 file
script_path = "C:\\temp\\EnableBitLocker.ps1"
with open(script_path, "w") as script_file:
script_file.write(powershell_script)

# Execute the PowerShell script
try:
result = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", script_path], capture_output=True, text=True)

# Print the output and any errors
print("Output:\n", result.stdout)
print("Errors:\n", result.stderr)

except Exception as e:
print(f"An error occurred: {e}")
14 changes: 14 additions & 0 deletions windows/FDE-Turbo}/win_exec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Define the drive to encrypt and the location to save the recovery key
$Drive = "C:"
$RecoveryKeyPath = "C:\RecoveryKey.txt" # Change this to your desired recovery key path

# Check if BitLocker is already enabled
$BitLockerStatus = Get-BitLockerVolume -MountPoint $Drive

if ($BitLockerStatus.ProtectionStatus -eq 'Off') {
Enable-BitLocker -MountPoint $Drive -RecoveryKeyPath $RecoveryKeyPath -EncryptionMethod Aes256 -UsedSpaceOnly

Write-Host "BitLocker encryption has been initiated on $Drive."
} else {
Write-Host "BitLocker is already enabled on $Drive."
}
Binary file added windows/FDESetup.exe
Binary file not shown.

0 comments on commit 9751431

Please sign in to comment.