GithubHelp home page GithubHelp logo

hsuantinglu / chiaotung-auth Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

National Chiao Tung University dorm network authentication daemon

License: GNU General Public License v3.0

nctu auth network dorm

chiaotung-auth's People

Contributors

moshiba avatar

Watchers

 avatar  avatar

chiaotung-auth's Issues

Some information that may help

I wrote a bash script as below to help me login from the command line of a Linux machine.

#!/bin/bash

# Login NCTU
UA="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0"

BASE_URL="https://dorm.nctu.edu.tw"
PATH="/cgi-bin/ace_web_auth.cgi?web_jumpto=&orig_referer=www.google.com"

read -p "Student ID : " username
read -p "NCTU Portal Password : " password

FORMDATA="username=${username}&userpwd=${password}"

/usr/bin/curl -H "${UA}" -d "${FORMDATA}" -X POST -vv -L -o index.html "${BASE_URL}${PATH}"

# Complete login
PATH2="/login_online_detail.php?show_portal=1&orig_referer=www.google.com&login_page="

/usr/bin/curl -L -o index.html -vv "${BASE_URL}${PATH2}"

Maybe you can add the auto re-login part based on the method described in the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.