Quantcast
Channel: Simple Password – LeakedIn
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

$
0
0
Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: cout << "Enter the username: "; getline (cin,username); for(i=0;i<3;i++) { if(username == usernames[i]) passwordPrompt(); } } void passwordPrompt() { int x; string inputPassword; string password = "UoLJGbkNzE"; cout << "Enter the password: "; getline (cin,inputPassword); if(inputPassword == password) { cout << "Login successful, Welcome commander." << endl; }else { for(x=1;x<4;x++) […]

Viewing all articles
Browse latest Browse all 2663

Trending Articles