Skip to content

Commit

Permalink
Create example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itsarraj0test authored Oct 18, 2024
1 parent 05d780c commit c8637f0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
@@ -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.");

0 comments on commit c8637f0

Please sign in to comment.