mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2026-01-08 19:30:56 -08:00
Create Clean-Command-History.txt
This commit is contained in:
24
Tools/Clean-Command-History.txt
Normal file
24
Tools/Clean-Command-History.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
REM Title: Clean Command History
|
||||
REM Author: @beigeworm | https://github.com/beigeworm
|
||||
REM Description: Empty the temp folder and recycle bin, clear run box and powershell history.
|
||||
REM Target: Windows 10
|
||||
REM Credit: I-Am-Jakoby
|
||||
|
||||
REM some setup for dukie script.
|
||||
DEFAULT_DELAY 100
|
||||
|
||||
GUI r
|
||||
DELAY 750
|
||||
|
||||
REM open powershell (add "-W Hidden" to hide the window).
|
||||
STRING powershell -NoP -NonI -Exec Bypass
|
||||
CTRL-SHIFT ENTER
|
||||
DELAY 1500
|
||||
ALT y
|
||||
DELAY 5000
|
||||
|
||||
STRING rm $env:TEMP\* -r -Force -ErrorAction SilentlyContinue ; reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f ; Remove-Item (Get-PSreadlineOption).HistorySavePath ; Clear-RecycleBin -Force -ErrorAction SilentlyContinue
|
||||
ENTER
|
||||
DELAY 10000
|
||||
STRING exit
|
||||
ENTER
|
||||
Reference in New Issue
Block a user