CGO_ENABLED=1 CC=musl-gcc go build --ldflags '-linkmode=external -extldflags=-static'
https://mt165.co.uk/blog/static-link-go/
https://gist.github.com/zmb3/2bf29397633c9c9cc5125fdaa988c8a8
tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo |
# remote | |
./cloudflared --url tcp://127.0.0.1:3389 | |
# local | |
./cloudflared access tcp --hostname uncertainty-saints-newark-martin.trycloudflare.com --url 127.0.0.1:3388 | |
# rdp to 127.0.0.1:3388 |
def string_to_fromcharcode(input_string): | |
# Convert each character in the string to its char code | |
char_codes = [str(ord(char)) for char in input_string] | |
# Create the JavaScript String.fromCharCode representation | |
fromcharcode_str = "String.fromCharCode(" + ",".join(char_codes) + ")" | |
return fromcharcode_str | |
# Example usage | |
input_string = input() | |
result = string_to_fromcharcode(input_string) |
import http from 'k6/http'; | |
import { check, sleep } from 'k6'; | |
import { randomString } from 'https://jslib.k6.io/k6-utils/1.1.0/index.js'; | |
// Options for the load test scenario | |
export let options = { | |
stages: [ | |
{ duration: '30s', target: 50 }, | |
{ duration: '3m', target: 100 }, | |
{ duration: '30s', target: 0 }, |
#!/bin/bash | |
head /dev/urandom | tr -dc 'a-f0-9' | head -c 8 |
get_ip() {
# Replace 'eth0' with your interface name, such as 'wlan0' for Wi-Fi
local interface="ens33"
ip addr show $interface 2>/dev/null | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1
}
then add [$(get_ip)]
to PS1 var
#!/bin/bash | |
wget --recursive \ | |
--no-parent \ | |
--convert-links \ | |
--random-wait --wait 3 --no-http-keep-alive \ | |
--no-host-directories \ | |
--execute robots=off --user-agent=Mozilla/5.0 \ | |
--level=inf --accept '*' \ | |
--reject="index.html*" \ |
#!/bin/bash | |
export DEBIAN_FRONTEND="noninteractive" | |
echo -e "[!] Installing XFCE4 and VNC server.." | |
sudo apt update | |
sudo apt install -y xfce4 xfce4-goodies tigervnc-standalone-server fonts-liberation | |
sudo apt remove -y xfce4-screensaver | |
echo -e "\n[!] Installing Chrome.." |
#!/bin/bash | |
GOLANG="$(curl -s https://go.dev/dl/ | grep -o 'go[0-9\.]*\.linux-amd64.tar.gz' | head -n 1)" | |
wget https://go.dev/dl/$GOLANG | |
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf $GOLANG | |
rm $GOLANG | |
unset GOLANG | |
bash -c "go env" |