Skip to content

Instantly share code, notes, and snippets.

View ROF13ThFloor's full-sized avatar
🏠
Working from home

Rof13thfloor ROF13ThFloor

🏠
Working from home
View GitHub Profile
@pourmand1376
pourmand1376 / sharif_login.sh
Last active May 1, 2024 07:03
Sharif Login
function sharif_login
{
curl -d "username=$1&password=$2" -X POST "https://net2.sharif.edu/login" > /dev/null
curl -s https://net2.sharif.edu/status | grep -o '<td>.*</td>'
sleep 1s # To See login status
}
function sharif_ip
{
# from ping net2.sharif.edu
# this is written since sometimes DNS server doesn't work!