Skip to content

Commit

Permalink
Update kali-whoami
Browse files Browse the repository at this point in the history
  • Loading branch information
owerdogan authored Aug 1, 2023
1 parent cc836d2 commit ba3a7f7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions kali-whoami
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@
#check source files
source /usr/share/kali-whoami/assets/sources/config 2> /dev/null || { clear;echo -e "\e[31m [-] FATAL ERROR: MAIN CONFIG COULD NOT BE SOURCED!\e[0m";exit 1;}

support_youtube() {
youtube_val=`grep youtube= /usr/share/kali-whoami/assets/sources/config | cut -d'=' -f2`

if [ "$youtube_val" != "FALSE" ]; then
warn "Whoami Project needs support to continue. You can subscribe to youtube channel to support."
msg "It's free and you can unsubscribe whenever you want."
msg "If you do not want to subscribe, close the tab :("
msg "YouTube launching in 5 second. Do something nice today and subscribe :)"
nonroot_user=`who | awk '$1!="root"{print $1}' | head -1`
sleep 5
sudo -u $nonroot_user firefox -new-tab "https://www.youtube.com/@reverseower" &> /dev/null
curl --silent "https://visitor-badge.glitch.me/badge?page_id=whoami_youtube_com3&left_color=black&right_color=red&left_text=Counter:" # please dont send spam. thanks :)
echo -e "\nyoutube=FALSE" >> /usr/share/kali-whoami/assets/sources/config
fi
}

banner
# run with a root privilege
[ $UID != 0 ] && err "Whoami must be run as root. ${GREEN}'sudo $(basename ${0})'${RESET}"
Expand Down Expand Up @@ -172,7 +156,6 @@ fi

case "$1" in
--[sS][tT][aA][rR][tT]|-[sS][tT])
support_youtube
start
;;
--[sS][tT][oO][pP]|-[sS][pP])
Expand Down

0 comments on commit ba3a7f7

Please sign in to comment.