Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
iOS Forensics Cookbook
iOS Forensics Cookbook

iOS Forensics Cookbook: Over 20 recipes that will enable you to handle and extract data from iOS devices for forensics

eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

iOS Forensics Cookbook

Chapter 1. Saving and Extracting Data

Since their launch, iOS devices have always attracted developers in ever-increasing numbers. There are numerous applications for iOS devices available in the market. While developing applications, we frequently need to save application data into the device's local memory.

In this chapter, you will learn various ways to read and write data to iOS device directory.

In this chapter, we will cover:

  • The Documents directory
  • Saving data using the RAW file
  • Saving data in the SQLite database
  • Learning about Core data

The Documents directory

Our app only runs in a "sandboxed" environment. This means that it can only access files and directories within its own contents, for example, Documents and Library. Every app has its own document directory from which it can read and write data as and when needed. This Documents directory allows you to store files and subdirectories created by your app. Now, we will create a sample project to understand the Document directories in much more depth.

Getting ready

Open Xcode and go to File | New | File and then navigate to iOS | Application | Single View Application. In the popup, provide the product name DocumentDirectoriesSample.

How to do it...

Perform the following steps to explore how to retrieve the path of document directories:

  1. First, we will find out where in simulators and iPhones our document directories are present. To find the path, we need to write some code in our viewDidLoad method. Add the following line of code in viewDidLoad:
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSLog(@"%@", documentsDirectory);

    In the preceding code, first we fetch the existing path in our path's array. Now, we will take the first object of our path array in a string that means our string contains one path for our directory. This code will print the path for document directory of the simulator or device wherever you are running the code.

  2. To create the folder in documentsDirectory, run the following code:
    NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"/MyFolder"];
    if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath])
      [[NSFileManager defaultManager] createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:nil];

    In the preceding code snippet, the [documentsDirectory stringByAppendingPathComponent:@"/MyFolder"] line will create our folder in the Document directory and the last code of NSFileManager will check whether that dataPath exists or not; if it does not exist, then it will create a new path.

  3. Now, compile and run the project; you should be able to see the path of Document directories in your project console. This should look like the following screenshot:
    How to do it...
  4. Now, go to Finder; from the options, select Go to Folder and paste the documentsDirectory path from the console. This will navigate you to the Documents directory of the simulator. The Documents directory will look like the following screenshot:
    How to do it...

Saving data using the RAW file

In the previous section, you learned about the Document directories. Now, in this section we will explore this in more detail. You will learn about saving RAW files in our application's document directory.

Getting ready

We will use the preceding project for this section as well. So, open the project and follow the next section.

How to do it...

Perform the following steps to write data into your Documents directory:

  1. Now, we will create a .txt file in our folder (which we created in the document directory). Customize the code in viewDidLoad: as follows:
    dataPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"myfile.txt"];
    NSLog(@"%@", dataPath);

    The preceding code will create a .txt file of name myfile.txt.

  2. To write something into the file, add the following code:
    NSError *error;
    NSString *stringToWrite = @"1\n2\n3\n4";
    dataPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"myfile.txt"];
    [stringToWrite writeToFile:dataPath atomically:YES encoding:NSUTF8StringEncoding error:&error];

    The writeToFile method is used to write data in our file.

  3. Now, to read the data from the file, there's the stringWithContentsOfFile method. So add the following method inside the code:
    NSString *str = [NSString stringWithContentsOfFile:dataPath encoding:NSUTF8StringEncoding error:&error];
    NSLog(@"%@", str);
  4. To see the mayflies.txt file in the Documents directory, go to the GoToFolder finder and paste dataPath from the console. It will take you to mayflies.txt. The final file should look something like the following screenshot:
    How to do it...
  5. In the screenshot, you can see the two files have been created. As per our code, we have created myfile.txt and myfile.pdf. We have also created MyFolder in the same Documents folder of the app.

Saving data in the SQLite database

When we come across iPhone app design at the enterprise level, it will become very important to save data internally in some storage system. Saving data in the Document directory will not serve the purpose where there is a huge amount of data to save and update. In order to provide such features in iOS devices, we can use the SQLite database to store our data inside the app. In this section of our chapter, our primary focus will be on ways to read and write data in our SQLite database. We will start by saving some data in the database and will then move forward by implementing some search-related queries in the database to enable the user to search the data saved in the database.

Getting ready

To develop a mini app using SQLite database, we need to start by creating a new project by performing the following steps:

  1. Open Xcode and go to File | New | File, and then, navigate to iOS | Application | Single View Application. In the popup, provide the product name SQLite Sample. It should look like the following screenshot:
    Getting ready
  2. Click on Next and save the project. After creating the project, we need to add a SQLite library (libsqlite3.dylib). To add this library, make sure that the General tab is open. Then, scroll down to the Linked Frameworks and Libraries section and click on the + button and add the libsqlite3.dylib library to our project:
    Getting ready

How to do it...

Now, our project is ready to save the SQLite data. For that, we need to write some code. Perform the following steps to update the project as per our requirements:

  1. Before we can create a database, we need to import the SQLite framework at the top of the screen. Now, declare a variable for sqlite3 and create a NSString property to store the database path. Within the main Xcode project navigator, select the DatabaseViewController.h file and modify it as follows:
    #import <UIKit/UIKit.h>
    #import <sqlite3.h>
    
    @interface DatabaseViewController : UIViewController
    
    @property (strong, nonatomic) NSString *pathDB;
    @property (nonatomic) sqlite3 *sqlDB;
    @end
  2. Now it's time to design our user interface for the SQLite iPhone application. Select the storyboard and then drag and drop the table view to the view along with the table view cell. For tableviewcell, select the Subtitle style from the attribute and give it an identifier (for example, cell); and add one button on the navigation bar (style -> add). Make an outlet connection of the table view and button to ViewController.h.

    The final screen should look like the following screenshot:

    How to do it...
  3. Now we will have to connect the table view outlet with the code. For that, press Ctrl and drag the tableView object to the ViewController.h file. Once connected, you should be able to see the connection in the dialog box with an establish outlet connection named tableView. Repeat the steps to establish the action connections for all the other UI components in view.

    Once the connections are established for all, on completion of these steps, the ViewController.h file should read as follows:

    #import <UIKit/UIKit.h>
    #import <sqlite3.h>
    
    @interface ViewController: UIViewController <UITableViewDataSource, UITableViewDelegate>
    
    @property (strong, nonatomic) NSString *pathDB;
    @property (nonatomic) sqlite3 *sqlDB;
    @property (weak, nonatomic) IBOutlet UITableView *tableView;
    
    (IBAction)navigateToNextView:(id)sender;
    
    @end
  4. Now we need to check whether the database file already exists or not. If it is not there, then we need to create the database, path, and table. To accomplish this, we need to write some code in our viewDidLoad method. So go to the ViewController.m file and modify the viewDidLoad method as follows:
    - (void)viewDidLoad {
      [super viewDidLoad];
      NSString *directory;
      NSArray *dirPaths;
      dirPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *documentsDirectory = [paths objectAtIndex:0];
      NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"/MyFolder"];
      if (![[NSFileManager defaultManager] fileExistsAtPath:dataPath])
        [[NSFileManager defaultManager] createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:nil];
      directory = dirPaths[0];
      _pathDB = [[NSString alloc]
      initWithString: [directory stringByAppendingPathComponent:@"employee.db"]];
      NSFileManager *filemgr = [NSFileManager defaultManager];
      if ([filemgr fileExistsAtPath: _pathDB] == NO)
      {
        const char *dbpath = [_pathDB UTF8String];
        if (sqlite3_open(dbpath, &_sqlDB) == SQLITE_OK)
        {
          char *errMsg;
          const char *sql_stmt =
            "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT, DESIGNATION TEXT)";
    
          if (sqlite3_exec(_sqlDB, sql_stmt, NULL, NULL, &errMsg) != SQLITE_OK)
          {
            NSLog(@"Failed to create table");
          }
          sqlite3_close(_sqlDB);
        } else {
          NSLog(@"Failed to open/create table");
      }
    }

    The code in the preceding method performs the following tasks:

    First, we identify the paths available in our directory and store them in an array (dirPaths). Then, we create the instance of NSFileManager and use it to detect whether the database has been created or not. If the file has not been created, then we create the database via a call to the SQLite sqlite3_open() function and create the table as well. And at last, we close the database.

  5. Create a new class named SecondViewController. Go to the storyboard and drag one view controller to the canvas. Design the UI according to the following screenshot:
    How to do it...

    Now make an outlet and action connection for this.

  6. Create some properties in SecondViewController.h:
    @property (strong, nonatomic) NSString *pathDB;
    @property (nonatomic) sqlite3 *sqlDB;
  7. In addition, to save the data first, we need to check whether the database is open or not; if it is open, then write a query to insert the data in our table. After writing the data in our table, clear the text present in the text fields. At last, close the database as well.

    In order to implement this behavior, we need to modify the save method:

    - (IBAction)saveButton:(id)sender {
      sqlite3_stmt *statement;
      const char *dbpath = [_pathDB UTF8String];
      if (sqlite3_open(dbpath, &_sqlDB) == SQLITE_OK)
      {
        NSString *sqlQuery = [NSString stringWithFormat: @"INSERT INTO EMPLOYEE (name, designation) VALUES (\"%@\",\"%@\")",self.nameTextField.text, self.designationTextField.text];
    
        const char *sqlSTMNT = [sqlQuery UTF8String];
        sqlite3_prepare_v2(_sqlDB, sqlSTMNT,
        -1, &statement, NULL);
            if (sqlite3_step(statement) == SQLITE_DONE)
            {
                self.nameTextField.text = @"";
                self.designationTextField.text = @"";
            } else {
                NSLog(@"Failed to add contact");
            }
            sqlite3_finalize(statement);
            sqlite3_close(_sqlDB);
        }
    }
  8. Now we want to populate this saved data in tableview. To achieve this task, go to ViewController.m and create one mutable array using the following line of code and initialize it in viewDidLoad. This array is used to save our SQLite data:
    NSMutableArray *dataFromSQL;
  9. In the same class, add the following code to the action button to push the view to new view:
    SecondViewController *secondView = [self.storyboard instantiateViewControllerWithIdentifier:@"SecondViewController"];
    secondView.pathDB = self.pathDB;
    secondView.sqlDB = self.sqlDB;
    [self.navigationController pushViewController:secondView animated:YES];
  10. Create the viewWillAppear method in the ViewController class and modify it as in the following code:
    -(void)viewWillAppear:(BOOL)animated
    {
      [super viewWillAppear:animated];
      [dataFromSQL removeAllObjects];
      [self.tableView reloadData];
      const char *dbpath = [_pathDB UTF8String];
      sqlite3_stmt *statement;
    
      if (sqlite3_open(dbpath, &_sqlDB) == SQLITE_OK)
      {
        NSString *querySQL = [NSString stringWithFormat:
          @"SELECT name, designation FROM EMPLOYEE"];
    
        const char *query_stmt = [querySQL UTF8String];
    
        if (sqlite3_prepare_v2(_sqlDB, query_stmt, -1, &statement, NULL) == SQLITE_OK)
        {
          while (sqlite3_step(statement) == SQLITE_ROW)
          {
            NSString *name = [[NSString alloc] initWithUTF8String:
            (const char *) sqlite3_column_text(statement, 0)];
    
            NSString *designation = [[NSString alloc] initWithUTF8String:
            (const char *) sqlite3_column_text(statement, 1)];
            NSString *string = [NSString stringWithFormat:@"%@,%@", name,designation];
            [dataFromSQL addObject:string];
          }
          [self.tableView reloadData];
          sqlite3_finalize(statement);
        }
        sqlite3_close(_sqlDB);
      }
    }

    In the preceding code, first we open SQLite and then we fire a query SELECT name, designation FROM EMPLOYEE through which we can get all the values from the database. After that, we will make a loop to store the values one by one in our mutable array (dataFromSQL). After storing all the values, we will reload the tableview.

  11. Modify the tableview data source and the delegate method as follows, in ViewController.m:
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return dataFromSQL.count;
    }
    
    (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    
      static NSString *CellIdentifier = @"GBInboxCell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    
      if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
      }
    
      if (dataFromSQL.count>0) {
        NSString *string = [dataFromSQL objectAtIndex:indexPath.row];
        NSArray *array = [string componentsSeparatedByString:@","];
        cell.textLabel.text = array[0];
        cell.detailTextLabel.text =array[1];
    
      }
      return cell;
    }
  12. The final step is to build and run the application. Feed the contact details in the second page of the application:
    How to do it...
  13. Now click on the Save button to save your contact details to the database.
  14. Now, when you go back to the Employee List view, you will see the newly saved data in your table view:
    How to do it...

Learning about core data

Saving data is an important feature of almost all iOS apps. Apple has provided one more option for developers to save data using the native database, which is called Core data. This section will introduce us to the basics of core data with an example project. In the previous section, you learned about SQLite, and in this section, we will migrate from the same database to core data. The objectives will be to allow the user to save data in the database and fetch it.

Getting ready

In order to proceed with this exciting topic, we will create a new project. To create a new project, open Xcode and perform the following functions:

  1. From the File menu, select the option to create a new project.
  2. Then, select the Single View Application option. Make sure that while creating the project, the Use Core Data checkbox is checked.
  3. Then, click on Next and select a location to save your project. Now you will see that the Xcode has created a new project for us and will launch the project window.

While having a closer look at the project files on the right-hand panel, we will observe an additional file named CoreData.xcdatamodeld. This is the file that is going to hold all our entity-level descriptions for data models.

How to do it...

Perform the following steps to learn the implementation of core data in iOS applications:

  1. To use the core data in an application, first we will have to create the entity for the CoreData application. For this, select the CoreData.xcdatamodeld file and load it in the entity editor:
    How to do it...
  2. In order to add new entities to the data model, click on the Add Entity button, which is located in the bottom bar. Once the entity is created, double-click on New Entity and change its name to Employee.
  3. Once the entity is created, we can now add attributes for it in order to represent the data for the model. Click on the Add Attribute button (+) to add attributes to the entity. For each attribute that is added, set the appropriate type of data. Similarly, add all the attributes one after another.
    How to do it...
  4. Now we will create the user interface for the application and will connect all the UI components with their respective IBOutlets and actions. Here, we are following a design similar to our SQLite sample; over and above design, we will add one more class, which is SecondViewController:
    How to do it...
  5. Check all the IBOutlet connections in the SecondViewController.h file, all the properties should have a dark circle indicator. Then we need to import the AppDelegate.h file at the top. After all the changes the class will look similar to following code:
    #import <UIKit/UIKit.h>
    #import "AppDelegate.h"
    
    @interface SecondViewController : UIViewController
    @property (weak, nonatomic) IBOutlet UITextField *nameTextField;
    @property (weak, nonatomic) IBOutlet UITextField *designationTextField;
    
    - (IBAction)saveButton:(id)sender;
    @end
  6. When the user touches the Save button, the save method is called. We need to implement the code to obtain the managed object context and create and store managed objects containing the data entered by the user. Select the ViewController.m file, scroll down and save the method, and implement the code as follows:
    - (IBAction)saveButton:(id)sender {
      AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
    
      NSManagedObjectContext *context =
      [appDelegate managedObjectContext];
      NSManagedObject *newContact;
      newContact = [NSEntityDescription insertNewObjectForEntityForName:@"Employee" inManagedObjectContext:context];
    
        [newContact setValue: _nameTextField.text forKey:@"name"];
        [newContact setValue: _designationTextField.text forKey:@"designation"];
      _nameTextField.text = @"";
      _designationTextField.text = @"";
    }

    In the preceding code, we created a shared instance of [UIApplication sharedApplication]. This code snippet will always give the same instance every time. Afterwards, it will create nsmanagedobject with the entity we created in CoreData.xcdatamodel, and then it will set the values for the keys.

  7. Now we need to populate the same data in our tableview. To achieve that, go to ViewController.m, create one mutable array (for example, dataFromCore) to save our data from CoreData to local, and modify viewWillAppear:
    -(void)viewWillAppear:(BOOL)animated
    {
      [super viewWillAppear:animated];
    
      [dataFromCore removeAllObjects];
      [self.tableView reloadData];
      AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
      NSManagedObject *matches = nil;
      NSManagedObjectContext *context = [appDelegate managedObjectContext];
    
      NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@"Employee" inManagedObjectContext:context];
    
      NSFetchRequest *request = [[NSFetchRequest alloc] init];
      [request setEntity:entityDesc];
    
      NSError *error1 = nil;
      NSArray *results = [context executeFetchRequest:request error:&error1];
      if (error1 != nil) {
        NSLog(@"%@", error1);
      }
      else {
        for (matches in results) {
          NSLog(@"%@.....%@", [matches valueForKey:@"name"],[matches valueForKey:@"designation"]);
          NSString *string = [NSString stringWithFormat:@"%@,%@",[matches valueForKey:@"name"],[matches valueForKey:@"designation"]];
          [dataFromCore addObject:string];
    
        }
      }
      [self.tableView reloadData];
    }

    Again, it will create the shared instance of [UIApplication sharedApplication] and it will return the same instance as previously. Now, we are fetching the data from NSFetchRequest using NSEntityDescription and saving the result in one array. After that, we retrieve the values from the keys, one by one, and add them to our mutable array (dataFromCore), and at last, reload our tableview.

  8. Our tableview methods should look similar to the following code. If they do not, then modify the code:
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
      return dataFromCore.count;
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
      static NSString *CellIdentifier = @"GBInboxCell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
      }
      if (dataFromCore.count>0) {
        NSString *string = [dataFromCore objectAtIndex:indexPath.row];
        NSArray *array = [string componentsSeparatedByString:@","];
        cell.textLabel.text = array[0];
        cell.detailTextLabel.text =array[1];
    
      }
      return cell;
    }
  9. The final step is to build and run the application. Enter the text in the second view and hit Save to save your contact details in our database:
    How to do it...

Now, when you go back to the Employee List view, you will see the newly saved data in your table view as shown in the following screenshot:

How to do it...
Left arrow icon Right arrow icon

Key benefits

  • This book gets you straight into solving even the most complex iOS forensic problems with easy-to-understand recipes
  • Get to grips with extraction and analysis techniques to perform forensic investigations on iOS devices
  • Gain insights into how to protect your data and perform data recovery from iOS-based devices

Description

Mobile device forensics is a branch of digital forensics that involves the recovery of evidence or data in a digital format from a device without affecting its integrity. With the growing popularity of iOS-based Apple devices, iOS forensics has developed immense importance. To cater to the need, this book deals with tasks such as the encryption and decryption of files, various ways to integrate techniques withsocial media, and ways to grab the user events and actions on the iOS app. Using practical examples, we’ll start with the analysis keychain and raw disk decryption, social media integration, and getting accustomed to analytics tools. You’ll also learn how to distribute the iOS apps without releasing them to Apple’s App Store. Moving on, the book covers test flights and hockey app integration, the crash reporting system, recovery tools, and their features. By the end of the book, using the aforementioned techniques, you will be able to successfully analyze iOS-based devices forensically.

Who is this book for?

If you are an iOS application developer who wants to learn about a test flight, hockey app integration, and recovery tools, then this book is for you. This book will be helpful for students learning forensics, as well as experienced iOS developers.

What you will learn

  • Discover the various ways to save data in the document directory of the device
  • Get to grips with encrypting and decrypting of files saved in the document directories
  • Explore ways to integrate social media with iOS applications
  • Grab the user events and actions on the iOS application using analytic tools
  • Analyze useful information from the data gathered in the cloud
  • Grasp numerous concepts associated with air application distribution
  • Track errors in an application effectively to document them for forensic analysis
  • Read crash reports accumulated on iTunesConnect and decode them to generate and gather useful information
Estimated delivery fee Deliver to Finland

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 29, 2016
Length: 184 pages
Edition : 1st
Language : English
ISBN-13 : 9781783988464
Vendor :
Apple
Category :
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Finland

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Publication date : Jan 29, 2016
Length: 184 pages
Edition : 1st
Language : English
ISBN-13 : 9781783988464
Vendor :
Apple
Category :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 105.97
Mastering Python Forensics
€33.99
Learning Network Forensics
€41.99
iOS Forensics Cookbook
€29.99
Total 105.97 Stars icon
Banner background image

Table of Contents

8 Chapters
1. Saving and Extracting Data Chevron down icon Chevron up icon
2. Social Media Integration Chevron down icon Chevron up icon
3. Integrating Data Analytics Chevron down icon Chevron up icon
4. App Distribution and Crash Reporting Chevron down icon Chevron up icon
5. Demystifying Crash Reports Chevron down icon Chevron up icon
6. Forensics Recovery Chevron down icon Chevron up icon
7. Forensics Tools Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
(1 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 0%
1 star 100%
Jorge Jan 07, 2018
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
I really waste my time reading this book... I'm in the middle of a case and I was trying to solve an issue that popped up and this book pretends to have the solution and it has not... is more about using databases and another social media API`s.... only 1 forensic chapter and nothing as deep as it claims.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela