bjut校園網自動登錄


主要是懶得每次上網都需要打開網頁=。=

logon.bat

@echo off
mode con: cols=40 lines=15
color 0a
title  登錄ing...
rem 獲得IP
wget "https://lgn6.bjut.edu.cn/V6?https://lgn.bjut.edu.cn" --post-data="DDDDD=學號&upass=密碼&v46s=0&v6ip=&f4serip=172.30.201.10&0MKKey=" -O ip.html
ping 127.0.0.1 -n 2 >nul

rem 登錄 不顯示結果--quiet
set user="DDDDD=學號&upass=密碼&0MKKey=Login&v6ip="
@for /f "delims=" %%t in ('lua ip.lua') do set ip=%%t
wget "https://lgn.bjut.edu.cn" --post-data=%user%%ip% -O ip.html
ping www.baidu.com
exit

ip.lua

local file = io.open("ip.html", "r")
local html = file:read("*a")
file:close()
local i, j = string.find(html, "%w+:%w+:%w+:%w+:%w+:%w+:%w+:%w+")
print(string.sub(html, i, j))



@echo off
mode con: cols=40 lines=15
color 0a
title  下線ing...
rem 下線
wget "https://lgn.bjut.edu.cn/F.htm" --delete-after
ping www.baidu.com
exit
利用wget( https://eternallybored.org/misc/wget/
發送post請求。

登錄是不需要驗證的,那么暴力破解別人的賬號也是很輕松的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM