hello everyone my name is Andrew Naylor
and I love raspberry pie I love Wi-Fi
and over the last year it's been a
baptism of fire just diving in trying to
learn as much as I can about Wi-Fi as
well as Raspberry Pi I was a little late
to the game I'm sure everyone here got
harassed for a PI before I did I got
mine like nine months ago and I've been
playing catch-up so hopefully you guys
can learn from some of the things I've
done last year and afterwards feel free
to come up and talk and I'd be happy to
answer questions so the important thing
about setting up Wi-Fi with raspberry pi
is the operating system because
depending on what project you're going
to be working on different operating
systems come with a lot of pre-installed
software so for example raspbian linux
is its kind of the go-to for most
hobbyists especially if they're doing
automation or any sort of systems
control or temperature stuff because it
has all the packages and software like
Perle and other scripting languages and
solving now kali linux on the other hand
has a lot of tools that are custom made
for Wi-Fi that includes a monitor mode
software such as arrow dump as well as
some great products like kismet which
not only track the Wi-Fi packets but
they also categorize sort them and
analyze them on the fly and then it
saves them to a pcap file that you could
later analyze a network analyzer or
packet analyzer now next I'm going to
talk about Hardware raspberry pi has two
options model a model B model B it uses
more power than model a so if you're
going to be using a mobile setup the a
might be a better option for you it just
has few reports so there's some power
issues when you try to plug in a whole
bunch of Wi-Fi antennas as well as
keyboards and other things like that
the recommended input from plugging it
into a wall or batteries will wait 2
amps and you can max out the USB numbers
plugging in a Wi-Fi antenna into the USB
port on our Esper a PI maximum output is
1 amp if you're going to go above 1a I'm
going to use a powered hub and for
example in my mobile setup right up here
I have my Raspberry Pi with a GPS and
then I also have the Wi-Fi antenna and
both of these combined use pretty close
to one amp so I can't plug in a keyboard
or else the device won't load so if you
have any issues just trying to
things and that might solve some of your
problems but understand the limitations
and doing the calculations for what your
devices are going to use will help you
avoid issues later on in a project yeah
if you can calculate the other thing is
the power port so the power cord between
the battery and the Raspberry Pi you can
get those in as long as 25 feet but they
won't work if the longer it is the more
power loss you have so use a shorter
cable and you'll have fewer power issues
now depending on the project you're
going to want a wall board or a battery
for my mobile stuff I have a battery
it's easy to find the batteries you just
search on Amazon for a USB battery or
cell phone battery and for the most part
they supply the five-hole - let's say
800 milliamps or $1000 so I'm going to
start talking about the 10 different
projects that I did so there's Wi-Fi
Snooper basically you install Kali Linux
and then you use kismet which I talked
about earlier which tracks the packets
and they categorizes them this is great
because you can see all of the access
points that I near you as well as the
clients that are connecting to them the
controls the control mechanism for Wi-Fi
is not encrypted so even if you're using
wpa2 or whatever you will still be able
to see the clients connect to the access
point it also does historical analysis
so if you leave it on for 24 hours and
someone connects you know for just a
minute then disconnect it'll see that in
the log and that's where the pcap file
comes in handy because
you can actually go down and look at the
individual packets and see what it is
they were trying to do next I'm going to
talk about Wi-Fi honeypot this this was
a lot of fun because it gives you an
idea of how many people are willing to
connect to an unknown access point that
they've never seen before and the number
I've gotten so far is like 20 or 30 and
that's about two a day I guess I don't
do anything malicious I just like to see
who's looking for access points and I
think that that's a very educational
experience because some cellphones I've
identified will just connect
automatically to certain access point
names so make sure your cell phone is a
lot of those and by setting this up at
home you could probably find that out
the software used to do this is host APD
nginx and DNS mass what it does is
hostapd allows the the Wi-Fi antenna to
act as an access point and then the
nginx access web server gayness math
says hey send everything to the web
server so it's it's not a it's not a too
complicated
the next project I like is sleep on the
zippers is that my 15 pack or is that
someone else's wait someone else's snoop
on the Super's certain Wi-Fi clients and
software will pretend to be a client and
connecting to different access points
and when it does that it sends out
certain package depending on the
software application and those packets
are like red flags for kismet and
various software programs for analyzing
the packets and then what you can do is
you can set this up at your house and
you can set like an LED or a flashing
light on top of it as soon as it sees
one of those packets it's like hey lark
someone near you is trying to do
something malicious you should be
careful and you don't lock down your
your access points per you should lock
down your access points anyway but a lot
of these tools led me to the same
conclusion over and over again which is
there's a lot of malicious stuff going
on up there
the great thing about kismet is that you
can add additional packet types so for
example let's say you set up a whole lab
for testing various Wi-Fi projects and
you say oh my gosh this one is creating
a this specific packet when I do this
malicious thing or when my neighbor does
the Cilicians thing you get set up but
learn for that packet and you could say
text me anytime this specific device of
the specific packet so kismet is very
customizable Wi-Fi repeater I like to
say spend $60 for a $30 device you can
find the repeaters online very cheap but
if you have extra hardware it's fun to
play with the rate that you can also
layer things so you can set up a Wi-Fi
repeater and honeypot or Wi-Fi repeater
and
very no and that's a good way to do
multiple things with a single Raspberry
Pi mesh networking is really fun
because if you have a lot of raspberry
PI's like I do you can put one in every
room and then set up a mesh network and
even if you pull one they'll still be
connected to all the others there's a
great software program called air mesh
and you can have LEDs for fun so for
example at an LED anytime it receives a
packet but then you said something and
all of my other ones it's kind of fun
tour proxy this is what I haven't done
yet but all of my friends recommend it's
a great way to a browse the web
anonymously and it automatically
connects to the the Wi-Fi adapter it
sets it up in access point mode and then
that way you can kind of have an ominous
internet wherever you go and you just
got to plug in here if I connect your
access point you know that wherever you
go it's going to be about us so I have
squirrels anybody else here have
squirrels you don't affect that so we
planted some corn in our backyard I
don't know why squirrels apart so much
but they sure do and they've been just
destroying our plants so I set up a
respirator PI webcam using the Raspberry
Pi camera and now I know that were
squirrels and not my neighbors that were
eating a report a covert listeners this
is something I was sort of alluding to
before
which is setting up a monitoring node
but doing it outside your house so I
don't have any pictures because I don't
have any pictures but what you can do
you can you can hide it inside a
cardboard box you can hide it under a
pile of leaves you can you know put it
anywhere and then like put it next to a
train station see how many access points
go through that train station every day
I live right by the Caltrain station as
soon as I started doing all of this
Wi-Fi analysis I noticed that you know
during certain times the number of
people would just explode that's like
what is there a bus going by with a you
know Wi-Fi tourist but it turns out I
was just out right now did this thing
blew me away
there are spectrum analyzers or Wi-Fi
and they're generally expensive like
$1000 it leads to be really cheap or
free they were built upon some of the
Wi-Fi antennas that were more common but
as they made more money they raised the
price so now it's hard to buy a spectrum
analyzer
that's where Hoover dude comes in handy
it's this great product that was made
for listening and manipulating Bluetooth
graphic it's about a hundred dollars or
a hundred and twenty dollars and what's
great is that the Bluetooth and Wi-Fi
spectrum overlaps so you could do the
complete spectrum analysis on the ghetto
2.11
Wi-Fi space using it over - I like it
because you can see the peaks of where
the your neighbors are using it so if
you want to switch your channel to the
least use channel this is a good way to
find it also if you have a microwave in
your house you can watch this and then
start the microwave and everything just
explodes it goes crazy and that's a
really fun
- and then there's remote sensors this
is the last project because it really is
infinite right anything you connect to
the Raspberry Pi whether its temperature
whether its humidity any environmental
sensors that this what I did here was I
added some temperature or thermometers
sheíll board so that I could monitor the
temperature in my closet because I keep
my blind in my closet and I was I wasn't
sure if it was getting too hot on the
hot days I figured my house it was the
coldest place but after some analysis I
found out it was just a toddler house
but what was cool was I was able to set
it up three temperature sensors to the
breadboard
I used Wi-Fi so I could go to my closet
as I don't have my closet wired for
Ethernet and then it was reporting the
temperature every five minutes so this
was my this was my my favorite project
but the ones I did lastly I'd like to
talk about chipsets
before you run out there by a USB Wi-Fi
adapter for your Raspberry Pi I would do
a lot of research on the chipsets first
because not every chipset has a driver
that supports everything I've talked
about today so AP mode measurable
monitor mode not every Wi-Fi adapter
does that so do go search for something
like you know a Wi-Fi adapter that
supports AP mode Raspberry Pi you know
and there's this great resource from the
Linux Foundation be sure for Linux Wi-Fi
they have a full table on that and if
you get pushed over later if you're
happy to point out links and that sort
of thing but understand that chipset
understanding the limitations of various
Wi-Fi will save you spending money on
Amazon you know bye-bye find actors that
don't work so that's all I have today
thank you very much for coming out and
I'll be standing over there later if you
have any questions
you