We speak to Sparkle Redberry, who explains they had at one point by mistake saved there credentials “password” and updated there git project with it.
Later on, Sparkle Redberry removed the password and re-updated there git project.
However, was unsure if you were still able to find it or not, even so, they updated their git project with it removed, you’re given a hint to a git page “My simply Git Cheatsheet” and to be honest, this is all you need.
“Coalbox again, and I’ve got one more ask.
Sparkle Q. Redberry has fumbled a task.
Git pull and merging, she did all the day;
With all this gitting, some creds got away.
Urging – I scolded, “Don’t put creds in git!”
She said, “Don’t worry – you’re having a fit.
If I did drop them then surely I could,
Upload some new code done up as one should.”
Though I would like to believe this here elf,
I’m worried we’ve put some creds on a shelf.
Any who’s curious might find our “oops,”
Please find it fast before some other snoops!”
We need to “Find Sparkle’s password, then run the run to answer tool”.
First thing is the first cd to the git project folder on the local system and use “git log -p”. Note: Maybe there is a more natural method, but I went with this as there wasn’t much to look.
Once you run “git log -p” you get a bunch of text, it shows what changes where made and I just went down the list until I saw something that looked like a password.
Not too far down I came across a MongoDB URL which was User: Pass, copying the password “twinkletwinkletwinkle” and then running “/home/elf/./runtoanswer” with the password, we complete the challenge.