Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi for Secret Agents - Third Edition

You're reading from  Raspberry Pi for Secret Agents - Third Edition

Product type Book
Published in Jul 2016
Publisher
ISBN-13 9781786463548
Pages 316 pages
Edition 3rd Edition
Languages

Table of Contents (7) Chapters

Preface 1. Getting up to No Good 2. Audio Antics 3. Webcam and Video Wizardry 4. Wi-Fi Pranks – Exploring Your Network 5. Taking Your Pi Off-Road 6. Detecting and Protecting Against Your Enemies

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 the intended ones, 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.

This third edition by Matthew Poole takes the previous edition's projects and brings them up to date to now support the new Raspberry Pi Zero, Raspberry Pi Version 3, and the Raspbian Jessie operating system.

There is also a new chapter that looks at ways to connect sensors and gadgets to our Pi to protect ourselves against other would-be secret agents.

What this book covers

Chapter 1,Getting Up to No Good, looks at all of the different models of the Raspberry Pi available, and then takes you through the initial setup, preparing it for sneaky headless operations over the network.

Chapter 2,Audio Antics, teaches you how to eavesdrop on conversations with a Pi Zero-based wearable voice recorder, or play pranks on friends by broadcasting your own distorted voice from a distance using the Bluetooth audio.

Chapter 3, Webcam and Video Wizardry, shows you how to set up a webcam video feed with built-in motion detection that can be used to detect intruders, or to stage a playback scare by automatically switching on a TV.

Chapter 4, Wi-Fi Pranks – Exploring Your Network, teaches you how to capture, manipulate, and spy on the 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 with it via smartphone, GPS, and Twitter updates. You'll also learn how to turn your Pi into a cellular 4G-connected router while staying anonymous on the Internet.

Chapter 6, Detecting and Protecting Against Your Enemies, looks at ways to detect infiltrations and protect ourselves against other would-be spies, by plugging sensors and other gadgets into our Raspberry Pi, alerting us when people stray into our territories.

What you need for this book

The following hardware is recommended for maximum enjoyment:

  • The Raspberry Pi computer (Version 2/Version 3, and Pi Zero)
  • An SD card (4 GB minimum, class 10 recommended)
  • A PC/laptop running Windows, Linux, or Mac OS X with an internal or external SD card reader
  • A Pi Zero connector kit
  • A USB microphone / sound card (projects verified with Formosa AS301 Tube Delight and pluggable USB audio adapter.
  • A USB Bluetooth adapter (projects verified with Cambridge Silicon Radio dongles) or Pi 3 onboard Bluetooth
  • A Bluetooth headset and/or speaker
  • Official Raspberry Pi Camera module
  • A camera module or USB webcam (projects verified with Logitech C270)
  • A USB Wi-Fi adapter (projects verified with Farnell element14 Wi-Pi dongle)
  • A USB 3G/4G modem (projects verified with Huawei E3372 HiLink modem)
  • A USB GPS receiver (projects verified with U-blox7)
  • A lithium polymer battery pack (projects verified with RS Components USB Power Banks and iMuto X4)
  • Waveshare Laser Sensor module
  • LED matrix display (project verified with the Ciesco Pi-Lite board)
  • Passive IR motion sensor (projects verified with Parallax 555-28027)
  • USB to 3.3V TTL serial/UART converter
  • An Android phone or iPhone (projects verified with Samsung Galaxy S7 Edge and iPhone 4S)

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, you'll pick up most of the basics along the way.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The cat command is commonly used to output the contents of text files, and /proc/asound is a directory."

A block of code is set as follows:

#!/bin/bash 
sudo echo 17 > /sys/class/gpio/export 
sudo echo in > /sys/class/gpio/gpio17/direction 
 
# loop forever 
while true 
do 
  # read the beam state 
  BEAM=$(sudo cat /sys/class/gpio/gpio17/value)

Any command-line input or output is written as follows:

pi@raspberrypi ~ $ cat /proc/asound/cards

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Just right-click on the image file and select Send to, then click on Compressed (zipped) folder."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail feedback@packtpub.com, and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Raspberry-Pi-for-Secret-Agents-Third-Edition. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book 

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://static.packt-cdn.com/downloads/RaspberryPiforSecretAgentsThirdEdition_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at copyright@packtpub.com with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at questions@packtpub.com, and we will do our best to address the problem.

lock icon The rest of the chapter is locked
Next Chapter arrow right
You have been reading a chapter from
Raspberry Pi for Secret Agents - Third Edition
Published in: Jul 2016 Publisher: ISBN-13: 9781786463548
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}