[FL-3629] fbt: reworked assets & resources handling (#3160)
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ App(
|
||||
stack_size=2 * 1024,
|
||||
icon="A_BadUsb_14",
|
||||
order=70,
|
||||
resources="resources",
|
||||
fap_libs=["assets"],
|
||||
fap_icon="icon.png",
|
||||
fap_category="USB",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
ID 05ac:021e Apple:Keyboard
|
||||
REM Keep these 3 lines IF (and only if) it's the first time you are performing a badKB attack against a specific macOS target.
|
||||
REM In fact, it helps Flipper Zero bypass the macOS keyboard setup assistant. Otherwise the attack will not start.
|
||||
REM Author: 47LeCoste
|
||||
REM Version 1.0 (Flipper Ducky)
|
||||
REM Target: macOS
|
||||
DELAY 3000
|
||||
F4
|
||||
DELAY 2500
|
||||
STRING Terminal
|
||||
DELAY 2500
|
||||
ENTER
|
||||
DELAY 1500
|
||||
STRING (cd /tmp && curl -L -o qFlipper.dmg https://update.flipperzero.one/qFlipper/release/macos-amd64/dmg && hdiutil attach qFlipper.dmg && app_volume=$(ls /Volumes | grep -i "qFlipper") && (test -e /Applications/qFlipper.app && rm -rf /Applications/qFlipper.app ); cp -R "/Volumes/$app_volume/qFlipper.app" /Applications/ && hdiutil detach "/Volumes/$app_volume" && rm qFlipper.dmg && open /Applications/qFlipper.app)
|
||||
DELAY 1000
|
||||
ENTER
|
||||
@@ -0,0 +1,42 @@
|
||||
REM Written by @dexv
|
||||
DELAY 2000
|
||||
GUI r
|
||||
DELAY 500
|
||||
STRING powershell
|
||||
ENTER
|
||||
DELAY 1000
|
||||
STRING $url = "https://update.flipperzero.one/qFlipper/release/windows-amd64/portable"
|
||||
ENTER
|
||||
STRING $output = "$env:USERPROFILE\Documents\qFlipper.zip"
|
||||
ENTER
|
||||
STRING $destination = "$env:USERPROFILE\Documents\qFlipper"
|
||||
ENTER
|
||||
STRING $shortcutPath = "$env:USERPROFILE\Desktop\qFlipper.lnk"
|
||||
ENTER
|
||||
STRING $scriptPath = "$env:USERPROFILE\Documents\qFlipperInstall.ps1"
|
||||
ENTER
|
||||
STRING $driverPath = "$destination\STM32 Driver"
|
||||
ENTER
|
||||
STRING $installBat = "$driverPath\install.bat"
|
||||
ENTER
|
||||
STRING (New-Object System.Net.WebClient).DownloadFile($url, $output)
|
||||
ENTER
|
||||
STRING Expand-Archive -Path $output -DestinationPath $destination -Force
|
||||
ENTER
|
||||
STRING Set-Location -Path $destination
|
||||
ENTER
|
||||
STRING Start-Process -FilePath ".\qFlipper.exe"
|
||||
ENTER
|
||||
STRING Start-Process -Wait -FilePath "cmd.exe" -ArgumentList "/c $installBat"
|
||||
ENTER
|
||||
STRING $shell = New-Object -ComObject WScript.Shell
|
||||
ENTER
|
||||
STRING $shortcut = $shell.CreateShortcut($shortcutPath)
|
||||
ENTER
|
||||
STRING $shortcut.TargetPath = "$destination\qFlipper.exe"
|
||||
ENTER
|
||||
STRING $shortcut.Save()
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING "powershell -ExecutionPolicy Bypass -File $scriptPath"
|
||||
ENTER
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,86 @@
|
||||
ID 1234:5678 Apple:Keyboard
|
||||
REM You can change these values to VID/PID of original Apple keyboard
|
||||
REM to bypass Keyboard Setup Assistant
|
||||
|
||||
REM This is BadUSB demo script for macOS
|
||||
|
||||
REM Open terminal window
|
||||
DELAY 1000
|
||||
GUI SPACE
|
||||
DELAY 500
|
||||
STRING terminal
|
||||
DELAY 500
|
||||
ENTER
|
||||
DELAY 750
|
||||
|
||||
REM Copy-Paste previous string
|
||||
UP
|
||||
CTRL c
|
||||
|
||||
REM Bigger shell script example
|
||||
STRING cat > /dev/null << EOF
|
||||
ENTER
|
||||
|
||||
STRING Hello World!
|
||||
ENTER
|
||||
|
||||
DEFAULT_DELAY 50
|
||||
|
||||
STRING =
|
||||
REPEAT 59
|
||||
ENTER
|
||||
ENTER
|
||||
|
||||
STRING _.-------.._ -,
|
||||
ENTER
|
||||
HOME
|
||||
STRING .-"'''"--..,,_/ /'-, -, \
|
||||
ENTER
|
||||
HOME
|
||||
STRING .:" /:/ /'\ \ ,_..., '. | |
|
||||
ENTER
|
||||
HOME
|
||||
STRING / ,----/:/ /'\ _\~'_-"' _;
|
||||
ENTER
|
||||
HOME
|
||||
STRING ' / /'"""'\ \ \.~'_-' ,-"'/
|
||||
ENTER
|
||||
HOME
|
||||
STRING | | | 0 | | .-' ,/' /
|
||||
ENTER
|
||||
HOME
|
||||
STRING | ,..\ \ ,.-"' ,/' /
|
||||
ENTER
|
||||
HOME
|
||||
STRING ; : '/'""\' ,/--==,/-----,
|
||||
ENTER
|
||||
HOME
|
||||
STRING | '-...| -.___-Z:_______J...---;
|
||||
ENTER
|
||||
HOME
|
||||
STRING : ' _-'
|
||||
ENTER
|
||||
HOME
|
||||
STRING _L_ _ ___ ___ ___ ___ ____--"'
|
||||
ENTER
|
||||
HOME
|
||||
STRING | __|| | |_ _|| _ \| _ \| __|| _ \
|
||||
ENTER
|
||||
HOME
|
||||
STRING | _| | |__ | | | _/| _/| _| | /
|
||||
ENTER
|
||||
HOME
|
||||
STRING |_| |____||___||_| |_| |___||_|_\
|
||||
ENTER
|
||||
HOME
|
||||
ENTER
|
||||
|
||||
STRING Flipper Zero BadUSB feature is compatible with USB Rubber Ducky script format
|
||||
ENTER
|
||||
STRING More information about script syntax can be found here:
|
||||
ENTER
|
||||
STRING https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/file_formats/BadUsbScriptFormat.md
|
||||
ENTER
|
||||
|
||||
STRING EOF
|
||||
ENTER
|
||||
@@ -0,0 +1,84 @@
|
||||
REM This is BadUSB demo script for windows
|
||||
|
||||
REM Open windows notepad
|
||||
DELAY 1000
|
||||
GUI r
|
||||
DELAY 500
|
||||
STRING notepad
|
||||
DELAY 500
|
||||
ENTER
|
||||
DELAY 750
|
||||
|
||||
STRING Hello World!
|
||||
ENTER
|
||||
DEFAULT_DELAY 50
|
||||
|
||||
REM Copy-Paste previous string
|
||||
UP
|
||||
HOME
|
||||
SHIFT DOWN
|
||||
CTRL c
|
||||
RIGHT
|
||||
CTRL v
|
||||
CTRL v
|
||||
|
||||
REM Alt code input demo
|
||||
ALTCHAR 7
|
||||
ALTSTRING This line was print using Alt+Numpad input method. It works even if non-US keyboard layout is selected
|
||||
ENTER
|
||||
|
||||
STRING =
|
||||
REPEAT 59
|
||||
ENTER
|
||||
ENTER
|
||||
|
||||
STRING _.-------.._ -,
|
||||
ENTER
|
||||
HOME
|
||||
STRING .-"```"--..,,_/ /`-, -, \
|
||||
ENTER
|
||||
HOME
|
||||
STRING .:" /:/ /'\ \ ,_..., `. | |
|
||||
ENTER
|
||||
HOME
|
||||
STRING / ,----/:/ /`\ _\~`_-"` _;
|
||||
ENTER
|
||||
HOME
|
||||
STRING ' / /`"""'\ \ \.~`_-' ,-"'/
|
||||
ENTER
|
||||
HOME
|
||||
STRING | | | 0 | | .-' ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING | ,..\ \ ,.-"` ,/` /
|
||||
ENTER
|
||||
HOME
|
||||
STRING ; : `/`""\` ,/--==,/-----,
|
||||
ENTER
|
||||
HOME
|
||||
STRING | `-...| -.___-Z:_______J...---;
|
||||
ENTER
|
||||
HOME
|
||||
STRING : ` _-'
|
||||
ENTER
|
||||
HOME
|
||||
STRING _L_ _ ___ ___ ___ ___ ____--"`
|
||||
ENTER
|
||||
HOME
|
||||
STRING | __|| | |_ _|| _ \| _ \| __|| _ \
|
||||
ENTER
|
||||
HOME
|
||||
STRING | _| | |__ | | | _/| _/| _| | /
|
||||
ENTER
|
||||
HOME
|
||||
STRING |_| |____||___||_| |_| |___||_|_\
|
||||
ENTER
|
||||
HOME
|
||||
ENTER
|
||||
|
||||
STRING Flipper Zero BadUSB feature is compatible with USB Rubber Ducky script format
|
||||
ENTER
|
||||
STRING More information about script syntax can be found here:
|
||||
ENTER
|
||||
STRING https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/file_formats/BadUsbScriptFormat.md
|
||||
ENTER
|
||||
Reference in New Issue
Block a user