Gambling Affiliation

Gambling Affiliation

Saturday, 21 May 2016

Hacking Web Browsers using BeEF

BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser.

BeEF was developed by a group of developers led by Wade Alcorn. Built on the familiar Ruby on Rails platform, BeEF was developed to explore the vulnerabilities in browsers and test them. In particular, BeEF is an excellent platform for testing a browser’s vulnerability to cross-site scripting (XSS) and other injection attacks.



BeEF is built into Kali Linux, and it can be started as a service and accessed via a web browser on your localhost. So let’s start by firing up Kali and cooking a bit of BeEF.
Start the BeEF service by going to “Applications” -> “Kali Linux” -> “System Services” -> “BeEF” -> “beef start.”

Step: opening a browser to BeEF

The BeEF server can be accessed via any browser on our localhost (127.0.0.1) web server at port 3000.
To access its authentication page, go to:  http://localhost:3000/ui/authentication

The default credentials are “beef” for both username and password.

Great! Now you have successfully logged into BeEF and are ready to begin using this powerful platform to hack web browsers.

Note that in the screenshot below that my local browser, 127.0.0.1, appears in the left hand “Hooked Browsers” explorer after I clicked on the link to the demo page. BeEF also displays its “Getting Started” window to the right.

Step 3: viewing Browser details

If I click on the local browser, it will provide with more choices to the right including a “Details” window where we can get all the particulars of that browser. Since I am using the Iceweasel browser built into Kali, which is built upon Firefox, it shows me that the browser is Firefox.

It also shows me the version number (24), the platform (Linux i686), any components (Flash, web sockets, etc.), and more information that we will be
able to use in later web application hacks.

Step 4: hooking a browser

The key to success with BeEF is to “hook” a browser. This basically means that we need the victim to visit a vulnerable web app. This injected code in the “hooked” browser then responds to commands from the BeEF server. From there, we can do a number of malicious things on the victim’s computer.

BeEF has a JavaScript file called “hook.js,” and if we can get the victim to execute it in a vulnerable web app, we will hook their browser! In future tutorials, we will look at multiple ways to get the victim’s browser hooked.
In the screenshot below, I have “hooked” an Internet Explorer 6 browser on
an old Windows XP on my LAN at IP 192.168.89.191.

Step 5 : Runing commands in the browser

Now, that we have hooked the victim’s browser, we can use numerous built-in commands that can executed from the victim’s browser. Below are just a few examples; there are many others.

Get Visited Domains
Get Visited URLs
Webcam
Get All Cookies
Grab Google Contacts
Screenshot

In the screenshot below, I selected the “Webcam” command that many of you may be interested in. As you can see, when I execute this command, an Adobe Flash dialog box will pop up on the screen of the user asking, “Allow Webcam?” If they click “Allow,” it will begin to return pictures from the victim’s machine to you.

Of course, the text can be customized, so be imaginative. For instance, you could customize the button to say “You have just won the lottery! Click here to collect your winnings!” or “Your software is out of date. Click here to update and keep your computer secure.” Other such messages might entice the victim to click on the box.

Step6 : Getting Cookies

Once we have the browser hooked, there is almost unlimited possibilities of what we can do. If we wanted the cookies of the victim, we can go to “Chrome Extensions” and select “Get All Cookies” as shown in the
 screenshot below.

When we click on the “Execute” button to the bottom right, it will begin collecting all the cookies from the browser. Obviously, once you have the user’s cookies, you are likely to have access to their websites as well.
BeEF is an extraordinary and powerful tool for exploiting web browsers. In addition to what I have shown you here, it can also be used to leverage operating system attacks. We will be using it and other tools in my new series on hacking web applications, mobile devices, so keep coming back, my greenhorn hackers.

Also See :- How To Hack Facebook Account Using BruteForce 
Also See :- How To Hide Last Name On Facebook

Wednesday, 27 April 2016

How to speed up internet using command prompt...

Check internet speed using cmd pings to default gateway

  • You can check your internet connection speed by sending ping packets to your default gateway.
  • To know your default gateway, you can use ipconfig /all command. Once you get the IP address of your default gateway, start running a continuous ping by typing ping -t <your default gateway address>. The time field value will show you the time taken to get an acknowledgement from the gateway.
  • Lower time value is an indication that your network is faster. However, running a lot of pings consume network bandwidth as well as your default gateway resources. Though the data packets for ping are very negligible in size and you might not observe any change in internet speed but it does consume bandwidth.

speed up internet connection using cmd

IP release and renew

  • Well, If you are using a WiFi connection, in the case of IP release and renew, you may experience a temporary speed boost, depending on the strength of the WiFi signal. However, in the case of LAN, it won’t affect speed.

IP renew on cmd Windows 10

Flushdns to Speed up internet using cmd

  • Our computer maintains a list of the websites and their corresponding IP addresses that we access the most in the DNS resolver cache. Sometimes, these data become obsolete after months or weeks. So when we flush our DNS resolver cache, we actually flush out the obsolete data and make new entries in the DNS resolver cache table.

flush-dns
Using this command, you might initially experience a slower connection because of the requirement of the new DNS lookups for every resource. However, you will soon experience faster loading of the websites in your browser.

Speed up internet using cmd ‘Netsh int tcp’command:

  • Type this command in your command prompt window and observe carefully:

netsh commands cmd
If you do not see Receive Window Autotuning level as ‘Normal’ as shown above then run the following command:
netsh int tcp set globalautotuninglevel=normal
    This command will set your TCP receive window to Normal from the disabled or restricted state. TCP receive window is one of the key factors in the internet download speed. Thus making the TCP receive window to ‘Normal’ will surely help you in increasing your internet speed.
      After this command, let’s check for another parameter of Windows in terms of the slow internet connection called ‘Windows scaling heuristics’. To check for this parameter, type

      netsh interface tcp show heuristics
      'Windows scaling heuristics disable to speed up internet using cmd
      Well, in my case, it’s disabled. However, in some case, you might it enabled. That means Microsoft in some ways, is trying to limit your internet connection. So avoid it and to get faster internet, type the below command and press enter:

      netsh interface tcp set heuristics disabled

      Once pressed enter, you will receive an ‘ok’ message and  now you internet speed has surely got boosted up.