-
Notifications
You must be signed in to change notification settings - Fork 0
/
Personal-Profile.sh
executable file
·35 lines (30 loc) · 1.73 KB
/
Personal-Profile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SSH Servers
alias networkLabServer='ssh [email protected]'
alias raspberryPi='ssh [email protected]'
# Wake On LAN (Over LAN !)
alias homeServerWakeOn='wakeonlan -i goldenstarc.ir -p 1234 94:de:80:2f:ff:2b'
# Locations
devLocations="/Users/"$(whoami)"/Development"
appLocation=$devLocations/Apps
configsLocaion=$devLocations/Configs
# Custom Directories
alias dev='cd $devLocations/'
alias software='cd $devLocations/Software'
alias hardware='cd $devLocations/Hardware'
alias msfmodule='cd /opt/metasploit-framework/embedded/framework/modules'
# Ferdowsi Hotspot User
alias fum_hotspot_logout='curl -s -G https://hotspot.um.ac.ir/logout > /dev/null && printf "\e[31;1m%s\n\e[0m" "FUM Hotspot Logged Out" || printf "\e[31;1m%s\n\e[0m" "Could not resolve host: hotspot.um.ac.ir"'
alias fum_hotspot_login_hamid='ChaeckHotspotInternetConnection; curl -s -d "password=c4c696ae0e63a98932e25c6f64bde5a8&username=9412101168" -X POST https://hotspot.um.ac.ir/login > /dev/null && printf "\e[33;1m%s\n\e[0m" "User Hamid Logged In" || printf "\e[31;1m%s\n\e[0m" "Could not resolve host: hotspot.um.ac.ir"'
alias fum_hotspot_login_shahla='ChaeckHotspotInternetConnection; curl -s -d "password=c7187c42b3be68cde72b2b4e2bb37a4c&username=9412101099" -X POST https://hotspot.um.ac.ir/login > /dev/null && printf "\e[33;1m%s\n\e[0m" "User Shahla Logged In" || printf "\e[31;1m%s\n\e[0m" "Could not resolve host: hotspot.um.ac.ir"'
alias hhamid=fum_hotspot_login_hamid
alias hshahla=fum_hotspot_login_shahla
alias hlogout=fum_hotspot_logout
function ChaeckHotspotInternetConnection(){
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
printf "\e[32;1m%s\n\e[0m" "Already Coonected"
fum_hotspot_logout
else
printf "\e[31;1m%s\n\e[0m" "No Internet Coonection"
fi
}