Added VPS installer, updated recon scripts with some BGP fun, etc
This commit is contained in:
parent
cd8b338991
commit
5833330209
|
@ -34,6 +34,10 @@ asn2search() {
|
|||
grep -i "$search_string" "$cache_file"
|
||||
}
|
||||
|
||||
atlastream() {
|
||||
curl -s "https://atlas-stream.ripe.net/stream/?streamType=result&msm=1001" # FOR COWBOYS ONLY
|
||||
}
|
||||
|
||||
bgplookup() {
|
||||
if [ -f "$1" ]; then
|
||||
{ echo "begin"; echo "verbose"; echo "count"; cat "$1"; echo "end"; } | nc bgp.tools 43
|
||||
|
|
|
@ -115,7 +115,7 @@ setup_partition() {
|
|||
|
||||
setup_install() {
|
||||
REPO=https://repo-default.voidlinux.org/current
|
||||
if [ $ARCH = 'x86-64-musl' ]; then
|
||||
if [ $ARCH = 'x86_64-musl' ]; then
|
||||
REPO=$REPO/musl
|
||||
fi
|
||||
|
||||
|
|
3
setup
3
setup
|
@ -39,7 +39,7 @@ setup_root() {
|
|||
xbps-install -y gcc vscode
|
||||
fi
|
||||
|
||||
xbps-install -y bandwhich bat bind-utils btop curl earlyoom exa git glow gnupg2-scdaemon lazygit mlocate net-tools ncdu oath-toolkit progress ripgrep rsync socklog-void tmate tmux tor tree unzip weechat zip
|
||||
xbps-install -y bandwhich bat bind-utils btop curl earlyoom exa git glow gnupg2-scdaemon lazygit lxc lxd mlocate net-tools ncdu oath-toolkit progress ripgrep rsync socklog-void tmate tmux tor tree unzip weechat zip
|
||||
xbps-install -y asciiquarium cmatrix no-more-secrets tty-solitaire
|
||||
xbps-install -y kismet masscan nmap termshark wireshark
|
||||
|
||||
|
@ -72,6 +72,7 @@ setup_root() {
|
|||
printf "\nnohook resolv.conf\n" >> /etc/dhcpcd.conf
|
||||
printf "\nipv4only\nnodhcp6\n" >> /etc/dhcpcd.conf # For fixing "dhcpcd: ipv6nd_sendadvertisement: Operation not permitted" error
|
||||
echo "proc /proc proc defaults,hidepid=2 0 0" >> /etc/fstab
|
||||
mount -o remount /proc
|
||||
printf "Defaults lecture = always\nDefaults lecture_file = /etc/sudoers.d/sudoers.lecture\nroot ALL=(ALL) ALL\n%%wheel ALL=(ALL) ALL\n" > /etc/sudoers
|
||||
printf "\n\033[1m \033[32m\"Bee\" careful \033[34m__\n \033[32mwith sudo! \033[34m// \ \n \\\\\\_/ \033[33m//\n \033[35m''-.._.-''-.._.. \033[33m-(||)(')\n '''\033[0m\n" > /etc/sudoers.d/sudoers.lecture
|
||||
printf "#\!/bin/sh\nclear && (printf \"\" && printf \" E N T E R T H E V O I D\" && printf \"\") | nms -af red\n" > /etc/profile.d/motd.sh
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
# enter the void (vps) - developed by acidvegas (https://git.acid.vegas/void)
|
||||
|
||||
set -xev
|
||||
|
||||
ARCH=x86_64-musl # x86_64 or x86_64-musl
|
||||
DRIVE=/dev/vda
|
||||
HOSTNAME=blackhole
|
||||
TIMEZONE="America/New_York"
|
||||
SWAP_SIZE=4 # In GB (set to 0 to disable)
|
||||
USERNAME=acidvegas
|
||||
|
||||
setup_root() {
|
||||
xbps-install -Su && xbps-install parted
|
||||
wipefs -a $DRIVE
|
||||
parted --script $DRIVE mklabel gpt
|
||||
parted --script $DRIVE mkpart primary ext4 1MiB 100%
|
||||
parted --script $DRIVE set 1 boot on
|
||||
mkfs.ext4 ${DRIVE}1
|
||||
mkdir -p /mnt
|
||||
mount ${DRIVE}1 /mnt
|
||||
mkdir -p /mnt/var/db/xbps/keys
|
||||
cp /var/db/xbps/keys/* /mnt/var/db/xbps/keys/
|
||||
REPO=https://repo-default.voidlinux.org/current
|
||||
[ $ARCH = 'x86_64-musl' ] && REPO=$REPO/musl
|
||||
XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system linux
|
||||
xchroot /mnt /bin/bash
|
||||
}
|
||||
|
||||
setup_chroot() {
|
||||
passwd
|
||||
xbps-install -u xbps
|
||||
xbps-install -Su
|
||||
useradd -m -s /bin/bash $USERNAME && passwd $USERNAME
|
||||
ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && hwclock --systohc
|
||||
ln -sf /etc/sv/dhcpcd /etc/runit/runsvdir/default/
|
||||
if [ ! $ARCH = 'x86_64-musl' ]; then
|
||||
echo "en_US.UTF-8 UTF-8" > /etc/default/libc-locales
|
||||
echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
||||
xbps-reconfigure -f glibc-locales
|
||||
fi
|
||||
echo "$HOSTNAME" > /etc/hostname
|
||||
echo "UUID=$(blkid -s UUID -o value ${DRIVE}1) / ext4 rw,errors=remount-ro,noatime 0 1" > /etc/fstab
|
||||
touch /swapfile && chattr +C /swapfile
|
||||
dd if=/dev/zero of=/swapfile bs=1M count=$SWAP_SIZE status=progress
|
||||
chmod 0600 /swapfile
|
||||
mkswap /swapfile && swapon /swapfile
|
||||
echo "/swapfile none swap sw 0 0" >> /etc/fstab
|
||||
xbps-install -Sy grub
|
||||
grub-install $DRIVE
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
echo "exit and run umount /mnt && reboot"
|
||||
}
|
||||
|
||||
[ $1 = "root" ] && setup_root
|
||||
[ $1 = "chroot" ] && setup_chroot
|
Loading…
Reference in New Issue