Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arrase committed Apr 2, 2017
1 parent 34408d3 commit 605b45f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ When Raspiducky boots for first time the configuration is exposed over usb emula

* Run a payload on boot

sudo cat payloads-db/open_terminal/open_mint_terminal.dd payloads-db/backdoor/bind_shell.dd > onboot_payload/payload.dd
cat payloads-db/open_terminal/open_mint_terminal.dd payloads-db/backdoor/bind_shell.dd > onboot_payload/payload.dd

* Flash drive options

Expand Down
10 changes: 6 additions & 4 deletions run_payload.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

cat /home/pi/config/onboot_payload/payload.dd > /home/pi/payload.dd
tr -d '\r' < /home/pi/payload.dd > /home/pi/payload2.dd
/home/pi/duckpi.sh /home/pi/payload2.dd

if [ -f /home/pi/config/onboot_payload/payload.dd ]
then
cat /home/pi/config/onboot_payload/payload.dd > /home/pi/payload.dd
tr -d '\r' < /home/pi/payload.dd > /home/pi/payload2.dd
/home/pi/duckpi.sh /home/pi/payload2.dd
fi

0 comments on commit 605b45f

Please sign in to comment.