PACKSCRIPT
___ ___ ___ _ __ ___ ___ ___ ___ ___ _____
| _ \/ \ / __|| |/ // __| / __|| _ \|_ _|| _ \|_ _|
| _/| - || (__ | < \__ \| (__ | / | | | _/ | |
|_| |_|_| \___||_|\_\|___/ \___||_|_\|___||_| |_|
Github: github.com/suchsoak
BY: suchsoak
V:1.0.0
This is a shell script for you to have everything when formatting your linux
Details
This script appears to be a Bash script that automates the installation of various software packages and tools on different operating systems. Let's break down the script and understand what it does.
Script Overview:
The script starts by displaying a banner with ASCII art and some information about the author and version. Then it checks the operating system and proceeds with the installation of packages based on the detected OS.
Debian/Ubuntu/Linux Mint/Kali:
If the script detects that the operating system is Debian-based (Debian, Ubuntu, Linux Mint, or Kali), it updates the package repositories and installs several packages using the apt package manager. The installed packages include make, curl, wget, git, vim, net-tools, ssh, neofetch, inxi, smartmontools, docker.io, build-essential, gcc, g++, nodejs, python3, python-pip, ruby, default-jdk, default-jre, mysql-server, postgresql, code (Visual Studio Code), and brave-browser. After the installations, it performs some system updates and configurations.
Arch Linux:
If the script detects that the operating system is Arch Linux, it updates the package repositories and installs several packages using the pacman package manager. The installed packages include curl, wget, git, vim, make, net-tools, wireless_tools, nano, xdg-utils, openssh, neofetch, inxi, smartmontools, docker, gcc, g++, nodejs, lua, python3, python-pip, ruby, jre-openjdk, mysql, code (Visual Studio Code), and brave-bin, brave-beta-bin, brave-nightly-bin using the yay package manager. After the installations, it performs some system updates and configurations.
Fedora:
If the script detects that the operating system is Fedora, it updates the package repositories and installs several packages using the dnf package manager. The installed packages include git,neofetch, curl, wget, vim, net-tools, wireless_tools, xdg-utils, openssh, inxi, smartmontools, docker, gcc, g++, nodejs, lua, python3, python-pip, ruby, default-jdk, default-jre, mysql, code (Visual Studio Code), and brave-browser. After the installations, it performs some system updates and configurations.
Android:
If the script detects that the operating system is Android, it installs several packages using the pkg package manager. The installed packages include make, curl, wget, git, vim, net-tools, openssh, neofetch, inxi, qemu-utils, qemu-common, qemu-system-x86_64-headless, nodejs, python3, python-pip, ruby, openjdk-17, postgresql, code (Visual Studio Code), and provides an option to install Nethunter. After the installations, it performs some system updates and configurations.
Qemu-utils
The provided code is a set of commands written in the Termux terminal emulator for Android. It is used to install and set up a virtual machine running Alpine Linux using QEMU (Quick Emulator).
Let's break down the commands:
pkg install qemu-utils qemu-common qemu-system-x86_64-headless -y: This command installs the necessary QEMU packages for running a virtual machine on the Android device.
mkdir alpine && cd alpine: This command creates a directory named "alpine" and changes the current directory to that newly created directory.
wget http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-virt-3.12.3-x86_64.iso: This command uses the wget utility to download the Alpine Linux ISO image file from the specified URL.
qemu-img create -f qcow2 alpine.img 4G: This command creates a virtual hard disk image named "alpine.img" with a size of 4GB in the QCOW2 format. This image will be used as the storage for the virtual machine.
qemu-system-x86_64 -machine q35 -m 1024 -smp cpus=2 -cpu qemu64 : This command starts the QEMU virtual machine with the specified configuration options. It sets the machine type to "q35", allocates 1024MB of memory (RAM) to the virtual machine, assigns 2 virtual CPUs, and uses the "qemu64" CPU model.
-drive if=pflash,format=raw,read-only,file=$PREFIX/share/qemu/edk2-x86_64-code.fd : This command specifies the firmware file to be used by the virtual machine. It sets the firmware interface to "pflash" and provides the path to the firmware file.
-netdev user,id=n1,hostfwd=tcp::2222-:22 -device virtio-net,netdev=n1 : This command configures the virtual network device for the virtual machine. It creates a user network interface with the ID "n1" and forwards the host's TCP port 2222 to the virtual machine's port 22 (SSH).
-cdrom alpine-virt-3.12.3-x86_64.iso -nographic alpine.img: This command specifies the ISO image file to be used as the virtual machine's CD-ROM drive. It sets the display mode to "nographic", which means the virtual machine will not have a graphical interface.
These commands collectively set up a virtual machine running Alpine Linux using QEMU in the Termux environment.
Please note that running virtual machines on Android devices may require sufficient system resources and may not be as performant as running on dedicated hardware.
Downloads | Links |
---|---|
QEMU | https://www.qemu.org/download/ |
QEMU Info | https://www.qemu.org/ |
Kali Linux - Nethunter
_ __ ___ _ ___ _ _ _
| |/ // \| | |_ _| _ _ ___ | |_ | |_ _ _ _ _ | |_ ___ _ _
| < | - || |__ | | | ' \ / -_)| _|| \ | || || ' \ | _|/ -_)| '_|
|_|\_\|_|_||____||___| |_||_|\___| \__||_||_| \_._||_||_| \__|\___||_|
[1] Nethunter Install
[2] No Install
Overview
This script appears to be a shell script written in Bash. It presents a menu to the user with two options: Nethunter Install and No Install. Depending on the user's choice, it performs different actions. The script also includes some additional commands related to Termux and Nethunter.
Script Explanation
nter=$(cat << "EOF"
_ __ ___ _ ___ _ _ _
| |/ // \| | |_ _| _ _ ___ | |_ | |_ _ _ _ _ | |_ ___ _ _
| < | - || |__ | | | ' \ / -_)| _|| \ | || || ' \ | _|/ -_)| '_|
|_|\_\|_|_||____||___| |_||_|\___| \__||_||_| \_._||_||_| \__|\___||_|
[1] Nethunter Install
[2] No Install
EOF
)
echo "$nethunter"
# Declare op
op=0
while [[ $op -ne 1 && $op -ne 2 ]]
do
read -p "Select an option [1-2]: " op
done
case $op in
1)
echo "Nethunter Install"
sleep 1 > /dev/null
termux-setup-storage
wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
./install-nethunter-termux
sleep 1 >/dev/null
clear
echo
echo "Put a Password"
echo
nethunter kex passwd
sleep 1 > /dev/null
clear
# Install neofetch if not installed
if [ -z "$(command -v neofetch)" ]; then
pkg install neofetch
fi
neofetch
;;
2)
echo "No Nethunter"
exit
;;
Let's break down the script step by step:
The script starts by assigning a multi-line string to the variable nethunter. This string contains an ASCII art logo and a menu with two options: Nethunter Install and No Install.
The echo "$nethunter" command is used to display the contents of the nethunter variable, which shows the logo and menu to the user.
The read op command is used to read the user's input and store it in the variable op.
The case $op in statement starts a case statement that checks the value of the op variable.
If the value of op is 1, the script executes the following commands:
echo "Nethunter Install": Displays the message "Nethunter Install".
sleep 1 > /dev/null: Pauses the script for 1 second.
termux-setup-storage: Sets up storage access for the Termux app.
wget -O install-nethunter-termux https://offs.ec/2MceZWr: Downloads a file named "install-nethunter-termux" from the specified URL.
chmod +x install-nethunter-termux: Changes the permissions of the downloaded file to make it executable.
./install-nethunter-termux: Executes the downloaded file.
sleep 1 >/dev/null: Pauses the script for 1 second.
clear: Clears the terminal screen.
echo: Displays an empty line.
echo "Put a Password": Displays the message "Put a Password".
echo: Displays an empty line.
nethunter kex passwd: Executes the command "nethunter kex passwd".
sleep 1 > /dev/null: Pauses the script for 1 second.
clear: Clears the terminal screen.
neofetch: Displays system information using the "neofetch" command.
If the value of op is 2, the script executes the following commands:
echo "No Nethunter": Displays the message "No Nethunter".
exit: Exits the script.
Additional Information
The script mentions Nethunter, which is a mobile penetration testing platform based on Kali Linux. It allows users to run Kali Linux on Android devices. The script seems to automate the installation process of Nethunter on the Termux app, which provides a terminal emulator and Linux environment for Android.
For more information on Nethunter installation, you can refer to the official documentation at:
Downloads | Links |
---|---|
Nethunter | https://www.kali.org/docs/nethunter/nethunter-rootless/ |