Earlier last week we had retweeted the tweet of a hacker having online handle ( @cyberzeist2 ) that contains the 0day Vulnerability on FBI website…
First Happy New Year to all our readers, hope this year will be great for you all. On the Eve of New Year, we have categorized some of the amazing,…
Security researcher have found a three critical zero-day vulnerability on latest PHP 7, which allows and attacker to take full control over the w…
One of the most awaiting game from quarter of 2016 "Super Mario Run" is now available for pre-registrations for Android users on plays…
Security firm CrowdStrike who has been appointed for investigating DNC hack incidence have mentioned on there latest report that they have got a…
Researchers at Kaspersky Lab have found a new or a advanced variants of mobile malware 'Faketoken', that encrypts all your data including …
Earlier today, Pakistani hackers from Pak Cyber Attackers have targeted Google Bangladesh domain and shown the deface page on www.google.co.bd dom…
A hacker going with the online handle "Cryptolulz666" had hacked India's one of the top college IIT Bombay website and leaked use…
As Reliance Jio is making headlines from last half year by providing free 4G service in a country, and now the free service has been extended to …
Yesterday, Shopify discussion forums platform named as Shopify E-commerce University system had been accessed by unknown cyber crooks with comprom…
const config = {
safeID = 'safelink',
safeURL: ['/p/safelink.html'],
timer: 15,
redirect: true,
text: {
wait: 'The link will appear in 0 second',
direct: 'You’ll be redirected to the download link in 0 second',
shifted: 'Redirecting... [link] if you’re not redirected automatically.',
click: 'Click here',
btn: 'Direct to link.'
}
};
(() => {
const randomURL = url => url[Math.floor(Math.random() * url.length)];
const safeLink = () => config.safeURL.some(path => location.pathname.endsWith(path));
const safeMessage = (text, time) => {
const [start, end] = text.split('0');
return `${start} ${time} ${end}.
`;
};
const outboundLinks = () => {
const links = document.querySelectorAll('a.safeurl[href]');
if (!links.length) return;
links.forEach(anchor => {
const encoded = encodeURIComponent(btoa(anchor.href));
Object.assign(anchor, {
href: `${location.origin}${randomURL(config.safeURL)}?go=${encoded}`,
target: '_self',
rel: 'noopener'
})
})
};
const handleLink = () => {
const params = new URLSearchParams(location.search);
const encoded = params.get('go');
if (!encoded) return;
const link = atob(decodeURIComponent(encoded))
params.delete('go');
history.replaceState({}, '', location.pathname + (params.toString() ? '?' + params : ''));
let counter = config.timer;
const label = config.redirect ? config.text.direct : config.text.wait;
const box = document.getElementById(config.safeID);
if (!box) return;
box.removeAttribute('hidden');
box.innerHTML = safeMessage(label, counter);
const countdown = setInterval(() => {
counter--;
box.innerHTML = safeMessage(label, counter);
if (counter > 0) return;
clearInterval(countdown);
if (config.redirect) {
box.innerHTML = `${config.text.shifted.replace('[link]', `${config.text.click}`)}
`;
location.href = link;
} else {
box.innerHTML = '';
const btn = document.createElement('a');
//btn.className = 'btn';
btn.href = link;
btn.target = '_blank';
btn.rel = 'nofollow noopener noreferrer';
btn.innerHTML = `${config.text.btn}`;
box.appendChild(btn);
}
}, 1000)
};
safeLink() ? handleLink() : outboundLinks();
})();