95 lines
2.0 KiB
Plaintext
95 lines
2.0 KiB
Plaintext
|
Script started on Thu 24 Feb 2022 10:37:55 AM CST
|
|||
|
[?1034hbash-4.2$ ./vulnerable_capp
|
|||
|
|
|||
|
Enter the password now: aaaa
|
|||
|
|
|||
|
Login failure
|
|||
|
|
|||
|
suppliedPassword: aaaa
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 4
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ ./vulnerable_capp
|
|||
|
|
|||
|
Enter the password now: aaaaabbbbbccccc
|
|||
|
|
|||
|
Login successful
|
|||
|
|
|||
|
suppliedPassword: aaaaabbbbbccccc
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 15
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ perl -e 'print "a"x90' | ./vulnerable_capp
|
|||
|
|
|||
|
Enter the password now:
|
|||
|
Login failure
|
|||
|
|
|||
|
suppliedPassword: aaaaaaaaaaaaaaaaaaa
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 19
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ ./protected_capp
|
|||
|
|
|||
|
Enter the password now: aaaa
|
|||
|
|
|||
|
Login failure
|
|||
|
|
|||
|
suppliedPassword: aaaa
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 4
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ ./protected_capp
|
|||
|
|
|||
|
Enter the password now: aaaabbbbcccc
|
|||
|
|
|||
|
Login failure
|
|||
|
|
|||
|
suppliedPassword: aaaabbbbcccc
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 12
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ ./protected_capp
|
|||
|
|
|||
|
Enter the password now: aaaaabbbbbccccc
|
|||
|
|
|||
|
Login successful
|
|||
|
|
|||
|
suppliedPassword: aaaaabbbbbccccc
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 15
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ perl -e 'print "a"x90' | ./protected_capp
|
|||
|
|
|||
|
Enter the password now:
|
|||
|
Login failure
|
|||
|
|
|||
|
suppliedPassword: aaaaaaaaaaaaaaaaaaa
|
|||
|
sizeof(suppliedPassword) = 20
|
|||
|
strlen(suppliedPassword) = 19
|
|||
|
correctPassword: aaaaabbbbbccccc
|
|||
|
sizeof(correctPassword) = 20
|
|||
|
strlen(correctPassword) = 15
|
|||
|
|
|||
|
bash-4.2$ exit
|
|||
|
exit
|
|||
|
|
|||
|
Script done on Thu 24 Feb 2022 10:41:07 AM CST
|