Skip to content

VALFE08 (Vishwa's Android Log File Extractor) is a utility tool, which enables users to acquire forensic data from android devices in a simple manner.

License

Notifications You must be signed in to change notification settings

code-reaper08/VALFE08

Repository files navigation

VALFE08 ( Vishwa's Android Log File Extractor )

VALFE08 (Vishwa's Android Log File Extractor) is a utility tool, which enables users to acquire forensic data from android devices in a simpler manner.

It is a CLI-based utility tool that uses Python and ADB to extract relevant forensic log files from an android device.

How to use

Note: VALFE08 is not ready for production yet and it is only tested on Windows as of now.

Prepackaged binary for Windows is available in the releases section if you are interested (checksum are provided as well for the executables). However, I will happy if you test it out on your device and help with the project.

Requirements

The following are required to run the source code/VALFE08,

  1. Python 3.11.1 and PIP 22.3.1
  2. ADB

ADB is necessary for VALFE08 to work. Download and Install ADB from the official source and the same to the system path.

VALFE08 also requires the target android device to be connected via USB in debugging mode. For this to work, one needs to enable USB debugging and accept the correct RSA Fingerprint prompted on the android device, to validate the connection. You can read more about enabling USB Debugging in your android device here.

Note: Enabling USB debugging may vary from device to device, please have a glance at your device manufacturer's device manual to know more.

Please see requirements for additional packages to install.

Instead of manually installing the packages, it is highly recommended to install from the requirements file using the below command from the root directory.

pip install -r requirements.txt

After all the requirements are downloaded and installed, you can use VALFE08 by directly executing it with python.

python genisis.py

Downloding and Installing VALFE08

VALFE08's source code can be run by following these instructions, however, for a very non-techy user, it might still pose some groundwork in installing the necessary tools and environment to run VALFE08. To ease this, such users can use the official VALFE08 installer script provided in this repository. An uninstall script is also provided to remove VALFE08 from the system.

What the installer script does

The installer scripts download ADB and VALFE08 and create a session-level environment for executing VALFE08. It means the ADB you've installed through the script will be available to VALFE08 for the current ongoing PowerShell session only and will be unavailable when closing the PowerShell window. It is indeed good in many ways by not cluterring the system environment. However, if you want the ADB to be global and persistent, you can always add the platform-tools directory to the system path.

Windows

To use the script follow the below steps,

  1. Download the installer script from here
  2. Run the downloaded script in PowerShell by .\install.ps1
  3. Or, you can click on the installed script and then click on the open with PowerShell option

Uninstall VALFE08

  1. Download the uninstall script from here
  2. Run the downloaded script in PowerShell by .\uninstall.ps1
  3. Or, you can click on the installed script and then click on the open with PowerShell option

Note: When prompted about changing the execution policy in PowerShell for running the script, do so to run the script. You can also use the below command in powershell to bypass execution policy in a file-level scope.

powershell -ExecutionPolicy Bypass -File .\installer.ps1

Encryption in VALFE08

VALFE08 by default encrypts the extracted log files for ensuring file integrity. It is advised not to tamper with file structures so that the decryption process is carried out efficiently. Each run of VALFE08 produces a filekey.key, this key must be handled with care since it is symmetric. Though in most cases immediate decryption is preferred, there's an option to decrypt later as well. When choosing the decrypt later option, the filekey.key should be securely held and it is the user's responsibility to do so.

VALFE-Decryptor

It is a decryption entity, which takes care of decrypting the encrypted extracted files. By Nature VALFE-Decryptor needs filekey.key, specimen/ directory, and locked files inside it to start the decryption process. So when decrypting please ensure the above criteria are met.

Contribution

VALFE08 is still in its pre-release and welcomes all kinds of contributions.

License

VALFE08 is licensed under the BSD 3-Clause License.

BSD 3-Clause License

Copyright (c) 2022, Vishwa.R

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

If you like the project, please give a ⭐ for the repo. If you have any feedback regarding VALFE08, kindly contact me.

About

VALFE08 (Vishwa's Android Log File Extractor) is a utility tool, which enables users to acquire forensic data from android devices in a simple manner.

Topics

Resources

License

Stars

Watchers

Forks