Device Hacked is a lighthearted cyber-awareness prank page. It simulates a dramatic "hacking in progress" sequence β Matrix rain, a glitchy typewriter title, and a scrolling fake terminal log β before revealing that it was all a harmless demo, paired with a real reminder about phishing and link safety. Built to send to friends and family as a fun way to test (and teach) digital street-smarts.
- Features
- Live Demo
- Technologies
- Project Structure
- How It Works
- Installation
- Ethical Use
- Future Improvements
- Contributing
- License
- Author
β
π© Matrix Rain Background β animated falling-character effect rendered on <canvas>
β β¨οΈ Glitchy Typewriter Heading β "DEVICE HACKED" types itself out with a pulsing red glow
β π₯οΈ Fake Terminal Log β a sequence of ominous, fictional system messages scrolls in like a live intrusion
β π Glitch Sound Effect β plays automatically on the first user interaction (click, keypress, or scroll)
β π Awareness Reveal β after the scare, a clear "Just Kidding" message explains it was a simulation, with a real safety tip about not trusting unknown links
β π’ One-Click Share β copies a ready-made prank/share message (with the page link) straight to the clipboard
β Fully Responsive β scales cleanly from desktop down to mobile
β Zero Dependencies β pure HTML, CSS, and vanilla JavaScript
https://dhruvpandit46.github.io/awarness/
- HTML5
- CSS3 (glow/pulse animations, responsive layout)
- JavaScript (Vanilla, ES6)
- Canvas API (Matrix rain animation)
- Web Audio (
<audio>element for the glitch sound effect) - Clipboard API (
navigator.clipboard)
awarness/
β
βββ index.html
βββ style.css
βββ script.js
βββ glitch.mp3
βββ README.md
- On load, a
<canvas>element continuously renders falling green characters in classic Matrix style behind the content. - The heading "DEVICE HACKED" types itself out letter by letter with a pulsing red text-glow animation.
- A fake terminal log area prints a sequence of dramatic (entirely fictional) intrusion messages one line at a time, auto-scrolling as it fills up.
- On the very first click, keypress, or scroll, the glitch sound effect plays once β timed to land alongside the unfolding "hack."
- After a short delay, the reveal panel fades in, clearly explaining that the whole thing was a harmless demo, and includes a genuine reminder: never trust links just because they appear to come from someone you know.
- Clicking Share copies a pre-written prank message (with the page's URL) to the clipboard, ready to paste and send to the next person.
Clone the repository
git clone https://github.com/dhruvpandit46/awarness.gitGo inside the project
cd awarnessRun
Simply open index.html in your browser. No build step, no dependencies β just make sure glitch.mp3 stays alongside index.html for the sound effect to play.
This project is intended purely as a playful, consensual awareness tool among friends and family β not as a way to genuinely frighten, deceive for gain, or target anyone without their willingness to be pranked. The reveal message and safety tip are a core part of the experience, not an afterthought: the goal is a quick laugh followed by a real, useful lesson about phishing and social engineering.
Please don't strip out the reveal panel or use this to imitate real malware behavior convincingly enough to cause genuine distress.
- Customizable target name in the fake logs (e.g. "Hi [Name], your device...")
- Optional "skip the scare" button for accessibility
- A short in-page explainer on common phishing red flags after the reveal
- Multiple log/theme variants (e.g. "account breach," "camera access") to keep repeat pranks fresh
- Analytics-free share tracking (local counter only) for fun
Contributions are welcome.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push your branch
- Open a Pull Request
Licensed under the MIT License.
MIT Β© 2026 Dhruv Pandit.
See the LICENSE file for full license details.
Dhruv Pandit
GitHub β https://github.com/dhruvpandit46
LinkedIn β https://linkedin.com/in/dhruv-pandit-755786326
Instagram β https://instagram.com/dhruv_pandit2007
If you found this project useful, please consider giving it a β on GitHub. It helps support future development.