Hack Forums
Save WP login form data to a .txt document on form submission - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Whitehat • Blue Team • Defensive Security (https://hackforums.net/forumdisplay.php?fid=448)
+---- Forum: Pentesting and Forensics (https://hackforums.net/forumdisplay.php?fid=231)
+---- Thread: Save WP login form data to a .txt document on form submission (/showthread.php?tid=6188063)



Save WP login form data to a .txt document on form submission - Th3Gh05t - Jan 7, 2022

Hi Friends

I'm looking for a snippet that enables me to get the data from a WordPress login form added to a .txt document every time a user logs in from the /wp-login.php page. Once the .txt document is created, the code/snippet should 'capture' the username/email and password submitted through the /wp-login.php form every time a user logs in. I hope it makes sense so far. So for example, once this snippet is added somewhere on the website, I go to the /wp-login.php page, log in, and the snippet captures my username/email and password and adds them to the .txt document. And it does this every time someone logs in, updating the same .txt document.


Thanks A11