diff --git a/deno.json b/deno.json index 465e7ee..6924d1f 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@boomzero/quicksubmit", - "version": "1.5.3", + "version": "1.5.4", "exports": "./index.ts", "compilerOptions": { "lib": ["ESNext", "dom"], diff --git a/index.ts b/index.ts index e3d6fd1..2fe7bbe 100644 --- a/index.ts +++ b/index.ts @@ -28,7 +28,7 @@ const program = new Command(); program .name("quickSubmit") - .version("v1.5.1") + .version("v1.5.4") .argument("[file]", "File to submit", "main.cpp") .option( "-p, --pid ", @@ -97,7 +97,8 @@ program "Cookie": "PHPSESSID=" + PHPSESSID, }, "referrer": "https://www.xmoj.tech/loginpage.php", - "body": "user_id=zhuchenrui2&password=" + + "body": "user_id=" + encodeURIComponent(config.username) + + "&password=" + MD5(config.password).toString() + "&submit=&csrf=" + csrf, "method": "POST", "mode": "cors", diff --git a/package.json b/package.json index 31a6920..dcfe4e1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "crypto-js": "^4.2.0", "jsdom": "^23.0.1" }, - "version": "1.5.1", + "version": "1.5.4", "description": "Submit code to XMOJ.", "main": "index.ts", "scripts": {