Author Topic: Hack any browser using BeEF  (Read 15856 times)

0 Members and 2 Guests are viewing this topic.

Offline parad0x

  • VIP
  • Royal Highness
  • *
  • Posts: 638
  • Cookies: 118
    • View Profile
Hack any browser using BeEF
« on: January 16, 2013, 04:49:45 am »
 What is BeEF?

BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser.Amid growing concerns about web-borne attacks against clients, including mobile clients, BeEF allows the professional penetration tester to assess the actual security posture of a target environment by using client-side attack vectors. Unlike other security frameworks, BeEF looks past the hardened network perimeter and client system, and examines exploitability within the context of the one open door: the web browser. BeEF will hook one or more web browsers and use them as beachheads for launching directed command modules and further attacks against the system from within the browser context.


Step 1: Now.lets know how to use it. First we have to install it.So,in backtrack, navigate to Applications -> BackTrack -> Exploitation Tools -> Social Engineering Tools -> BEEF XSS Framework -> and select  BeEF Installer.

Step 2: After you have successfully installed it.Navigate to Applications -> BackTrack -> Exploitation Tools -> Social Engineering Tools -> BEEF XSS Framework -> and select BeEF  to start the server.The username and password are beef.
Step 3: Copy the highlighted link and paste in into your browser's url bar.





Step 4: Now send the  link to your victim(don't forget to shorten this ;) ).
You'll find the link in the first para after signing in into the BeEF.




Once the user opens the link sent by us.We'll got his browser.
The compromised browser will be shown in the left hand pane.Like this one...Enjoy!! :) :)

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Hack any browser using BeEF
« Reply #1 on: January 16, 2013, 05:19:44 am »
Thanks. I remember toying around with BeEF on Ubuntu a while ago. Tutorial could be more detailed, but decent job.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline parad0x

  • VIP
  • Royal Highness
  • *
  • Posts: 638
  • Cookies: 118
    • View Profile
Re: Hack any browser using BeEF
« Reply #2 on: January 16, 2013, 06:03:55 am »
Thanks. I remember toying around with BeEF on Ubuntu a while ago. Tutorial could be more detailed, but decent job.
Which part was left by me,vezzy?
Be more specific.

Offline kenjoe41

  • Symphorophiliac Programmer
  • Administrator
  • Baron
  • *
  • Posts: 990
  • Cookies: 224
    • View Profile
Re: Hack any browser using BeEF
« Reply #3 on: January 16, 2013, 10:38:40 pm »
seeing the different levels of expertise and experience we all have here, he meant that the tut could be more verbose to cover us all. all in all it was a great tut. keep up the spirit.
If you can't explain it to a 6 year old, you don't understand it yourself.
http://upload.alpha.evilzone.org/index.php?page=img&img=GwkGGneGR7Pl222zVGmNTjerkhkYNGtBuiYXkpyNv4ScOAWQu0-Y8[<NgGw/hsq]>EvbQrOrousk[/img]

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Hack any browser using BeEF
« Reply #4 on: January 16, 2013, 11:33:34 pm »
BeEF seems pretty local. Meaning, be on the same network for this to work. Unless you did some port forwarding. In which case I would deff change the default port and un/pass. Since BeEF is a pen tool, I doubt rigorous fuzzing or exploiting has been done against it, so it can be vulnerable especially for outside attacks with the port forwards.

I do, however, like the hooking. Being just browser does by-pass a lot of other security layers, like NAT, firewalls, AVs, etc... With the new Java zero-day and a module for BeEF would be pretty nice. And with Metasploit plug-in-ability and all it could be a decent tool.
« Last Edit: January 16, 2013, 11:33:50 pm by techb »
>>>import this
-----------------------------

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Hack any browser using BeEF
« Reply #5 on: January 17, 2013, 12:07:29 am »
I find your tutorial to be quite similar to this.

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Hack any browser using BeEF
« Reply #6 on: January 17, 2013, 02:20:40 am »
I find your tutorial to be quite similar to this.

Most all tuts for this tool are extremely similar, there's not much more you can do with it.
>>>import this
-----------------------------

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: Hack any browser using BeEF
« Reply #7 on: January 17, 2013, 04:08:52 pm »
BeEF seems pretty local. Meaning, be on the same network for this to work. Unless you did some port forwarding. In which case I would deff change the default port and un/pass. Since BeEF is a pen tool, I doubt rigorous fuzzing or exploiting has been done against it, so it can be vulnerable especially for outside attacks with the port forwards.

You can inject its payload with an XSS vuln, for example. Or append it to a website instead of defacing it :D But I don't know if SOP would prevent you from doing certain things...

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: Hack any browser using BeEF
« Reply #8 on: January 17, 2013, 10:58:26 pm »
I find your tutorial to be quite similar to this.

All of the backtrack tutorials posted by him on here are like that, but then again it's like techb said, how else can you do it? At least he's trying to contribute i guess. Thank you for that Mr. Perfect
This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply

Offline parad0x

  • VIP
  • Royal Highness
  • *
  • Posts: 638
  • Cookies: 118
    • View Profile
Re: Hack any browser using BeEF
« Reply #9 on: January 18, 2013, 10:20:57 am »
I find your tutorial to be quite similar to this.
Well,a good site for newbies to learn how to use metasploit.I'll be posting a tut on how to use metasploit. I know there's one but that is not interesting.

Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Hack any browser using BeEF
« Reply #10 on: January 25, 2013, 05:08:40 pm »
Here's is a good tutorial on how to install BeEF on Windows.

http://www.hackingarticles.in/how-to-install-beef-in-windows-pc/

Offline Griffon Bossi

  • /dev/null
  • *
  • Posts: 15
  • Cookies: -8
    • View Profile
Re: Hack any browser using BeEF
« Reply #11 on: February 01, 2013, 06:03:09 am »
im trying to get BeEF on windows using the tutorial axon gave but when i get to the point where i have to extract the devkit cmd keeps saying the path is unspecified. can someone help. i put the devkit into the ruby file and tried it in the c: however nothing is working. please help.

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Hack any browser using BeEF
« Reply #12 on: February 01, 2013, 05:21:15 pm »
And getting metasploit to work on windows....
Good luck with that.
Not trying to be negative but it saves a lot of time doing this in a nix env.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Griffon Bossi

  • /dev/null
  • *
  • Posts: 15
  • Cookies: -8
    • View Profile
Re: Hack any browser using BeEF
« Reply #13 on: February 01, 2013, 08:49:13 pm »
whats nix env?

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Hack any browser using BeEF
« Reply #14 on: February 01, 2013, 08:50:42 pm »
>>>import this
-----------------------------