Dnc Posted May 8, 2023 Share Posted May 8, 2023 Hey folks, need some guidance on how to determine a user’s password from a php code. This is part of a cybersecurity capture the flag challenge and nothing malicious. It is a wordpress site. Code snippet looks like: Quote Link to comment https://forums.phpfreaks.com/topic/316269-retrieve-user%E2%80%99s-password-as-part-of-a-cybersecurity-challenge/ Share on other sites More sharing options...
ginerjm Posted May 8, 2023 Share Posted May 8, 2023 I have no solution for you but I do have a suggestion. When posting our code for people to loo at and possibly alter for you, please post is AS CODE and not as picture of code. Use the <> icon to create a window to post it in. Quote Link to comment https://forums.phpfreaks.com/topic/316269-retrieve-user%E2%80%99s-password-as-part-of-a-cybersecurity-challenge/#findComment-1608182 Share on other sites More sharing options...
Solution kicken Posted May 8, 2023 Solution Share Posted May 8, 2023 Seems the password is being written in clear text to a file. All you need to do then is read that file. Quote Link to comment https://forums.phpfreaks.com/topic/316269-retrieve-user%E2%80%99s-password-as-part-of-a-cybersecurity-challenge/#findComment-1608186 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.