Raspberry Pi for Secret Agents
3.5/5
()
About this ebook
Ever wished you could play around with all the neat gadgets your favorite spies use (like James Bond or Michael Westen)? With the introduction of the remarkable Raspberry Pi and a few USB accessories, anybody can now join in on the action.
Discover how to turn your Raspberry Pi into a multipurpose secret agent tool! Through a series of fun, easy-to-follow projects you'll learn how to set up audio/video surveillance, explore your Wi-Fi network, play pranks on your friends, and even learn how to free your Raspberry Pi from the constraints of the wall socket.
Raspberry Pi for Secret Agents starts out with the initial setup of your Raspberry Pi, guides you through a number of pranks and secret agent techniques, and then shows you how to apply what you've learned out in the real world.
Learn how to configure your operating system for maximum mischief and start exploring the audio, video, and Wi-Fi projects. Learn how to record, listen, or talk to people from a distance and how to distort your voice. You can even plug in your webcam and set up a motion detector with an alarm, or find out what the other computers on your Wi-Fi network are up to. Once you've mastered the techniques, combine them with a battery pack and GPS for the ultimate off-road spy kit.
ApproachA playful, informal approach to using the Raspberry Pi for mischief!
Who this book is forRaspberry Pi for Secret Agents is for all mischievous Raspberry Pi owners who'd like to see their computer transform into a neat spy gadget to be used in a series of practical pranks and projects. No previous skills are required to follow along and if you're completely new to Linux, you'll pick up much of the basics for free.
Apart from the Raspberry Pi board itself, a USB microphone and/or a webcam is required for most of the audio/video topics and a Wi-Fi dongle is recommended for the networking examples. A Windows/Mac OS X/Linux computer (or second Raspberry Pi) is also recommended for remote network access.
Stefan Sjogelid
Stefan Sjogelid grew up in 1980s Sweden, getting hooked on 8-bit consoles, Amigas and BBSes. With a background in system and network administration, he packed his bags for Southeast Asia and continued to work in IT for many years, before love and a magic 8-ball told him to seek new opportunities in Canada. The Raspberry Pi is the latest gadget to grab Stefan's attention, and after much tinkering and learning a great deal about the unique properties of the Pi, he launched the "PiLFS" (http://www.intestinate.com/pilfs) website, which teaches readers how to build their own GNU/Linux distribution and applications that are particularly useful on the Raspberry Pi.
Related to Raspberry Pi for Secret Agents
Related ebooks
Raspberry Pi for Secret Agents - Second Edition Rating: 3 out of 5 stars3/5Getting Started with Raspberry Pi Zero Rating: 5 out of 5 stars5/5Raspberry Pi Server Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsRaspberry Pi for Secret Agents - Third Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsBuilding a Home Security System with Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi Android Projects Rating: 0 out of 5 stars0 ratingsLearning Raspbian Rating: 5 out of 5 stars5/5Raspberry Pi Computer Architecture Essentials Rating: 0 out of 5 stars0 ratingsLearning Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi By Example Rating: 0 out of 5 stars0 ratingsArduino for Secret Agents Rating: 4 out of 5 stars4/5Raspberry Pi Super Cluster Rating: 0 out of 5 stars0 ratingsRaspberry Pi Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Rating: 0 out of 5 stars0 ratingsRaspberry Pi Robotic Projects - Third Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi Projects for Kids - Second Edition Rating: 4 out of 5 stars4/5Raspberry Pi: The complete guide to raspberry pi, including raspberry pi projects, tips, troubleshooting, and more! Rating: 0 out of 5 stars0 ratingsPenetration Testing with Raspberry Pi - Second Edition Rating: 5 out of 5 stars5/5Building Wireless Sensor Networks Using Arduino Rating: 4 out of 5 stars4/5Raspberry Pi: Raspberry Pi programming for beginners, including Raspberry Pi projects, tips, tricks, and more! Rating: 0 out of 5 stars0 ratingsRaspberry Pi 3 Project: Raspberry Pi 3 for Beginners Rating: 0 out of 5 stars0 ratingsInternet of Things with ESP8266 Rating: 5 out of 5 stars5/5Internet of Things with Intel Galileo Rating: 0 out of 5 stars0 ratingsRaspberry Pi | 101 Rating: 0 out of 5 stars0 ratingsBuilding Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsRaspberry Pi: 40 Outstanding Raspberry Pi Tips and Tricks for Absolute Beginners Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Teach Yourself C++ Rating: 4 out of 5 stars4/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5
Reviews for Raspberry Pi for Secret Agents
4 ratings1 review
- Rating: 3 out of 5 stars3/5Fun ideas in this ebook. Might as well combine my interests in the Pi and 007, two great UK products!
Book preview
Raspberry Pi for Secret Agents - Stefan Sjogelid
Table of Contents
Raspberry Pi for Secret Agents
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Up to No Good
A brief history lesson on the Pi
The ins and outs of the Raspberry Pi
GPIO
RCA video
Audio
LEDs
USB
LAN
HDMI
Power
SD card
Writing Raspbian OS to the SD card
Getting Raspbian
SD card image writing in Windows
SD card image writing in Mac OS X or Linux
Booting up and configuring Raspbian
Basic commands to explore your Pi
Accessing the Pi over the network using SSH
Wired network setup
Wi-Fi network setup
Connecting to the Pi from Windows
Connecting to the Pi from Mac OS X or Linux
The importance of a sneaky headless setup
Keeping your system up-to-date
Summary
2. Audio Antics
Configuring your audio gadgets
Introducing the ALSA sound system
Controlling the volume
Switching between HDMI and analog audio output
Testing the speakers
Preparing to record
Testing the microphone
Clipping, feedback distortion, and improving sound quality
Recording conversations for later retrieval
Writing to a WAV file
Writing to an MP3 or OGG file
Creating command shortcuts with aliases
Keep your recordings running safely with tmux
Listening in on conversations from a distance
Listening on Windows
Listening on Mac OS X or Linux
Talking to people from a distance
Talking on Windows
Talking on Mac OS X or Linux
Distorting your voice in weird and wonderful ways
Make your computer do the talking
Scheduling your audio actions
Start on power up
Start in a couple of minutes from now
Controlling recording length
Bonus one line sampler
Summary
3. Webcam and Video Wizardry
Setting up your camera
Meet the USB Video Class drivers and Video4Linux
Finding out your webcam's capabilities
Capturing your target on film
Viewing your webcam in VLC media player
Viewing in Windows
Viewing in Mac OS X
Viewing on Linux
Recording the video stream
Recording in Windows
Recording in Mac OS X
Recording in Linux
Detecting an intruder and setting off an alarm
Creating an initial Motion configuration
Trying out Motion
Collecting the evidence
Viewing the evidence
Hooking up more cameras
Preparing a webcam stream in Windows
Preparing a webcam stream in Mac OS X
Configuring Motion for multiple input streams
Building a security monitoring wall
Turning your TV on or off using the Pi
Scheduling video recording or staging a playback scare
Summary
4. Wi-Fi Pranks – Exploring your Network
Getting an overview of all the computers on your network
Monitoring Wi-Fi airspace with Kismet
Preparing Kismet for launch
First Kismet session
Adding sound and speech
Enabling rouge access point detection
Mapping out your network with Nmap
Finding out what the other computers are up to
How encryption changes the game
Traffic logging
Shoulder surfing in Elinks
Pushing unexpected images into browser windows
Knocking all visitors off your network
Protecting your network against Ettercap
Analyzing packet dumps with Wireshark
Running Wireshark on Windows
Running Wireshark on Mac OS X
Running Wireshark on Linux
Summary
5. Taking your Pi Off-road
Keeping the Pi dry and running with housing and batteries
Setting up point-to-point networking
Creating a direct wired connection
Static IP assignment on Windows
Static IP assignment on Mac OS X
Static IP assignment on Linux
Creating an ad hoc Wi-Fi network
Connecting to an ad hoc Wi-Fi network on Windows
Connecting to an ad hoc Wi-Fi network on Mac OS X
Tracking the Pi's whereabouts using GPS
Tracking the GPS position on Google Earth
Preparing a GPS beacon on the Pi
Setting up Google Earth
Setting up a GPS waypoint logger
Mapping GPS data from Kismet
Using the GPS as a time source
Setting up the GPS on boot
Controlling the Pi with your smartphone
Receiving status updates from the Pi
Tagging tweets with GPS coordinates
Scheduling regular updates
Keeping your data secret with encryption
Creating a vault inside a file
Summary
Graduation
Index
Raspberry Pi for Secret Agents
Raspberry Pi for Secret Agents
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2013
Production Reference: 1180413
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84969-578-7
www.packtpub.com
Cover Image by Artie Ng (<artherng@yahoo.com.au>)
Credits
Author
Stefan Sjogelid
Reviewers
Valéry Seys
Masumi Mutsuda Zapater
Acquisition Editor
Erol Staveley
Commissioning Editor
Ameya Sawant
Technical Editors
Dennis John
Ishita Malhi
Project Coordinator
Amigya Khurana
Proofreader
Ting Baker
Indexer
Monica Ajmera Mehta
Production Coordinator
Shantanu Zagade
Cover Work
Shantanu Zagade
About the Author
Stefan Sjogelid grew up in 1980s Sweden, getting hooked on 8-bit consoles, Amigas and BBSes. With a background in system and network administration, he packed his bags for Southeast Asia and continued to work in IT for many years, before love and a magic 8-ball told him to seek new opportunities in the North American continent.
The Raspberry Pi is the latest gadget to grab Stefan's attention, and after much tinkering and learning a great deal about the unique properties of the Pi, he launched the PiLFS
(http://www.intestinate.com/pilfs) website, which teaches readers how to build their own GNU/Linux distribution and applications that are particularly useful on the Raspberry Pi.
I'd like to thank Anton for putting up with my alt-tabbing
during our movie marathons, and a special thanks to my brother for showing me Southeast Asia, and my parents, for buying me a PC instead of a moped.
About the Reviewers
Valéry Seys is a project engineer and a brilliant, self-taught man, having started his computer studies in the early 80s. He has come a long way, from working with the cheap Sinclair ZX81, to IBM Mainframe, and Unix. He is driven by a philosophy expressed by Stephen Wolfram:
We are in the exciting stage that everyone, whether a scientist or not, can contribute
—(Santa Fe Institute, 1984).
He currently works as an independent consultant for major French companies working in the sectors of telecom, banking, press publishing, insurance, defense, and administration.
My thanks go to Stefan, for including me in this book, and the scientist pioneers Stephen Wolfram and Karl Sims.
Masumi Mutsuda Zapater is a graduate of the Computer Science Engineering program from the UPC BarcelonaTech University. He combines his artistic job as a voice actor with his technological job at Itnig, an Internet startup accelerator. He is also a partner of Camaloon, an Itnig accelerated startup, globally providing both custom-designed and original products.
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and bookmark content
On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
For Bradley Manning—a real human being and a real hero ( www.bradleymanning.com).
Preface
The Raspberry Pi was developed with the intention of promoting basic computer science in schools, but the Pi also represents a welcome return to simple, fun, and open computing.
Using gadgets for purposes other than those intended, especially for mischief and pranks, has always been an important part of adopting a new technology and making it your own.
With a $25 Raspberry Pi computer and a few common USB gadgets, anyone can afford to become a secret agent.
What this book covers
Chapter 1, Getting Up to No Good, takes you through the initial setup of the Raspberry Pi and preparing it for sneaky headless operations over the network.
Chapter 2, Audio Antics, teaches you how to eavesdrop on conversations or play pranks on friends by broadcasting your own distorted voice from a distance.
Chapter 3, Webcam and Video Wizardry, shows you how to setup a webcam video feed that can be used to detect intruders, or to stage a playback scare.
Chapter 4, Wi-Fi Pranks – Exploring your Network, teaches you how to capture, manipulate, and spy on network traffic that flows through your network.
Chapter 5, Taking your Pi Off-road, shows you how to encrypt your Pi and send it away on missions while keeping in touch via GPS and Twitter updates.
What you need for this book
The following hardware is recommended for maximum enjoyment:
The Raspberry Pi computer (Model A or B)
SD card (4 GB minimum)
Powered USB hub (projects verified with Belkin F5U234V1)
PC/laptop running Windows, Linux, or Mac OS X with an internal or external SD card reader
USB microphone
USB webcam (projects verified with Logitech C110)
USB Wi-Fi adapter (projects verified with TP-Link TL-WN822N)
USB GPS receiver (projects verified with Columbus V-800)
Lithium polymer battery pack (projects verified with DigiPower JS-Flip)
Android smartphone (projects verified with HTC Desire)
All software mentioned in this book is free of charge and can be downloaded from the Internet.
Who this book is for
This book is for all the mischievous Raspberry Pi owners who would like to see their computer transformed into a neat spy gadget, to be used in a series of practical pranks and projects. No previous skills are required to follow the book, and if you're completely new to Linux,