Skip to content

linkperisi.com bypass #1537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions src/bypasses/linkperisi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import BypassDefinition from './BypassDefinition.js'

(async () => {
// Find "DOGRULAMAYI BASLAT" button
const btn = Array.from(document.querySelectorAll('a.btn-primary'))
.find(el => el.textContent.includes("Doğrulamayı Başlat"));
if (!btn) {
return;
}

// From the URL get domain only
function extractDomainFromUrl(urlStr) {
try {
const url = new URL(urlStr);
const q = url.searchParams.get('q');
if (!q) return null;

let parts = q.replace(/(\+|%20|%%)/g, ' ').split(/\s+/).map(w => w.replace(/^site:/i, ''));

for (const part of parts) {
const dParts = part.split('.');
if (dParts.length >= 2) {
return dParts.slice(-2).join('.');
}
}
return null;
} catch {
return null;
}
}

const domain = extractDomainFromUrl(btn.href);
if (!domain) {
return;
}

console.log("Found:", domain);

// Sending Fetch on content mode cuz we dont want CORS
async function doFetch(domain) {
try {
const res = await fetch(`https://${domain}/Backend/Process.php?type=Add`, {
method: 'POST',
headers: {
"accept": "application/json, text/javascript, */*; q=0.01",
"accept-language": "tr,en;q=0.9,en-GB;q=0.8,en-US;q=0.7",
"priority": "u=1, i",
"sec-ch-ua": "\"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"138\", \"Microsoft Edge\";v=\"138\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-requested-with": "XMLHttpRequest"
},
referrer: `https://${domain}/`,
body: null,
credentials: "include"
});
const text = await res.text();
} catch (e) {
console.error(`Fetch err (${domain}):`, e);
}
}

// with WWW version
await doFetch(domain);
setTimeout(() => doFetch(`www.${domain}`), 31);

})();
Loading