[TUT] Exploiting XSS Vulnerabilities Using BeEF [Tutorial]
Hello Brothers. As I have seen there is not a tutorial about XSS exploiting via BeEF so I thought I would help you by bringing this.
This is for the people that claim XSS finds are useless and nothing can be exploited further than a simple JavaScript alert pop up. For those of you who do not already know today I will introduce you to a nifty tool called BeEF. It has a user friendly interface controlled via browser which is nice as its not just command line orientated. Start by first loading it from your box.
This is for the people that claim XSS finds are useless and nothing can be exploited further than a simple JavaScript alert pop up. For those of you who do not already know today I will introduce you to a nifty tool called BeEF. It has a user friendly interface controlled via browser which is nice as its not just command line orientated. Start by first loading it from your box.
Code:
$./beef
This tool is also found on Backtrack.
So we run it and are faced with this:
So we run it and are faced with this:
This pretty much just starts the server and has it ready for action. Now go to:
Code:
IP/beef/
Pretty self explanatory and as you see they provide you with a default login password. Once your satisfied with that click "apply config" and you will be logged into the BeEF interface with all of its capability's just waiting to catch zombies.
Play around and get used to the different features. I am not going to explain them. To start catching zombies you need to trigger the beefmagic.js.php file in the victims browser. This acts like a silent browser exploit. It has to be triggered via XSS though. Below is an example of how your evil script should look:
Play around and get used to the different features. I am not going to explain them. To start catching zombies you need to trigger the beefmagic.js.php file in the victims browser. This acts like a silent browser exploit. It has to be triggered via XSS though. Below is an example of how your evil script should look:
Once you have a zombie it will look like below:
From here its almost like a Trojan horse client. You can run commands and even Metasploit exploits against your victim. Other fun things include finger printing their machine. Creating pop ups to scare them. Capturing their logs
and even using their browser as a proxy. So as you can see A LOT Of damage can be caused via XSS.
Use your imagination and this tool to the best of its capability's. It might prompt you to take these 'easy' level XSS challenges a step further.
Hope you's enjoyed and maybe learned something new.
Use your imagination and this tool to the best of its capability's. It might prompt you to take these 'easy' level XSS challenges a step further.
Hope you's enjoyed and maybe learned something new.
Thanks ![[hmmm]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_syWCoSmqjZspLbsuWOd93g35xuCKYALKTnH9txJOjdnELpMOHR97wb_WzHcc4i5LUUNC07Ej-M5xpoj44DUY2sr_Hp49iVSBhhBaXmZVHhvTglZikykWp1=s0-d)
