2 Machines:
- Local:
nc
- Remote:
nc
andgo
On local you have your toto.go
. You want to compile it w/o installing go
(You are lazy or you don't want to install go for stealth/quickness reasons or whatever)
On Remote machine:
#!/bin/bash | |
## Useless, just for the pleasure to make a "bombshell" | |
## 10s countdown + delete all file from current directory (it is a bomb after all) | |
## Credit: Antony Fuentes - https://stackoverflow.com/questions/12628327/how-to-show-and-update-echo-on-same-line | |
clear (){ | |
tput cuu1 | |
tput el |
wasme.sh
is the pendant of jse
to extract wasm file. It is within a shell as long as Webassembly won't be integrated with <script type='module'>
or ES2015 import
statements
Note: It provides a way to detect if the webpage use WebAssembly. Fetching the wasm module eventually need js code review.
To use it:
export URL=[endpoint]
curl $URL -s | jse -gather-src -u $URL | ./wasme.sh
#!/bin/bash | |
ANIMAL="🦍" | |
sed -i "/PROMPT=/c\PROMPT=\'%{\$fg_bold[green]%}$ANIMAL %m%{\$reset_color%} %{\${fg_bold[blue]}%}:: %{\$reset_color%}%{\${fg[green]}%}%3~ \$(git_prompt_info)%{\${fg_bold[\$CARETCOLOR]}%}»%{\${reset_color}%} \'" ~/.oh-my-zsh/themes/afowler.zsh-theme |
#!/bin/bash | |
export ROSE='\033[1;35m' | |
export NC='\033[0m' | |
if [ $# -lt 1 ];then | |
echo "Usage: ./surge-binary-deployment.sh [BINARY_FILE]" | |
else | |
BINARY_PATH=$1 |
#!/usr/bin/env bash | |
if [[ -z "${TMUX}" ]]; then | |
echo "Must be run in tmux" | |
exit 92 | |
fi | |
IFS=$'\n' | |
IPS=$(ip -brief -j -c address | jq -r '.[] | select((.operstate=="UP") or (.operstate=="UNKNOWN")) | "\(.ifname): \(.addr_info[0].local)\n"') | |
IP_CHOICE=$(gum choose $IPS "tunnel: ngrok" "tunnel: bore") |
#!/usr/bin/env bash | |
export BLUE='\033[0;34m' | |
export NC='\033[0m' | |
echo -e "${BLUE}[*] Install zsh..${NC}" | |
sudo apt install zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
echo -e "${BLUE}[*] Change zsh theme..${NC}" | |
sed -i '/ZSH_THEME/c\ZSH_THEME="afowler"' ${HOME}/.zshrc |