I was in need of a backdoor to add to my WordPress site, so I came up with this script. I am just leaving it here for anyone who might need it.
The script goes in fun