-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
258,048 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: Check for permissions | ||
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system" | ||
|
||
if %errorlevel% NEQ 0 goto NoAdmin | ||
goto gotAdmin | ||
|
||
:NoAdmin | ||
echo You do not have administrator rights, please run this script as administrator. | ||
pause | ||
exit /B | ||
|
||
:gotAdmin | ||
if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | ||
|
||
set "script_dir=%~dp0" | ||
set "script_dir=%script_dir:~0,-1%" | ||
|
||
bcdedit -debug on | ||
bcdedit /set testsigning on | ||
bcdedit /deletevalue {current} safeboot | ||
|
||
powershell.exe -ExecutionPolicy Bypass -Command ^ | ||
"$endDate = (Get-Date).AddYears(100); ^ | ||
$cert = New-SelfSignedCertificate -DnsName PYAS -CertStoreLocation cert:\LocalMachine\My -Type CodeSigning -NotAfter $endDate; ^ | ||
$pwd = ConvertTo-SecureString -String 'PYAS' -Force -AsPlainText; ^ | ||
Export-PfxCertificate -Cert $cert -FilePath '%script_dir%\PYAS.pfx' -Password $pwd;" | ||
"%script_dir%\signtool.exe" sign /f "%script_dir%\PYAS.pfx" /p PYAS "%script_dir%\PYAS_Driver.sys" | ||
sc create PYAS_Driver type= kernel start= demand binPath= "%script_dir%\PYAS_Driver.sys" | ||
|
||
shutdown -r -t 0 | ||
endlocal |
Empty file.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: Check for permissions | ||
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system" | ||
|
||
if %errorlevel% NEQ 0 goto NoAdmin | ||
goto gotAdmin | ||
|
||
:NoAdmin | ||
echo You do not have administrator rights, please run this script as administrator. | ||
pause | ||
exit /B | ||
|
||
:gotAdmin | ||
if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | ||
|
||
sc stop PYAS_Driver | ||
sc delete PYAS_Driver | ||
|
||
bcdedit /set testsigning off | ||
bcdedit -debug off | ||
|
||
shutdown -r -t 0 | ||
endlocal |
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Suffix": [".com", ".exe", ".dll", ".sys", ".scr", | ||
".bat", ".cmd", ".ps1", ".vbs", ".wsf"], | ||
|
||
"Labels": ["Pefile/White", "Script/White", "Pefile/General", "Script/General"], | ||
|
||
"Detect": ["Pefile/General", "Script/General"], | ||
|
||
"Pixels": [224, 224], | ||
|
||
"Values": 90 | ||
} |
Binary file not shown.
Oops, something went wrong.