Skip to content

fix some code #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
349 changes: 177 additions & 172 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,172 +1,177 @@
#!/bin/env bash
# Black-Tool v5.0.0 (New)
# Black-Tool Installing File
#
# Website: https://blacksoftware.ir
# Github: https://github.com/black-software-com
# Instagram: https://instagram.com/black_software_company
#
if [[ "$(id -u)" -ne 0 ]]; then
echo "Please, Run This Programm as Root!"
exit 1
fi
function ext() {
clear
echo "Exiting..."
exit 1
}
function windows_installing() {
printf '\033]2;Black-Tool/Windows/Installing\a'
clear
print "Enter Path: "
read path
echo "Setup..."
cd Black-Tool/Windows && cp hack.py $path
echo "
Black-Tool Installed
"
}
function termux_installing() {
printf '\033]2;Black-Tool/Termux/Installing\a'
clear
echo "Installing..."
sleep 1
printf "Enter Path: "
read path
sleep 1
cd Black-Tool/Termux && cp hack $path
echo "
Black-Tool Installed!
"
}
function choose_os() {
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄"
echo ""
echo "
Choose OS:
{1}.Linux
{2}.Windows
{3}.Android
{99}.Exit
"
printf "choose/> "
read choose
if [[ "$choose" == '1']];
then
try1
elif [[ "$choose" == '2']];
then
windows_installing
elif [[ "$choose" == '3']];
then
termux_installing
elif [[ "$choose" == '99']];
then
clear
echo "
Exiting...
"
exit
else
choose_os
fi
}
try1() {
printf '\033]2;Black-Tool-Installing/color\a'
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄"
echo ""
echo "color:
{1}.red
{2}.green
{3}.blue
{4}.None
{99}.Exit
"
printf 'Enter color: '
read color;
if [[ "$color" == "1" ]]; then
cd color/red/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "2" ]]; then
cd color/green/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "3" ]]; then
cd color/blue/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "4" ]]; then
chmod +x hack
cp hack /usr/local/bin
cp hack /usr/bin
elif [[ "$color" == "99" ]]; then
ext
else
try1
fi
}
run() {
clear
printf '\033]2;Starting\a'
echo "Starting..."
sleep 2
chmod +x hack
chmod +x uninstall.sh
try1
printf '\033]2;Installing...\a'
echo "Installing..."
sleep 2
apt-get update
apt-get upgrade
apt install alsa-utils
apt install xtitle
apt install lolcat
apt install python
apt install python3
printf "Press any key To continue..."
read -n 1
echo ""
echo "Finish...!

Usage:
hack --help

Help Argument:
Black-Tool Usage:
--start | start Hack Menu!
--install <Pkg Name>
--clone <Repositories Link>
--version | Black-Tool version
--help | Black-Tool Help
--banner | Show Black-Tool Banner

"
exit 1
}
check() {
printf '\033]2;Black-Tool/Installing/Check-Internet\a'
clear
echo "Checking Internet..."
sleep 1
ping -w 1 google.com > /dev/null
if [[ "$?" != 0 ]]; then
clear
echo "
Please, Check Internet!
"
exit 1
else
clear
echo "Internet Connected!"
sleep 2
run
fi
}
check
#!/bin/env bash
# Black-Tool v5.0.0 (New)
# Black-Tool Installing File
#
# Website: https://blacksoftware.ir
# Github: https://github.com/black-software-com
# Instagram: https://instagram.com/black_software_company
#
if [[ "$(id -u)" -ne 0 ]]; then
echo "Please, Run This Programm as Root!"
exit 1
fi
function ext() {
clear
echo "Exiting..."
exit 1
}
function windows_installing() {
printf '\033]2;Black-Tool/Windows/Installing\a'
clear
print "Enter Path: "
read path
echo "Setup..."
cd Black-Tool/Windows && cp hack.py $path
echo "
Black-Tool Installed
"
}
function termux_installing() {
printf '\033]2;Black-Tool/Termux/Installing\a'
clear
echo "Installing..."
sleep 1
printf "Enter Path: "
read path
sleep 1
cd Black-Tool/Termux && cp hack $path
echo "
Black-Tool Installed!
"
}
function choose_os() {
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ 
█░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ 
█▄▄"
echo ""
echo "
Choose OS:
{1}.Linux
{2}.Windows
{3}.Android
{99}.Exit
"
printf "choose/> "
read choose
if [["$choose" == '1']];
then
try1
elif [["$choose" == '2']];
then
windows_installing
elif [["$choose" == '3']];
then
termux_installing
elif [["$choose" == '99']];
then
clear
echo "
Exiting...
"
exit
else
choose_os
fi
}
try1() {
printf '\033]2;Black-Tool-Installing/color\a'
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ 
█░░ v4.0.0"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ 
█▄▄"
echo ""
echo "color:
{1}.red
{2}.green
{3}.blue
{4}.None
{99}.Exit
"
printf 'Enter color: '
read color;
if [[ "$color" == "1" ]]; then
cd color/red/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "2" ]]; then
cd color/green/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "3" ]]; then
cd color/blue/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "4" ]]; then
chmod +x hack
cp hack /usr/local/bin
cp hack /usr/bin
elif [[ "$color" == "99" ]]; then
ext
else
try1
fi
}
run() {
clear
printf '\033]2;Starting\a'
echo "Starting..."
sleep 2
chmod +x hack
chmod +x uninstall.sh
try1
printf '\033]2;Installing...\a'
echo "Installing..."
sleep 2
apt-get update
apt-get upgrade
apt install alsa-utils
apt install xtitle
apt install lolcat
apt install python
apt install python3
printf "Press any key To continue..."
read -n 1
echo ""
echo "Finish...!

Usage:
hack --help

Help Argument:
Black-Tool Usage:
--start | start Hack Menu!
--install <Pkg Name>
--clone <Repositories Link>
--version | Black-Tool version
--help | Black-Tool Help
--banner | Show Black-Tool Banner

"
exit 1
}
check() {
printf '\033]2;Black-Tool/Installing/Check-Internet\a'
clear
echo "Checking Internet..."
sleep 1
ping -w 1 google.com > /dev/null
if [[ "$?" != 0 ]]; then
clear
echo "
Please, Check Internet!
"
exit 1
else
clear
echo "Internet Connected!"
sleep 2
run
fi
}
check