05-21-2012, 08:25 PM
Assalamualaikum Wr.Wb
berhubung ane baru belajar bash, jadi mohon maaf kalo source nya kurang menarik. cuma mau share & di kembangin sama2
berhubung ane baru belajar bash, jadi mohon maaf kalo source nya kurang menarik. cuma mau share & di kembangin sama2
Code:
#!/bin/bash
#name redc.sh
#this is opensource
#email : [email protected]
clear
##################################################
#color
##################################################
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;34m'
cyan='\e[0;36m'
red='\e[1;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightgreen='\e[1;34m'
lightblue='\e[1;34m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
{
echo -e $blue "====================================" #please jangan di apus intro gue
echo -e $red"
###### ####### ###### #####
# # # # # # #
# # # # # #
###### ##### # # #
# # # # # ### #
# # # # # ### # #
# # ####### ###### ### ##### " #please jangan di apus intro gue
echo -e $blue "" #please jangan di apus intro gue
echo -e $blue "RED Connector" #please jangan di apus intro gue
echo -e $blue "[C] COPYRIGHT koecroet" #please jangan di apus intro gue
echo -e $blue "This tools can help you connect to hotspot that use wpa encrypted"
echo -e $blue "====================================" #please jangan di apus intro gue
}
{
echo ""
echo -e $yellow "--==now scan hotspot==--"
echo ""
echo -ne $lightcyan "input your interface : "
read interface
clear
echo -e $yellow "--==h0tsp0t D3t3ct3d==--" && iwlist $interface scan |grep ESSID
echo -ne $lightcyan "input your essid : "
read ssid
echo ""
echo -ne $lightcyan "passhprase of essid : "
read password
echo ""
wpa_passphrase $ssid $password > /etc/wpa_supplicant.conf
wpa_supplicant -Bd -Dwext -i $interface -c /etc/wpa_supplicant.conf
dhclient && clear
echo -e $yellow "CONNECTED !!!"
echo ""
echo "" && ifconfig $interface |grep inet
echo ""
echo "examples : google.com"
echo -n "testing connection : "
read tesping
ping -c 3 $tesping
echo ""
echo ""
echo "----------========== Regards k03cr03t ==========----------"
}
[shcode=This_site_xss-ed]