Python for Secret Agents

Analyze, encrypt, and uncover intelligence data using Python, the essential tool for all aspiring secret agents

Python for Secret Agents

Steven F. Lott

Analyze, encrypt, and uncover intelligence data using Python, the essential tool for all aspiring secret agents
Mapt Subscription
FREE
$29.99/m after trial
eBook
$3.40
RRP $16.99
Save 79%
Print + eBook
$27.99
RRP $27.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$3.40
$27.99
$29.99p/m after trial
RRP $16.99
RRP $27.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783980420
Paperback216 pages

Book Description

Python is an easy-to-learn and extensible programming language that allows secret agents to work with a wide variety of data in a number of ways. It gives beginners a simple way to start programming, but Python's standard library also provides numerous packages that allow Python-using secret agents to easily utilize very sophisticated information processing.

This book will guide new field agent trainees through putting together a Python-based toolset to gather, analyze, and communicate data. It starts by covering the basics and then moves on to sections such as file exchange, image processing, geocoding, simple trigonometry, and more sensitive statistical processing. You will then learn how to use polynomials to encode and decode data in different representations. Furthermore, this book shows you how to add tools to a Python environment, work with images, and parse HTML web pages to extract meaningful data. The idea of adding packages to Python is central to how an agent will leverage these tools for data processing.

Table of Contents

Chapter 1: Our Espionage Toolkit
Getting the tools of the trade – Python 3.3
Getting more tools – a text editor
Confirming our tools
Background briefing – math and numbers
Handling text and strings
Organizing our software
Working with files and folders
Solving problems – recovering a lost password
Summary
Chapter 2: Acquiring Intelligence Data
Accessing data from the Internet
Using a REST API in Python
Organizing collections of data
Solving problems – currency conversion rates
Summary
Chapter 3: Encoding Secret Messages with Steganography
Background briefing – handling file formats
Using the Pillow library
Some approaches to steganography
Detecting and preventing tampering
Solving problems – encrypting a message
Summary
Chapter 4: Drops, Hideouts, Meetups, and Lairs
Background briefing – latitude, longitude, and GPS
Finding out where we are with geocoding services
How close? What direction?
Compressing data to make grid codes
Decoding a GeoRef code
Creating natural area codes
Solving problems – closest good restaurant
Summary
Chapter 5: A Spymaster's More Sensitive Analyses
Creating statistical summaries
Creating Python modules and applications
Creating our own classes of objects
Comparisons and correlations
Writing high-quality software
Solving problems – analyzing some interesting datasets
Summary

What You Will Learn

  • Quickly get to grips with using Python to create tools and solve problems
  • Manipulate image files and learn how to encode messages into an image using steganography
  • Gather a file's hidden secrets, such as EXIF data and ZIP archive contents
  • Build applications that access, filter, and analyze live data from the Web
  • Design Python modules, libraries, and applications
  • Customize your Python environment with specialized packages
  • Extract data using HTTP and FTP internetworking protocols

Authors

Table of Contents

Chapter 1: Our Espionage Toolkit
Getting the tools of the trade – Python 3.3
Getting more tools – a text editor
Confirming our tools
Background briefing – math and numbers
Handling text and strings
Organizing our software
Working with files and folders
Solving problems – recovering a lost password
Summary
Chapter 2: Acquiring Intelligence Data
Accessing data from the Internet
Using a REST API in Python
Organizing collections of data
Solving problems – currency conversion rates
Summary
Chapter 3: Encoding Secret Messages with Steganography
Background briefing – handling file formats
Using the Pillow library
Some approaches to steganography
Detecting and preventing tampering
Solving problems – encrypting a message
Summary
Chapter 4: Drops, Hideouts, Meetups, and Lairs
Background briefing – latitude, longitude, and GPS
Finding out where we are with geocoding services
How close? What direction?
Compressing data to make grid codes
Decoding a GeoRef code
Creating natural area codes
Solving problems – closest good restaurant
Summary
Chapter 5: A Spymaster's More Sensitive Analyses
Creating statistical summaries
Creating Python modules and applications
Creating our own classes of objects
Comparisons and correlations
Writing high-quality software
Solving problems – analyzing some interesting datasets
Summary

Book Details

ISBN 139781783980420
Paperback216 pages
Read More

Read More Reviews

Recommended for You

Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Python 3 Object Oriented Programming Book Cover
Python 3 Object Oriented Programming
$ 29.99
$ 21.00
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90
Python Data Analysis Book Cover
Python Data Analysis
$ 29.99
$ 21.00
Python Network Programming Cookbook Book Cover
Python Network Programming Cookbook
$ 26.99
$ 18.90
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00