Skip to content

Instantly share code, notes, and snippets.

@burkeholland
Last active October 18, 2020 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burkeholland/7dcbe98a76bd2ff324282a097015564c to your computer and use it in GitHub Desktop.
Save burkeholland/7dcbe98a76bd2ff324282a097015564c to your computer and use it in GitHub Desktop.
// This is a test malicious script
// It does not actually do anything malicious
const fs = require("fs").promises;
async function main() {
const dirs = await fs.readdir("/");
dirs.forEach((dir) => {
console.log(dir);
});
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment