@ojas-sta/qalify-plus 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/package.json +3 -2
- package/src/banner.js +22 -0
- package/src/generic.js +4 -0
- package/src/main.js +1 -0
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="assets/logo.png" alt="Qalify+ Logo" width="400">
|
|
3
|
+
</div>
|
|
2
4
|
|
|
5
|
+
# Qalify+ & Vulnerability Simulator
|
|
3
6
|
An educational toolkit demonstrating how modern web quizzes can be analyzed and automated using AI (Gemini 2.5 Flash), DOM extraction, and OCR (Tesseract.js).
|
|
4
7
|
|
|
5
8
|
This project explores the security boundaries of online assessments by highlighting how easily DOM-based quizzes can be read, and how even obfuscated (Canvas/Image-based) questions can be bypassed using automated screenshots and Optical Character Recognition (OCR).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojas-sta/qalify-plus",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "An advanced, AI-powered educational vulnerability simulator and overlay.",
|
|
5
5
|
"main": "src/generic.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"url": "git+https://github.com/Ojas-sta/ai-quiz-assistant.git"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
+
"postinstall": "node src/banner.js"
|
|
16
17
|
},
|
|
17
18
|
"keywords": [],
|
|
18
19
|
"author": "Ojas-sta",
|
package/src/banner.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const ASCII_ART = `
|
|
2
|
+
█░ ▓ ░▒ ▒█
|
|
3
|
+
▓▒▓ ▒▒▒
|
|
4
|
+
▓ ▒ ░ ▓
|
|
5
|
+
▒ █░ ▒█ ▓
|
|
6
|
+
█ ░ ▓ ░▓███████▓░ ██▒ ▒██ ▒████▒
|
|
7
|
+
▒ ▓ ▓ ░ ░ ▒██▒░░░░░▒██▓ ██▒ ██▒
|
|
8
|
+
█ ▓ ▓▓ ▓▓ ▒ ▓ ▓██ ███ ███████▓ ██▒ ░██ ███████▒ ██▒ ▓██ ▓█▓
|
|
9
|
+
██░ ░░ ▒ ░▒▒ ▓██ ███ ▓██ ██▒ ░██ ██▓ ▒██ ██░ ▓█▓
|
|
10
|
+
▓ ▓ ▒ ░ ▓ ▓██ ███ ▒▓▓▓▓███ ██▒ ░██ ██▒ ███ ██▓ █████████
|
|
11
|
+
▓ ▓ ░ ▒ ▒░▓ ▓██ ███ ███░░░░▓██ ██▒ ░██ ██▒ ██▒▓██ ▓█▓
|
|
12
|
+
▓ ▓ ▒ ██ ░ ▒ ▒ ▓██ ██▓ ███ ▒██ ██▒ ░██ ██▒ ████ ▓█▓
|
|
13
|
+
▓ ░ ▒ ▓█████████▓ ██████▒██ ██▒ ░██ ██▒ ██
|
|
14
|
+
▓ ░ ▒ ██▓ ██▓
|
|
15
|
+
▒ ░ ▒ ██▓ ██▓
|
|
16
|
+
▓ ▓▓▒
|
|
17
|
+
▓ ▒▒ ▒
|
|
18
|
+
░▒▓▒▒▒▒▓▒
|
|
19
|
+
▓▓▓▓
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
console.log(ASCII_ART);
|
package/src/generic.js
CHANGED
|
@@ -5,6 +5,7 @@ const fs = require('fs');
|
|
|
5
5
|
|
|
6
6
|
const globalEnvPath = path.join(os.homedir(), '.ai-quiz-assistant.env');
|
|
7
7
|
require('dotenv').config();
|
|
8
|
+
require('./banner');
|
|
8
9
|
require('dotenv').config({ path: globalEnvPath }); // Load global keys if they exist
|
|
9
10
|
|
|
10
11
|
const { chromium } = require('playwright');
|
|
@@ -53,6 +54,9 @@ async function main() {
|
|
|
53
54
|
console.log(`✅ Saved keys permanently to ${globalEnvPath}\n`);
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
console.log(`[Qalify+] Booting up... please wait 3 seconds.`);
|
|
58
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
59
|
+
|
|
56
60
|
console.log(`[Qalify+] Launching browser to navigate to: ${url}`);
|
|
57
61
|
const browser = await chromium.launch({ headless: false });
|
|
58
62
|
const context = await browser.newContext({ viewport: null });
|