Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 08dee660f5 |
@@ -39,7 +39,6 @@ script=/tmp/install_script.sh && curl -s https://git.thecoven.info/PrincessPi/ge
|
|||||||
* `large_file_search_for_hash`
|
* `large_file_search_for_hash`
|
||||||
* `randomtoken`
|
* `randomtoken`
|
||||||
* `alfa_install_kali.sh`
|
* `alfa_install_kali.sh`
|
||||||
* `torsilly.sh`
|
|
||||||
|
|
||||||
#### monitoring
|
#### monitoring
|
||||||
* `mon-watch`
|
* `mon-watch`
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,9 +1,23 @@
|
|||||||
if ($args[0]) { $commit_message=($args -join " ") } # if arg0 exists, join all passed args with spaces
|
# waypoint.ps1
|
||||||
else { $commit_message="waypoint" } # or default to "waypoint"
|
|
||||||
|
|
||||||
Write-Host "WAYPOINT!`n`tCommit Message: $commit_message`n"
|
if (-not (Test-Path -Path ".\.git" -PathType Container)) {
|
||||||
# add and commit
|
Write-Host "No .git folder detected. Initializing new Git repository..." -ForegroundColor Yellow
|
||||||
|
git init
|
||||||
|
} else {
|
||||||
|
Write-Host "Git repository detected. Creating waypoint..." -ForegroundColor Cyan
|
||||||
|
}
|
||||||
|
|
||||||
|
# Stage all changes
|
||||||
git add .
|
git add .
|
||||||
git commit -m "$commit_message"
|
|
||||||
|
|
||||||
Write-Host "`nDone :`"3"
|
# Format the timestamp with timezone offset/ID string
|
||||||
|
$timestamp = (Get-Date).ToString("yyyy-MM-dd-HHmm") + "-" + ((Get-TimeZone).Id -creplace '[a-z\s]', '')
|
||||||
|
|
||||||
|
# Capture current git status output
|
||||||
|
$statusOutput = (git status | Out-String).Trim()
|
||||||
|
|
||||||
|
# Construct the commit message
|
||||||
|
$commitMessage = "WAYPOINT $timestamp`n`n$statusOutput"
|
||||||
|
|
||||||
|
# Execute commit
|
||||||
|
git commit -m "$commitMessage"
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
domain=kasm.h.acker.is
|
|
||||||
local_port=8443
|
|
||||||
swap_size_gib=6
|
|
||||||
sudo apt update
|
|
||||||
sudo apt dist-upgrade -y
|
|
||||||
sudo fallocate -l ${swap_size_gib}g /mnt/${swap_size_gib}GiB.swap
|
|
||||||
sudo chmod 600 /mnt/${swap_size_gib}GiB.swap
|
|
||||||
sudo mkswap /mnt/${swap_size_gib}GiB.swap
|
|
||||||
sudo swapon /mnt/${swap_size_gib}GiB.swap
|
|
||||||
echo "/mnt/${swap_size_gib}GiB.swap swap swap defaults 0 0" | sudo tee -a /etc/fstab
|
|
||||||
cd /tmp
|
|
||||||
curl -O https://kasm-static-content.s3.amazonaws.com/kasm_release_1.19.0-latest.tar.gz
|
|
||||||
tar -xf kasm_release*.tar.gz
|
|
||||||
sudo bash kasm_release/install.sh -L $local_port
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install nginx certbot python3-certbot-nginx -y
|
|
||||||
sudo certbot certonly --nginx -d $domain
|
|
||||||
sudo cat << 'EOF' > /etc/nginx/sites-available/$domain
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name $domain;
|
|
||||||
ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem;
|
|
||||||
location / {
|
|
||||||
# WebSocket Support
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
|
|
||||||
# Host and X headers
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
|
|
||||||
# Should match the listening port of this proxy
|
|
||||||
proxy_set_header X-Forwarded-Port 443;
|
|
||||||
|
|
||||||
# Connectivity Options
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_read_timeout 1800s;
|
|
||||||
proxy_send_timeout 1800s;
|
|
||||||
proxy_connect_timeout 1800s;
|
|
||||||
proxy_buffering off;
|
|
||||||
|
|
||||||
# Allow large requests to support file uploads to sessions
|
|
||||||
client_max_body_size 10M;
|
|
||||||
|
|
||||||
# Proxy to Kasm Workspaces running locally on $local_port using ssl
|
|
||||||
proxy_pass https://127.0.0.1:$local_port;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
sudo ln -s /etc/nginx/sites-available/$domain /etc/nginx/sites-enabled/$domain
|
|
||||||
sudo nginx -t
|
|
||||||
sudo systemctl restart nginx
|
|
||||||
sudo docker restart kasm_api
|
|
||||||
sudo shutdown -r +7
|
|
||||||
@@ -12,6 +12,7 @@ tmpDir='/tmp/generalssss'
|
|||||||
tmp_customscripts_dir="$tmpDir/customscripts"
|
tmp_customscripts_dir="$tmpDir/customscripts"
|
||||||
finalDir='/usr/share/customscripts'
|
finalDir='/usr/share/customscripts'
|
||||||
packages="7zip apache2 argon2 avahi-daemon btop build-essential byobu cargo cifs-utils clamav cmake cowsay cracklib-runtime detox docker.io exiftool fdupes ffuf gcc-arm-none-eabi grc gzip iotop iptraf-ng jq kpartx libnss-mdns libnewlib-arm-none-eabi librust-git2+openssl-probe-dev libstdc++-arm-none-eabi-newlib locales lynx net-tools nginx openssl php polygen polygen-data procps python3 python3-scapy resolvconf restic ripgrep samba screen seclists snapd thefuck unzip wget xrdp xxd xz-utils zip kali-linux-default"
|
packages="7zip apache2 argon2 avahi-daemon btop build-essential byobu cargo cifs-utils clamav cmake cowsay cracklib-runtime detox docker.io exiftool fdupes ffuf gcc-arm-none-eabi grc gzip iotop iptraf-ng jq kpartx libnss-mdns libnewlib-arm-none-eabi librust-git2+openssl-probe-dev libstdc++-arm-none-eabi-newlib locales lynx net-tools nginx openssl php polygen polygen-data procps python3 python3-scapy resolvconf restic ripgrep samba screen seclists snapd thefuck unzip wget xrdp xxd xz-utils zip kali-linux-default"
|
||||||
|
# packages="grc kpartx openssl cracklib-runtime argon2 jq polygen polygen-data apache2 seclists cmake locales python3 build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib librust-git2+openssl-probe-dev cargo nginx build-essential cowsay iotop iptraf-ng btop screen byobu thefuck wget lynx zip unzip 7zip xz-utils gzip net-tools clamav php restic cifs-utils detox fdupes ripgrep avahi-daemon libnss-mdns xxd xrdp libimage-exiftool-perl kali-tools-hardware kali-tools-crypto-stego kali-tools-fuzzing kali-tools-bluetooth kali-tools-rfid kali-tools-sdr kali-tools-voip kali-tools-802-11 kali-tools-forensics samba procps snapd"
|
||||||
|
|
||||||
echo -e "\nSTARTING!\n\tUsing Shell $SHELL\n"
|
echo -e "\nSTARTING!\n\tUsing Shell $SHELL\n"
|
||||||
|
|
||||||
@@ -72,48 +73,49 @@ if [ ! -z "$1" ]; then
|
|||||||
# echo -e "\nhaveibeenpwned-downloader installed, skipping install\n"
|
# echo -e "\nhaveibeenpwned-downloader installed, skipping install\n"
|
||||||
# fi
|
# fi
|
||||||
# homebrew
|
# homebrew
|
||||||
if [ ! $(which brew) ]; then
|
# if [ ! $(which brew) ]; then
|
||||||
## install homebrew
|
# ## install homebrew
|
||||||
echo -e "\nlinuxbrew not found, installing\n"
|
# echo -e "\nlinuxbrew not found, installing\n"
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
# bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
# test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
# test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
### add to rcfile
|
# ### add to rcfile
|
||||||
if ! grep -q 'linuxbrew' $rcfile; then
|
# if ! grep -q 'linuxbrew' $rcfile; then
|
||||||
echo "adding linuxbrew to $rcfile"
|
# # echo "adding linuxbrew to $rcfile"
|
||||||
echo "# linuxbrew (homebrew/brew)" >> $rcfile
|
# # echo "# linuxbrew (homebrew/brew)" >> $rcfile
|
||||||
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> $rcfile
|
# # echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> $rcfile
|
||||||
else
|
# else
|
||||||
echo "linuxbrew already in $rcfile skipping"
|
# echo "linuxbrew already in $rcfile skipping"
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
else
|
# # source $rcfile
|
||||||
echo -e "\nlinuxbrew installed, skipping install\n"
|
# else
|
||||||
fi
|
# echo -e "\nlinuxbrew installed, skipping install\n"
|
||||||
### install ponysay
|
# # source $rcfile
|
||||||
if [ ! $(which ponysay) ]; then
|
# fi
|
||||||
echo -e "\nponysay not fonud, installiing\n"
|
# ### install ponysay
|
||||||
brew install ponysay
|
# if [ ! $(which ponysay) ]; then
|
||||||
if ! grep 'ponysay fix' $rcfile; then
|
# echo -e "\nponysay not fonud, installiing\n"
|
||||||
echo "adding ponysay fix to $rcfile"
|
# brew install ponysay
|
||||||
echo -e "# ponysay fix\nexport PYTHONWARNINGS=ignore::SyntaxWarning" >> $rcfile
|
# if ! grep 'ponysay fix' $rcfile; then
|
||||||
source $rcfile
|
# # echo "adding ponysay fix to $rcfile"
|
||||||
else
|
# # echo -e "# ponysay fix\nexport PYTHONWARNINGS=ignore::SyntaxWarning" >> $rcfile
|
||||||
echo "ponysay fix already in $rcfile skipping"
|
# # source $rcfile
|
||||||
source $rcfile
|
# else
|
||||||
fi
|
# # echo "ponysay fix already in $rcfile skipping"
|
||||||
else
|
# # source $rcfile
|
||||||
echo -e "\nponysay already installed, skipping\n"
|
# fi
|
||||||
fi
|
# else
|
||||||
|
# echo -e "\nponysay already installed, skipping\n"
|
||||||
|
# fi
|
||||||
# cargo
|
# cargo
|
||||||
|
|
||||||
## oniux
|
## oniux
|
||||||
echo -e "\nINSTALLIN TOR ONIUX\n"
|
echo -e "\nINSTALLIN TOR ONIUX\n"
|
||||||
if [ -f /usr/local/bin/oniux ]; then
|
if [ -f /usr/local/bin/oniux ]; then
|
||||||
echo -e "\nexisting oniux found, skipping\n"
|
echo -e "\nexisting oniux found, skipping\n"
|
||||||
else
|
else
|
||||||
echo -e "\nexisting oniux not found, installing\n"
|
echo -e "\nexisting oniux not found, installing\n"
|
||||||
cd /tmp && cargo install --git https://gitlab.torproject.org/tpo/core/oniux && cd - && echo -e '## Oniux/Cargo Shit\nPATH=$PATH:$HOME/.cargo/bin' >> ~/.bashrc && source ~/.bashrc && oniux curl https://canhazip.com
|
cargo install --git https://gitlab.torproject.org/tpo/core/oniux --tag v0.6.1 oniux
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -158,7 +160,7 @@ git clone $gitRepo $tmpDir --single-branch --depth 1
|
|||||||
|
|
||||||
# donut
|
# donut
|
||||||
echo -e "\nCompiling donut\n"
|
echo -e "\nCompiling donut\n"
|
||||||
gcc -o "$tmp_customscripts_dir/donut" "$tmp_customscripts_dir/donut.c" -lm 2>/dev/null
|
gcc -o "$tmp_customscripts_dir/donut" "$tmp_customscripts_dir/donut.c" -lm # 2>/dev/null
|
||||||
|
|
||||||
# put the customscripts dir into place
|
# put the customscripts dir into place
|
||||||
echo -e "\nPlacing in $finalDir\n"
|
echo -e "\nPlacing in $finalDir\n"
|
||||||
@@ -179,10 +181,10 @@ pathgrep=$?
|
|||||||
if [ $pathgrep -eq 0 ]; then
|
if [ $pathgrep -eq 0 ]; then
|
||||||
echo -e "\n$finalDir Already in \$PATH Skipping Append\n"
|
echo -e "\n$finalDir Already in \$PATH Skipping Append\n"
|
||||||
fi
|
fi
|
||||||
else
|
# else
|
||||||
# echo -e "\nAdding $finalDir to $username's \$PATH by Appending to $rcfile\n"
|
# echo -e "\nAdding $finalDir to $username's \$PATH by Appending to $rcfile\n"
|
||||||
# echo -e "\n\n# automatically added by customscripts installer\nexport PATH=\"\$PATH:$finalDir\"" >> "$rcfile"
|
# echo -e "\n\n# automatically added by customscripts installer\nexport PATH=\"\$PATH:$finalDir\"" >> "$rcfile"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# install pishrink if not there
|
# install pishrink if not there
|
||||||
if [ ! -f /usr/local/bin/pishrink ]; then
|
if [ ! -f /usr/local/bin/pishrink ]; then
|
||||||
@@ -202,11 +204,15 @@ if [ ! -d $userhome/.local/share/blesh ]; then
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
git clone --recursive --depth 1 --shallow-submodules --single-branch -b master https://github.com/akinomyoga/ble.sh.git
|
git clone --recursive --depth 1 --shallow-submodules --single-branch -b master https://github.com/akinomyoga/ble.sh.git
|
||||||
make -C ble.sh install PREFIX=~/.local
|
make -C ble.sh install PREFIX=~/.local
|
||||||
echo '# ble.sh' >> $rcfile
|
# echo '# ble.sh' >> $rcfile
|
||||||
echo "source -- ~/.local/share/blesh/ble.sh" >> $rcfile
|
# echo "source -- ~/.local/share/blesh/ble.sh" >> $rcfile
|
||||||
else
|
# source $rcfile
|
||||||
echo -e "\nble.sh already installed, skippping\n"
|
# exec "$SHELL"
|
||||||
fi
|
fi
|
||||||
|
# else
|
||||||
|
# echo -e "\nble.sh already installed, skippping\n"
|
||||||
|
# source $rcfile
|
||||||
|
# fi
|
||||||
|
|
||||||
$SHELL -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
$SHELL -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> "$rcfile"
|
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> "$rcfile"
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Usage:
|
|
||||||
## Install Tor
|
|
||||||
### sudo apt update; sudo apt install tor -y
|
|
||||||
## Edit /etc/tor/torrc
|
|
||||||
### sudo nano /etc/tor/torrc
|
|
||||||
#### Uncomment or add
|
|
||||||
##### ControlPort 9051
|
|
||||||
#### Ucomment and change to (default value is 1, change to 0)
|
|
||||||
##### CookieAuthentication 0
|
|
||||||
## Enable, Start, and Restart Tor
|
|
||||||
### sudo systemctl enable tor; sudo systemctl start tor; sleep 20; sudo systemctl restart tor
|
|
||||||
|
|
||||||
# Configuration
|
|
||||||
TARGET_URL="https://canhazip.com"
|
|
||||||
TOR_PROXY="socks5h://127.0.0.1:9050"
|
|
||||||
TOR_CONTROL_PORT=9051
|
|
||||||
DELAY=2 # Delay in seconds between requests
|
|
||||||
|
|
||||||
# Ensure you respect HIBP's API rate limits and terms of service
|
|
||||||
while true; do
|
|
||||||
echo "[+] Requesting new Tor identity..."
|
|
||||||
|
|
||||||
# Send NEWNYM signal to Tor Control Port to switch IP
|
|
||||||
echo -e 'AUTHENTICATE ""\r\nsignal NEWNYM\r\nQUIT' | nc 127.0.0.1 9051 > /dev/null
|
|
||||||
|
|
||||||
# Give Tor a brief moment to establish the new circuit
|
|
||||||
sleep "$DELAY"
|
|
||||||
|
|
||||||
echo "[+] Verifying current IP..."
|
|
||||||
CURRENT_IP=$(curl -s --proxy "$TOR_PROXY" https://canhazip.com)
|
|
||||||
echo "[+] Current Tor IP: $CURRENT_IP"
|
|
||||||
|
|
||||||
echo "[+] Sending request to Have I Been Pwned..."
|
|
||||||
# 'socks5h://' ensures DNS resolution happens through Tor, preventing leaks
|
|
||||||
curl -s --proxy "$TOR_PROXY" -H "hibp-api-key: YOUR_API_KEY" "$TARGET_URL"
|
|
||||||
|
|
||||||
echo -e "\n[+] Waiting for next iteration...\n"
|
|
||||||
sleep "$DELAY"
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user