Python for Secret Agents - Volume II

Gather, analyze, and decode data to reveal hidden facts using Python, the perfect tool for all aspiring secret agents

Python for Secret Agents - Volume II

This ebook is included in a Mapt subscription
Steven F. Lott

1 customer reviews
Gather, analyze, and decode data to reveal hidden facts using Python, the perfect tool for all aspiring secret agents
$0.00
$10.00
$24.99
$29.99p/m after trial
RRP $19.99
RRP $24.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 139781785283406
Paperback180 pages

Book Description

Python is easy to learn and extensible programming language that allows any manner of secret agent to work with a variety of data. Agents from beginners to seasoned veterans will benefit from Python's simplicity and sophistication. The standard library provides numerous packages that move beyond simple beginner missions. The Python ecosystem of related packages and libraries supports deep information processing.

This book will guide you through the process of upgrading your Python-based toolset for intelligence gathering, analysis, and communication. You'll explore the ways Python is used to analyze web logs to discover the trails of activities that can be found in web and database servers. We'll also look at how we can use Python to discover details of the social network by looking at the data available from social networking websites.

Finally, you'll see how to extract history from PDF files, which opens up new sources of data, and you’ll learn about the ways you can gather data using an Arduino-based sensor device.

Table of Contents

Chapter 1: New Missions – New Tools
Background briefing on tools
Background briefing: review of the Python language
Mission One – upgrade Beautiful Soup
Doing other upgrades
Mission to expand our toolkit
Summary
Chapter 2: Tracks, Trails, and Logs
Background briefing – web servers and logs
Writing a regular expression for parsing
Reading and understanding the raw data
Reading remote files
Studying a log in more detail
What are they downloading?
Trails of activity
Who is this person?
Getting logs from a server with ftplib
Summary
Chapter 3: Following the Social Network
Background briefing – images and social media
Who's doing the talking?
What do they seem to be talking about?
What are they posting?
Deep Under Cover – NLTK and language analysis
Summary
Chapter 4: Dredging up History
Background briefing–Portable Document Format
Extracting PDF content
Getting text data from a document
Understanding tables and complex layouts
Summary
Chapter 5: Data Collection Gadgets
Background briefing: Arduino basics
Starting with the digital output pins
Mastering the Arduino programming language
Seeing a better blinking light
Simple Arduino sensor data feed
Collecting analog data
Collecting bulk data with the Arduino
Data modeling and analysis with Python
Reducing noise with a simple filter
Solving problems adding an audible alarm
Summary

What You Will Learn

  • Upgrade Python to the latest version and discover its latest and greatest tools
  • Use Python libraries to extract data from log files that are designed more for people to read than for automated analysis
  • Summarize log files and extract meaningful information
  • Gather data from social networking sites and leverage your experience of analyzing log files to summarize the data you find
  • Extract text and images from social networking sites
  • Parse the complex and confusing data structures in a PDF file to extract meaningful text that we can analyze
  • Connect small, intelligent devices to our computer to use them as remote sensors
  • Use Python to analyze measurements from sensors to calibrate them and use sensors efficiently

Authors

Table of Contents

Chapter 1: New Missions – New Tools
Background briefing on tools
Background briefing: review of the Python language
Mission One – upgrade Beautiful Soup
Doing other upgrades
Mission to expand our toolkit
Summary
Chapter 2: Tracks, Trails, and Logs
Background briefing – web servers and logs
Writing a regular expression for parsing
Reading and understanding the raw data
Reading remote files
Studying a log in more detail
What are they downloading?
Trails of activity
Who is this person?
Getting logs from a server with ftplib
Summary
Chapter 3: Following the Social Network
Background briefing – images and social media
Who's doing the talking?
What do they seem to be talking about?
What are they posting?
Deep Under Cover – NLTK and language analysis
Summary
Chapter 4: Dredging up History
Background briefing–Portable Document Format
Extracting PDF content
Getting text data from a document
Understanding tables and complex layouts
Summary
Chapter 5: Data Collection Gadgets
Background briefing: Arduino basics
Starting with the digital output pins
Mastering the Arduino programming language
Seeing a better blinking light
Simple Arduino sensor data feed
Collecting analog data
Collecting bulk data with the Arduino
Data modeling and analysis with Python
Reducing noise with a simple filter
Solving problems adding an audible alarm
Summary

Book Details

ISBN 139781785283406
Paperback180 pages
Read More
From 1 reviews

Read More Reviews