From 341fa013159f5d407f16214ee00d7c1ac6bf8cb5 Mon Sep 17 00:00:00 2001 From: itsarraj0test Date: Fri, 18 Oct 2024 14:53:58 +0530 Subject: [PATCH] Create example.js --- example.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 example.js diff --git a/example.js b/example.js new file mode 100644 index 0000000..3a3567a --- /dev/null +++ b/example.js @@ -0,0 +1,19 @@ +// example.js + +// Hardcoded API key (leaked secret) +const apiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"; // Stripe test API key + +// Hardcoded password (leaked secret) +const dbPassword = "p@ssw0rd123"; // Plaintext password + +// Hardcoded secret key (leaked secret) +const secretKey = "s3cr3tK3yToTestTheScan"; // Example secret key + +// AWS Access Key (leaked secret) +const awsAccessKeyId = "AKIAIOSFODNN7EXAMPLE"; // Example AWS access key +const awsSecretAccessKey = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"; // Example AWS secret access key + +// Database connection string (leaked secret) +const connectionString = "mongodb://username:p@ssword123@localhost:27017/mydatabase"; // Example MongoDB connection string + +console.log("This file contains some sensitive information that should not be leaked.");