NAS.ub auto-login (termauth)

Melengkapi post sebelumnya tentang auto-login ke NAS.ub, ada tambahan form yang harus dikirim, yaitu: termAuth.
post sebelumnya membahas tentang form webAuth.

Singkat cerita ada 2 paket yang harus dikirim, tapi aku bakal cuma tulis paket untuk termAuth di post ini (biar yang satunya banyak yang baca, hehe). Paket termAuth berisi:
POST /termsAuth/index.htm?www.google.com/search?q=a&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-nightly HTTP/1.1
Host: 175.45.184.173
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120314 Firefox/14.0a1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http://175.45.184.173/termsAuth/index.htm?www.google.com/search?q=a&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=firefox-nightly
Content-Type: application/x-www-form-urlencoded
Content-Length: 38

check_id=on&submit=Continue&clause=yes

Skrip shell perlu diubah sedikit menjadi:
#!/usr/bin/bash
while [ 1 ]; do cat termauth | nc nas.ub.ac.id 80; cat webauth | nc nas.ub.ac.id 80; sleep 200; done

Done!

Leave a Reply

Your email address will not be published. Required fields are marked *