Browse Category: Raspberry Pi

How to change your Raspberry Pi Hostname

About: There may come a time where you will want to change your hostname on the Raspberry Pi. For example the default hostname when using Raspbian is ‘raspberrypi’. This is fine, however if you have 2 Raspberry Pi’s running on your network you will want to change the hostname to differentiate the Raspberry Pi’s on your network. This isn’t critical since they still will have different IP addresses but it will help you if you look at your network list on your router or when running certain commands that include the hostname.

I will show you two different ways to change your Raspberry Pi’s hostname. The first way is using SSH/Terminal which would be useful if you are running your Raspberry Pi headless and can connect to it using SSH. The second way is using the Raspbian desktop and is just a few clicks.

Objective: To demonstrate how to change the hostname on your Raspberry Pi

Material: You will need the following:

  • Raspberry Pi (Click the link to check out the price on Amazon. Usually around $37 with free shipping)

Instructions: Let’s start off by showing you how to change the hostname using the terminal or using SSH Continue Reading

Best 5 WiFi adapters for the Raspberry Pi 2016

Here is my list of Top 5 WiFi adapters that can be used on the Raspberry Pi and Linux without any issues. I have personally tested all of these wireless adapters and decided to rate them on my experiences. Since I enjoy using tools like aircrack-ng for hacking WiFi access points, all of the WiFi adapters I have listed are able to be used in interface and ad-hoc modes, which lets you run them in monitor mode as well as being able to use the adapter as an access point. Lets cut to the chase.

5. Realtek 8191 WiFi Adapter

I got this WiFi adapter for my parents who needed a wireless connection for their desktop computer in a spare bedroom they use as their computer room. It’s been working with no major issues or speed concerns however my parents have complained that it will freeze up and they have to plug the USB adapter out and in again to get it to work. This doesn’t happen often but often enough that I replaced it with a better adapter.

If you need something cheap and for basic connectivity this may be the WiFi adapter for you. It usually sells for around $10 and that’s including shipping which you can’t beat for the price.

4. Etekcity Wireless N WiFi Dongle


The Etekcity WiFi adapter is pretty decent for its price. It’s a true 802.11 N WiFi adapter because it works on both the 2.4GHz and 5GHz WiFi signals. I found that the range is decent enough to pick up your neighbors signal about half a block away. It comes with 2 6dBi antennas to work on both wavelengths.

It will work with 802.11 b/g/n and has a transmission rate up to 300Mbps. The WiFi adapter is compatible with WEP 64/128, WPA/WPA2, & WPA-PSK/WPA2-PSK security.

The Etekcity WiFi adapter usually sells for under $20 and works well with the Raspberry Pi.

 

3. Alfa 1000mW High Power AWUS036H


The Alpha AWUS036H WiFi adapter is one of the most popular choices for pen-testing and connecting to your WIFi at home. It has great range and can pick up signals up to a block away without much loss. It also includes settings for increasing the power of the WiFi signal to connect to networks further away.

When you purchase from Amazon there are a few choices that you can buy. Some of them come with a holder and flex cable which are not necessary. I bought the model that comes with the 5dBi and 7dBi antennas. The 7dBi antenna is a directional antenna meaning it can get better signals depending on which way it’s facing. The reviews for the 9dBi antenna are not the best, so I personally wouldn’t recommend it. The only other downfall with the Alfa AWUS036H is it is not compatible is 802.11 N signals, which may be an issue if a network is setup for only 802.11N

If you are looking for a WiFi adapter that works perfectly on the Raspberry Pi and has great reviews then you can’t go wrong with the Alfa AWUS036H WiFi adapter

 

2. Panda Wireless PAU06 300Mbps N USB Adapter


The Panda PAU06 is one of the first WiFi adapters I have used with the Raspberry Pi. It works with no issue and doesn’t require any software to be installed on the Raspberry Pi. The WiFi adapter has been very reliable and I use it a lot.

The Panda PAU06 WiFi adapter comes with an external antenna which works well. The range on this adapter is a little short of the Alfa AWUS036H. It may not pick up as many networks as the Alfa, but the networks it does pick up are very reliable and you do not get many dropped signals when you are connected to a network further away.

The only issue I have with this WiFi adapter is when you plug it into your USB port while the Raspberry Pi is running it will draw too much current and restart your Raspberry Pi. After it has been plugged in it will not reset your Raspberry Pi and works perfectly.

 

1. TP-LINK TL-WN722N  N150 High Gain USB Adapter


This is my best pick for the WiFi adapter of the year for the Raspberry Pi. It works great, sets up in seconds and is plug and play. It uses the Atheros AR9271 chipset which is very reliable and has a lot of support for linux. It has great reception and can seek out signals far away. It is very stable once it is connects to a network and  has virtually no signal loss.

It works with 802.11 b/g/n wireless networks, which is the standard now. The price is usually under $12 which can’t be beat. The only downfall with the TP-Link TL-WN722N wireless adapter is that it can only transmit up to 150Mbps. This shouldn’t be a problem for many users and you most likely will not even notice the slower speeds unless you are transferring files onto your network.

For under $12 and great connectivity and options the TP-Link TL-WN722N wireless adapter is my pick for best WiFi adapter for the Raspberry Pi in 2016.

 

 

 

How to install aircrack-ng suite on the Raspberry Pi

About: In some cases you may need to install the aircrack-ng suite on a Raspberry Pi that’s dedicated to hacking like the official Raspbian distro. That’s not a problem. Installing aircrack-ng on the Raspberry Pi is very easy and I’ll show you how to get it up and running in just a few steps. This tutorial is also useful if you need to update your aircrack-ng suite when using Kali or PwnPi that comes with an older version.

Objective: To demonstrate how to install aircrack-ng suite on the Raspbian distro for the Raspberry Pi

Material: You will need the following:

Instructions: Let’s begin by installing the libraries that are needed to get aircrack-ng to work on the Raspberry Pi. Type in the following command: Continue Reading

How to block ads on your network with the Raspberry Pi

About: You can use your Raspberry Pi as a DNS server which blocks ads on all your devices connected to your network. This means your Iphone, Android phones and Ipads can now block ads without needing to root them or do any changes to them. We’ll be using Pi-hole to put on our Raspberry Pi and the install is very simple. I will be using a dedicated Raspberry Pi with a clean install of Raspbian on it. If you are using your Pi for anything else like a web server or have edited the DNS settings then the install may break your setup. I would recommend setting up your Pi-hole on a clean install to prevent anything like this from happening or backup your Pi before running the install.

Objective: To demonstrate how to set up our Raspberry Pi as a DNS server that blocks ads on all devices network wide.

Material: You will need the following:

Instructions: Installation of Pi-hole is very simple. Start off by simply typing the following command in the terminal Continue Reading

How to perform a Pixie Dust WPS attack using the Raspberry Pi

About: WPS stands for Wi-Fi Protected Setup and it is a wireless networking standard that tries to make connections between a router and your wireless devices faster and easier. It only works for wireless networks that have WPA/WPA2 security. It is suppose to make it easier to connect devices without a keyboard, like a TV, to your home network. Most routers come with WPS enabled and work by pushing the WPS button on your router and connecting your device. I personally have never heard or WPS before doing this research and have never used it in my personal life.

WPS works by having the router generate an eight-digit PIN that you need to enter on your devices to connect. WPS can easily be cracked because rather than the router check the entire eight-digit PIN at once, the router checks the first four digits separately from the last four digits. This makes WPS PINs very easy to brute force. There are only 11,000 possible four-digit codes, and once the brute force software gets the first four digits right, the attacker can move on to the rest of the digits. Many modern routers try to prevent this by timing out incorrect pins after a certain time, but this is still not the norm.

Many routers come with WPS enabled and it can be disabled. You can follow my tutorial on how to disable WPS on my Netgear router here. The best router to purchase that will remain secure from this kind of attack is a router that doesn’t even provide WPS.

Objective: To demonstrate how insecure having WPS enabled on your router

Material: You will need the following:

Instructions: I am using PwnPi on my Raspberry Pi but this can also be performed using Raspbian. Let’s start by installing some software and the tools we will be using. I will assume you have the aircrack-ng suite already installed and know how to use your WiFi USB adapter. Continue Reading

How to setup your Raspberry Pi as an Access Point

About: Setting up your Raspberry Pi as an access point may come in handy. Especially in a pinch when your home router dies and you need some WiFi in your house while a new router is on order. It can also be useful if you want to set up an access point to perform evil doings like monitoring all the traffic or setting up an evil twin network.

In this tutorial we will be setting up a WiFi Access Point and linking all data to our Ethernet connection, so make sure we have an active internet connection on the Ethernet port to tunnel all the WiFi data to it.

Objective: To create a WiFi access point on our Raspberry Pi and link our WiFi connection to the Ethernet connection.

Material: You will need the following:

Instructions: Just a warning before continuing, setting up your network settings can mess things up if you are using the Raspberry Pi for something else. Be sure to make a backup of your Raspberry Pi before continuing if you need to. Also troubleshooting network issues can be difficult if you are inexperienced with networking. Be sure to follow the directions carefully and you should be alright.

Continue Reading