Created
September 6, 2020 16:03
-
-
Save takidog/de17988a6b4d96f6dd3d01117558f145 to your computer and use it in GitHub Desktop.
高科大 學生安全教育訓練 影片播放鎖定破解
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var user = "110...學號"; | |
//add jQuery | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'https://code.jquery.com/jquery-3.5.1.min.js'; | |
document.head.appendChild(script); | |
//calc user base64 Data "username%%yyyy-mm-dd" | |
var base64Data = btoa(`${user}%%${new Date().getUTCFullYear()}-${('0'+ (new Date().getUTCMonth()+1)).substr(-2)}-${('0'+ new Date().getUTCDay()).substr(-2)}`); | |
console.log(base64Data); | |
for(i=0;i<50;i++){ | |
await jQuery.post("http://eshc.osha.web.nkust.edu.tw/student/yv2",`{"user_base":"${base64Data}"}`); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用者應自行負責
登入後 在教育影片播放頁面中執行此段js
可透過F12// Developer console輸入
部分報錯為JQuery 尚未load , 可以在輸入一次