Quantcast
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: #include<iostream> #include<string> using namespace std; int main() {string name="name"; string password="pass"; string s,h; cout<<"enter your name"; cin>>s; if(s==name) {cout<<"enter your password" cin>>h; if(h==password) cout<<"log in"; else cout<<"wrong password" }else cout<<"wrong name"; return 0;} Source: http://pastie.org/pastes/8909219/download

Viewing all articles
Browse latest Browse all 2663

Trending Articles