While I was checking various bash properties around and having fun, I created a matrix effect with bash, and wanted to share it You need to ctrl+z to terminate it. And if it mess up with your console colors,
tput sgr0
will bring them to defaults. Here is the code:
#!/bin/bash
str=" 0 1 2 3 45 6 7 8 9 q w e r t y u o pa sd fgh jk lizxcvbnmQ WER TY U O P A S D FG HJ KLZX CV B NM"
color[0]='\E[30;40m'
color[1]='\E[31;40m'
color[2]='\E[34;40m'
color[3]='\E[37;40m'
while true
do
number1=$RANDOM
let "number1 %= ${#str}"
number2=$RANDOM
let "number2 %=4"
echo -n -e "\033[1m${color[$number2]}${str:number1:1}\0330m"
done
This is the hacker version of it, you need to give it a option . Let say you named it to “hack”. Type like this,
hack http://www.facebook.com
and then watch it to hack facebook for you
here is the code:
#!/bin/bash
str=" 0 1 2 3 45 6 7 8 9 q w e r t y u o pa sd fgh jk lizxcvbnmQ WER TY U O P A S D FG HJ KLZX CV B NM"
color[0]='\E[30;40m'
color[1]='\E[31;40m'
color[2]='\E[34;40m'
color[3]='\E[37;40m'
clear
echo "hacking $1"
sleep 2
echo "Initializing"
sleep 2
echo "Server hacking module is loading"
sleep 2
echo "Server hacking module is ready"
sleep 2
echo "Hack module is starting in 5 seconds"
sleep 1
echo "4 seconds"
sleep 1
echo "3 seconds"
sleep 1
echo "2 seconds"
sleep 1
echo "1 seconds"
sleep 1
for i in {1..10000}
do
number1=$RANDOM
let "number1 %= ${#str}"
number2=$RANDOM
let "number2 %=4"
echo -n -e "\033[1m${color[$number2]}${str:number1:1}\0330m"
done
sleep 3
echo "$1 succesfully hacked!"
sleep 1
echo "You are a terrific hacker dude!!"
#!/bin/bash
str=" 0 1 2 3 45 6 7 8 9 q w e r t y u o pa sd fgh jk lizxcvbnmQ WER TY U O P A S D FG HJ KLZX CV B NM"
color[0]='\E[30;40m'
color[1]='\E[31;40m'
color[2]='\E[34;40m'
color[3]='\E[37;40m'
clear
echo "hacking $1"
sleep 2
echo "Initializing"
sleep 2
echo "Server hacking module is loading"
sleep 2
echo "Server hacking module is ready"
sleep 2
echo "Hack module is starting in 5 seconds"
sleep 1
echo "4 seconds"
sleep 1
echo "3 seconds"
sleep 1
echo "2 seconds"
sleep 1
echo "1 seconds"
sleep 1
ping -c 3 $1
sleep 2
netstat
sleep 1
findsmb
sleep 1
for i in {1..10000}
do
number1=$RANDOM
let "number1 %= ${#str}"
number2=$RANDOM
let "number2 %=4"
echo -n -e "\033[1m${color[$number2]}${str:number1:1}\0330m"
done
sleep 3
echo "$1 succesfully hacked!"
sleep 1
echo "You are a terrific hacker dude :O"