Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- path=$(pwd)
- backup_window_size="printf '\e[8;24;80t'"
- #some colors
- RED="\e[31m"
- GREEN="\e[32m"
- YELLOW="\e[33m"
- BLUE="\e[34m"
- MAGENTA="\e[35m"
- CYAN="\e[36m"
- RESTORE="\e[39"
- BOLD="\e[1m"
- NORMAL="\e[0m"
- printf '\e[8;35;100t'
- #functions
- function err_report {
- if exit[1]
- then
- echo -e $RED "Please report all errors to: ${BLUE}https://github.com/ViperZCrew"
- read -p "Do you want to report error?[Y/N]: " rprt
- if [[ $rprt == "y" || $rprt == "Y" ]]
- then
- firefox https://github.com/ViperZCrew
- else
- err_solver
- fi
- fi
- }
- function err_solver {
- clear
- echo -e "${RED}[!] ${YELLOW}Wrong command..."
- sleep 2
- clear
- bash automation.sh
- }
- function package_installer {
- echo -e $BOLD ""
- echo -ne "${CYAN}Tilix... -> "
- sleep 0.5
- if ! hash tilix 2>/dev/null;then
- echo -e $RED "Not installed [✗]"
- apt install tilix -y
- else
- echo -e $GREEN "Installed [✓]"
- fi
- echo -e $BOLD ""
- echo -ne "${CYAN}Python... -> "
- sleep 0.5
- if ! hash python 2>/dev/null;then
- echo -e "\e[1;31mNot installed [✗]"
- apt install python -y
- else
- echo -e "\e[;32mInstalled [✓]"
- fi
- echo -e $BOLD ""
- echo -ne "${CYAN}Nano... -> "
- sleep 0.5
- if ! hash nano 2>/dev/null;then
- echo -e $RED "Not installed [✗]"
- apt install nano -y
- else
- echo -e $GREEN "Installed [✓]"
- fi
- # echo -e $BOLD ''
- # echo -ne "${CYAN}Fish... -> "
- # sleep 0.5
- # if ! hash fish 2>/dev/null;then
- # echo -e $RED "Not installed [✗]"
- # apt install fish -y
- # else
- # echo -e $GREEN "Installed [✓]"
- # fi
- # fish is not really required, only for beginners, you can install it by apt install fish.
- }
- function command_check {
- echo -e "${RED}[*] ${YELLOW}Checking if tool callable..."
- sleep 1
- echo -e "${RED}[*] ${YELLOW}Current path: ${MAGENTA}$path."
- sleep 2
- echo -e "${RED}[*] ${YELLOW}Adding tool to call list."
- sleep 1
- export pwd=$path
- echo -e "alias tmaker='cd ${path} && ./4ut0m4t10n.sh'" >> /root/.bashrc
- #FILE="$path/backup/.bashrc"
- #if [ -f "$FILE" ]
- #then
- # echo -e "${RED}[!] ${YELLOW}Backup created."
- #else
- # cp -R /root/.bashrc $path/backup
- #fi
- #awk '!a[$0]++' /root/.bashrc >> /root/.bashr
- #rm /root/.bashrc
- #mv -v /root/.bashr /root/.bashrc &>/dev/null
- echo -e "${RED}[*] ${YELLOW}Run this tool by: ${BLUE}tmaker${YELLOW}."
- echo -e "${RED}[*] ${YELLOW}Removed duplicates lines."
- }
- function pause {
- read -p "$*"
- }
- function full_config {
- clear
- echo -e "${GREEN}Checking root..."
- echo ''
- sleep 1
- if [ "$EUID" -ne 0 ]
- then
- echo -e "${RED}[✗] No root detected >:("
- else
- echo -e "${GREEN}[✓] Root Access :)"
- fi
- sleep 1.5
- pause 'Press [Enter] to continue to start....'
- echo -e $YELLOW"[!] Starting package installer.."
- sleep 0.5
- package_installer
- echo -e "${CYAN}[!] Configuring your source list."
- sleep 0.7
- clear
- echo -e "${CYAN}[!] Configuring your source list.."
- sleep 0.7
- clear
- echo -e "${CYAN}[!] Configuring your source list..."
- sleep 0.7
- rm -rf /etc/apt/sources.list
- touch /etc/apt/sources.list
- echo "deb http://http.kali.org/kali kali-rolling main non-free contrib
- deb-src http://http.kali.org/kali kali-rolling main non-free contrib
- deb https://deb.torproject.org/torproject.org stretch main
- deb-src https://deb.torproject.org/torproject.org stretch main" >> /etc/apt/sources.list
- cound_words=$(wc -l /etc/apt/sources.list | cut -d\ -f 1)
- sleep 1
- echo -e $BLUE"Added ${RED}$cound_words ${BLUE}lines to sources list."
- pause 'Press [Enter] to continue....'
- echo -e $BOLD ""
- echo -e $YELLOW ""
- read -p "[*] Do you want to see the added lines[y/N]? " sl
- if [[ $sl == "y" || $sl == "Y" ]]
- then
- cd lib
- tilix -e bash source.sh
- sleep 0.5
- killp=$(ps aux | grep xterm | head -1 | awk '{print $2}')
- kill -9 $killp 2>/dev/null
- cd ..
- else
- echo ""
- echo -e "${RED}[skiping] ${YELLOW}Ignoring new entries at ${RED}/etc/apt/sources.list..."
- sleep 1
- fi
- echo -e $BOLD ""
- echo -e $RED"[!] Importing kali.org archive key:"
- wget -q -O - https://www.kali.org/archive-key.asc | apt-key add -
- echo -e "${YELLOW}[!] Updating system."
- apt update
- apt upgrade -y
- #apt full-upgrade -y
- echo ""
- echo -e "${GREEN}[✓] ${CYAN}Your system has been updated."
- pause 'Press [Enter] to continue....'
- sleep 1
- clear
- echo -e $CYAN ""
- echo -e $BOLD ""
- read -p "Do you want to see your kali linux version[y/N]? " kv
- if [[ $kv == "y" || $kv == "Y" ]]
- then
- vk=$(cat /etc/os-release | grep VERSION= | sed -n 's/[A-Z"=]//g;p')
- clear
- echo -e "${BOLD}"
- echo -e "${GREEN}[*] Your kali version is:${RED} $vk${GREEN}."
- else
- echo -e "${GREEN}[✓] ${CYAN}Done!"
- pause 'Press [Enter] to continue....'
- fi
- sleep 1
- echo -e $MAGENTA ""
- read -p "[*] Do you want install packages[y/N]? " pck
- if [[ $pck == "y" || $pck == "Y" ]]
- then
- echo -e "[~] ${GREEN}Installing new packages, get something to drink and relax.."
- apt install python3 python3-* tor tor-arm torbrowser-launcher proxychains filezilla* software-center gdebi geany neofetch git bettercap urlsnarf ngrep awk curl mdk3 mdk4 bc cowpatty php-cgi php apache2 libssl-dev gpa gnupg2 net-tools wget postfix libncurses5 libxml2 tcpdump libexiv2-dev build-essential python-xmpp python-pip ssh ssh-tools htop stacer bleachbit leafpad snapd yersinia cmake make g++ gcc libidevicemobile openssh-server openssl screen wapiti whatweb nmap golismero host wget uniscan wafw00f dirb davtest theharvester xsser dnsrecon fierce dnswalk whois sslyze lbd dnsenum dmitry davtest nikto dnsmap netcat gvfs gvfs-common gvfs-daemons gvfs-libs gconf-service gconf2 gconf2-common gvfs-bin psmisc -y
- clear
- echo -e $GREEN "[✓] ${CYAN}Packages has been successfully installed."
- sleep 2
- clear
- echo ''
- echo -e $BOLD "${BLUE}
- Kali linux has some metapackages, means it installs particular stuff you maybe need, i will list some options which you can choose to countinue.
- ${RED}[> kl <] -:- ${YELLOW}Kali linux metapackage includes various network service such as apache and ssh, the kernel of kali and many updated versions. [1,5 GB]
- ${RED}[> kf <] -:- ${YELLOW}Kali Forensic is perfectly for forensic works. This resource contains forensic tools. [3,1 GB]
- ${RED}[> kp <] -:- ${YELLOW}Kali linux password tools contains over 40 different password cracking utilities. [6,0 GB]
- ${RED}[> kr <] -:- ${YELLOW}Kali rfid tools are for users who are doing research and exploitation. [1,5 GB]
- ${RED}[> ks <] -:- ${YELLOW}Kali SDR tools contains large collection of software defined radios tools. [2,4 GB]
- ${RED}[> kv <] -:- ${YELLOW}Kali voice over ip tools are for people doing voip testing and research. [1,8 GB]
- ${RED}[> kw <] -:- ${YELLOW}Kali web application tools includes tools for web application hacking. [4,9 GB]
- ${RED}[> ki <] -:- ${YELLOW}Kali wireless includes tools targeted towards wireless networks. [6,6 GB]
- ${RED}[> menu <] -:- ${YELLOW}Skipping this and go back to menu.
- "
- echo -e "${MAGENTA}"
- printf "【 mak3r@root 】${YELLOW}>/full_config ~>:${GREEN} "
- read mp
- if [[ $mp == "kl" ]]; then
- apt install kali-linux -y
- else
- err_solver
- fi
- if [[ $mp == "kf" ]]; then
- apt install kali-linux-forensic -y
- else
- echo ''
- fi
- if [[ $mp == "kp" ]]; then
- apt install kali-linux-pwtools -y
- else
- echo ''
- fi
- if [[ $mp == "kr" ]]; then
- apt install kali-linux-rfid -y
- else
- echo ''
- fi
- if [[ $mp == "ks" ]]; then
- apt install kali-linux-sdr -y
- else
- echo ''
- fi
- if [[ $mp == "kv" ]]; then
- apt install kali-linux-voip -y
- else
- echo ''
- fi
- if [[ $mp == "kw" ]]; then
- apt install kali-linux-web -y
- else
- echo ''
- fi
- if [[ $mp == "ki" ]]; then
- apt install kali-linux-wireless -y
- else
- echo ''
- fi
- if [[ $mp == "menu" ]]; then
- clear
- pause 'Press [Enter] to continue....'
- echo -e "${GREEN}[~] ${RED}Skipping.."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping...."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping..."
- err_solver
- else
- echo -e $RED "[!] ${YELLOW}Some packages can not be installed."
- fi
- else
- echo -e $RED"[!] ${YELLOW}Skipping."
- fi
- sleep 1.5
- clear
- printf "${RED}[*] ${YELLOW}Do you want to make a update command in one[Y/N]? "
- read upd
- if [[ $upd == "y" || $upd == "Y" ]]
- then
- echo ""
- printf "${RED}[?] ${YELLOW}Name of command: "
- read updd
- echo "
- function $updd {
- apt-get update &&
- apt-get dist-upgrade -y &&
- apt-get autoremove -y &&
- apt-get autoclean &&
- apt-get clean &&
- reboot
- }" >> /root/.bashrc
- echo -e "${RED}[!] ${BLUE}Type ${RED}$updd ${BLUE}to make a full update for your kali linux."
- echo -e "${MAGENTA}[!] ${RED}To see changes, close terminal and start terminal again!"
- clear
- else
- echo -e $BOLD ""
- clear
- fi
- printf "${RED}[*] ${YELLOW}Do you want to install tor browser[Y/N]? "
- read tr
- if [[ $tr == "y" || $tr == "Y" ]]
- then
- echo -e "${RED}[*] ${YELLOW}Installing Tor Browser.."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${YELLOW}Installing Tor Browser..."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${YELLOW}Installing Tor Browser...."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${YELLOW}Installing Tor Browser.."
- sleep 1.5
- clear
- echo -e "${RED}[✓] ${GREEN}Repositories already exists in file."
- echo -e "${RED}[*] ${YELLOW}Adding key."
- wget -O- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | sudo apt-key add -
- echo -e "${RED}[*] ${YELLOW}Updating & Configurate changes."
- apt update
- apt-get install tor torbrowser-launcher deb.torproject.org-keyring -y
- echo -e "${GREEN}[✓] ${CYAN}Done!."
- pause 'Press [Enter] to continue....'
- clear
- read -p "Do you want to start tor browser[Y/N]? " str
- if [[ $str == "y" || $str == "Y" ]]
- then
- cd /root/Downloads
- curl -LO https://dist.torproject.org/torbrowser/9.0.5/tor-browser-linux32-9.0.5_en-US.tar.xz
- tar -xvf tor-browser-linux32-9.0.5_en-US.tar.xz
- cd tor-browser_en-US
- chmod +rwx start-tor-browser.desktop
- cd Browser
- echo -e "${RED}[*] ${YELLOW}Remove line 94-98, save and exit it."
- sleep 2.5
- gedit start-tor-browser
- ./start-tor-browser
- pause 'Press [Enter] to continue....'
- else
- echo -e "${GREEN}[~] ${RED}Skipping.."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping...."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping..."
- clear
- fi
- else
- echo -e "${GREEN}[~] ${RED}Skipping.."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping...."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping..."
- pause 'Press [Enter] to continue....'
- clear
- fi
- echo -e "${YELLOW}[*] ${BLUE}Adding secure DNS server in /etc/resolv.conf."
- clear
- echo -e "${RED}[*] ${YELLOW}Listing your currently dns server:(ignoring comments)"
- cat /etc/resolv.conf | sed '/#/d'
- sleep 1
- read -p "[?] Backup resolv.conf file[Y/N]?: " bck
- if [[ $bck == "y" || $bck == "Y" ]]
- then
- echo -e "${BLUE}[*] ${GREEN}Backuping original file..."
- sleep 0.2
- cp -R /etc/resolv.conf $path/backup
- else
- echo -e "${GREEN}[~] ${RED}Skipping.."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping...."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping."
- sleep 0.5
- clear
- echo -e "${GREEN}[~] ${RED}Skipping..."
- pause 'Press [Enter] to continue....'
- clear
- fi
- pause 'Press [Enter] to continue..'
- clear
- sleep 0.5
- printf "${MAGENTA}[*] ${GREEN}Anonymous or Fast[A/F]?: "
- read dns
- if [[ $dns == "A" || $dns == "A" ]]
- then
- clear
- echo -e "${BLUE}"
- figlet An0nM0de
- sleep 1
- echo -e "${RED}[!] ${MAGENTA}Adding following IP address to your DNS list: "
- sleep 0.5
- cat lib/anon_dns.txt | sed -r '/#/d'
- rm -rf /etc/resolv.conf
- cat lib/anon_dns.txt 2>/dev/null | tail -n2 >> /etc/resolv.conf
- sleep 0.8
- echo -e "${GREEN}[*] ${MAGENTA}Done."
- pause 'Press [Enter] continue.'
- elif [[ $dns == "f" || $dns == "F" ]]
- then
- clear
- echo -e "${BLUE}"
- figlet F4stM0de
- sleep 1
- echo -e "${RED}[!] ${MAGENTA}Adding following IP address to your DNS list: "
- sleep 0.5
- cat lib/fast_dns.txt | sed -r '/#/d'
- #sed -r '1,2 s/#/\r/'
- rm -rf /etc/resolv.conf
- cat lib/fast_dns.txt 2>/dev/null | tail -n2 >> /etc/resolv.conf
- sleep 0.8
- echo -e "${GREEN}[*] ${MAGENTA}Done."
- pause 'Press [Enter] continue.'
- else
- err_solver
- fi
- clear
- echo -e "${GREEN[*]${BLUE}Do you want to generate a password for your own security?[Y/N]?: "
- read pwdg
- if [[ $pwdg == "y" || $pwdg == "Y"]]
- then
- bash lib/pwd.sh
- else
- err_solver
- fi
- }
- function install_tools {
- echo "coming soon"
- }
- function quit {
- clear
- echo -e "${RED}[*] ${YELLOW} Pre-setting options."
- pause 'Press [Enter] to continue....'
- echo -e "${RED}[*] ${CYAN}Quitting.."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${CYAN}Quitting..."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${CYAN}Quitting...."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${CYAN}Quitting.."
- sleep 0.5
- clear
- echo -e "${RED}[*] ${CYAN}Quitting..."
- sleep 0.5
- clear
- exit
- echo -e "${RED}[!] ${BLUE}Wrong command. Quitting."
- }
- clear
- sleep 0.5
- echo -e $BLUE "
- Welcome To
- ████████╗██╗ ██╗███████╗ ███▄ ▄███▓ ▄▄▄ ██ ▄█▀▓█████ ██▀███
- ╚══██╔══╝██║ ██║██╔════╝ ▓██▒▀█▀ ██▒▒████▄ ██▄█▒ ▓█ ▀ ▓██ ▒ ██▒
- ██║ ███████║█████╗ ▓██ ▓██░▒██ ▀█▄ ▓███▄░ ▒███ ▓██ ░▄█ ▒
- ██║ ██╔══██║██╔══╝ ▒██ ▒██ ░██▄▄▄▄██ ▓██ █▄ ▒▓█ ▄ ▒██▀▀█▄
- ██║ ██║ ██║███████╗ ▒██▒ ░██▒ ▓█ ▓██▒▒██▒ █▄░▒████▒░██▓ ▒██▒
- ╚═╝ ╚═╝ ╚═╝╚══════╝
- "
- echo -e $MAGENTA "${BOLD}The Automatic Configure Script For Kali Linux."
- echo ""
- #command_check
- echo -e "${RED}[!] ${YELLOW}Directory of The makeR: ${MAGENTA}${path}."
- echo ""
- sleep 0.5
- printf "${RED}[> full_config <] ${YELLOW} Starting to configure your kali linux for hacking."
- echo ""
- sleep 0.5
- printf "${RED}[> install_tools <] ${YELLOW} Lists you a list of tools that are recommend to install."
- echo ""
- sleep 0.5
- printf "${RED}[> social_media <] ${YELLOW} Lists you a list of social media that can be installed."
- echo ""
- sleep 0.5
- printf "${RED}[> cmd_crtr <] ${YELLOW} Make your own commands."
- echo ""
- sleep 0.5
- printf "${RED}[> credits <] ${YELLOW} Lists credits & contact."
- echo ""
- sleep 0.5
- printf "${RED}[> quit <] ${YELLOW} Leaving(press q to quit)."
- echo -e $BLUE ""
- x=0
- while [ $x = 0 ]
- do
- clear
- echo '【 mak3r@root 】~>: '
- read ex
- case "$ex" in
- full_config)
- full_config
- x=1
- ;;
- install_tools)
- install_tools
- x=1
- ;;
- social_media)
- social_media
- x=1
- ;;
- cmd_crtr)
- cmd_crtr
- x=1
- ;;
- credits)
- credits
- x=1
- ;;
- quit)
- quit
- x=1
- ;;
- q)
- x=1
- echo 'Exiting..'
- sleep 0.5
- ;;
- *)
- echo '[!] Wrong command!'
- sleep 1
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement