Added bomber script and added lxc helper to .bash_functions

This commit is contained in:
Dionysus 2024-02-22 13:39:31 -05:00
parent 1ab05175b3
commit 822d8975e0
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 128 additions and 5 deletions

View File

@ -5,11 +5,6 @@ cheat() {
curl cht.sh/$1
}
clbin() {
local url=$(cat $1 | curl -sF 'clbin=<-' https://clbin.com)
echo "$url?<hl>"
}
color() {
for color in {0..255}; do
printf "\e[48;5;%sm %3s \e[0m" $color $color
@ -19,6 +14,35 @@ color() {
done
}
ctainr() {
NAME=$1
lxc storage create $NAME-pool dir
lxc launch images:debian/12 $NAME-container -s $NAME-pool
sleep 10 # Delay to allow the container to start and get an IP address from the DHCP server
CONTAINER_IP=$(lxc list | grep $NAME-container | awk '{print $6}')
lxc config device override $NAME-container eth0
lxc config device set $NAME-container eth0 ipv4.address $CONTAINER_IP
lxc config set $NAME-container boot.autostart true
lxc restart $NAME-container
sleep 3 # Delay to allow the container to restart
lxc exec $NAME-container -- apt update -y
lxc exec $NAME-container -- apt upgrade -y
lxc exec $NAME-container -- apt install unattended-upgrades -y
lxc exec $NAME-container -- useradd -m -s /bin/bash agent
#lxc exec $NAME-container -- passwd agent
lxc exec $NAME-container -- journalctl --vacuum-time=1d
lxc exec $NAME-container -- sh -c 'printf "[Journal]\nStorage=volatile\nSplitMode=none\nRuntimeMaxUse=500K\n" > /etc/systemd/journald.conf'
lxc exec $NAME-container -- systemctl restart systemd-journald
echo "The $NAME container has been created and is available at $CONTAINER_IP"
echo ""
echo "Forward ports to the container using the following command:"
echo "lxc config device add $NAME-container $NAME-PORT_NAME proxy listen=tcp:[0.0.0.0]:HOST_PORT connect=tcp:[$CONTAINER_IP]:CONTAINER_PORT"
echo ""
echo "Tap in to your container with the following command:"
echo "lxc exec $NAME-container -- bash"
}
extract() {
if [ ! -z "$1" ]; then
if [ -f $1 ]; then

99
scripts/bomber Executable file
View File

@ -0,0 +1,99 @@
#!/usr/bin/env bash
#by necro
e="\e[0m"
bk="\e[38;2;1;1;1m"
bl="\e[48;2;101;166;232m"
wh="\e[48;2;251;253;252m"
pi="\e[48;2;229;139;121m"
while true; do
clear
echo -e "
$bk██████████ $bk████$e
$bk████$wh ████$e$bk ██$bl ██$e
$bk██$wh ██████$bl $bk██$e
$bk██$pi $wh ██$e$bk ████$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi $wh ██$e
$bk████$wh ██ ██$e
$bk████████$wh ████████$e
$bk██$bl ██$wh ██$bl ██$e
$bk██$bl ██$wh ██$bl ██$e
$bk██$wh ██$bl ██████$e
$bk██$bl ██$bl ██$bl ██$e
$bk████████████████$e
$bk██$wh ██$e
$bk██████████████$e
$bk██$bl ██$e
$bk████████████████$e"
sleep 0.1
clear
echo -e "
$bk██████████ ████$e
$bk████$wh ██████$bl ██$e
$bk██$wh ██$bl ██$e
$bk██$pi $wh ████$e
$bk████$pi ██ $wh ██$e
$bk████$pi ██ $wh ██$e
$bk████$pi ██ $wh ██$e
$bk██$pi $wh ██$e
$bk████$wh ████ ██$e
$bk██$bl ████$wh ██████████$e
$bk██$bl ██$wh ██$bl ██$wh ██$e
$bk████$wh ██$bl ██$wh ██$e
$bk████$wh ████████████████$e
$bk██$bl ██████ ████$bl ██$e
$bk████$wh $bl $wh ██████$e
$bk██$bl ██$wh ████ ██$e
$bk██$bl ████████$e$bk ██$wh ██$bl ██$e
$bk████ ████$bl ██$e
$bk██$bl ██$e
$bk████$e"
sleep 0.3
clear
echo -e "
$bk██████████ $bk████$e
$bk████$wh ████$e$bk ██$bl ██$e
$bk██$wh ██████$bl $bk██$e
$bk██$pi $wh ██$e$bk ████$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi $wh ██$e
$bk████$wh ██ ██$e
$bk████████$wh ████████$e
$bk██$bl ██$wh ██$bl ██$e
$bk██$bl ██$wh ██$bl ██$e
$bk██$wh ██$bl ██████$e
$bk██$bl ██$bl ██$bl ██$e
$bk████████████████$e
$bk██$wh ██$e
$bk██████████████$e
$bk██$bl ██$e
$bk████████████████$e"
sleep 0.1
clear
echo -e "
$bk██████████ ████
$bk████$wh ████$e $bk██$bl ██$e
$bk██$wh ████$bl ██$e
$bk██$pi $wh ██████████$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi ██ $wh ██$e
$bk██$pi $wh ██$e
$bk████████$wh ██████ ██$e
$bk██$bl ██████████$wh ████$e
$bk██$bl ████ ██$wh ██$e
$bk██$wh ██$bl ██$wh ████$e
$bk██$wh ██ ███████ ██$bl ██$e
$bk████$bl ██ ██$e
$bk████$bl ████$e
$bk██████$wh $bl ██████$wh ████$e
$bk██$bl ██$wh ██$e$bk ██$wh ██$bl ██$e
$bk██$bl ██$e$bk ████$bl ██$e
$bk████$e$bk ██$bl ██$e
$bk████"
sleep 0.3
done