Giter VIP home page Giter VIP logo

cryptneturlcacheparser's Introduction

CryptnetURLCacheParser

CryptnetURLCacheParser is a tool to parse CryptAPI cache files located on the following paths:

C:\Windows\System32\config\systemprofile\AppData\LocalLow\Microsoft\CryptnetUrlCache
C:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Microsoft\CryptnetUrlCache
C:\Users\<USERNAME>\AppData\LocalLow\Microsoft\CryptnetUrlCache

The metadata folder contains metadata about the downloaded files. Each file contain the following data:

  1. Timestamp : This is the last time the file was downloaded.
  2. URL : The URL form where the file was downloaded.
  3. FileSize : The downloaded file size in bytes.
  4. MetadataHash : The hash for the downloaded file. The following is some of the hashing algorithms absorved:
    • SHA1
    • SHA256
    • MD5
  5. FullPath : The full path for the parsed file.
  6. MD5 (Optional) : The calculated MD5 hash for the actual file in the content folder. This field is only available if you used the --useConent option.

Installation

From source

clone the repository:

git clone https://github.com/AbdulRhmanAlfaifi/CryptnetURLCacheParser

Precompiled

You can use the latest compiled windows executable from the release section.

How to use

The following is the command line tool help message:

usage: CryptnetUrlCacheParser.py [-h] [-d DIRS [DIRS ...]] [-o OUTPUT]
                                 [--outputFormat {csv,json,jsonl}]
                                 [--useContent]

CryptnetUrlCache Metadata Parser - Developded by AbdulRhman Alfaifi

optional arguments:
  -h, --help            show this help message and exit
  -d DIRS [DIRS ...], --dirs DIRS [DIRS ...]
                        A list of dirs that contain certutil cache files
                        (default: all certutil cache paths)
  -o OUTPUT, --output OUTPUT
                        The file path to write the output to (default: stdout)
  --outputFormat {csv,json,jsonl}
                        The output formate (default: csv)
  --useContent          Try finding the cached file and calculate the MD5 hash
                        for it
  • -d or --dirs : a list of directories that contains CryptnetUrlCache metadata files. the default paths are :

    • C:\Windows\System32\config\systemprofile\AppData\LocalLow\Microsoft\CryptnetUrlCache
    • C:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Microsoft\CryptnetUrlCache
    • C:\Users<USERNAME>\AppData\LocalLow\Microsoft\CryptnetUrlCache
  • -o or --output : the output file path. default to stdout.

  • --outputFormat : the results output format. you can choose from the following:

    • csv (default)
    • json
    • jsonl
  • --useContent : try to find the actual file related to the metadata file and calculate it's MD5 hash. The following are the steps taken to accomplish this task:

    • Save the metadata file name (ex. 00000000000000000000000000000000)
    • Go to parent directory.
    • Go inside Conent directory.
    • Check if the metadata file name saved earlier is present. (ex. 00000000000000000000000000000000)
    • If preset calculate file's MD5 hash, otherwise return 00000000000000000000000000000000

File Structure & Artifact Specifics

I wrote a blog post that describe the file structure for the metadata files. You can find it here https://u0041.co/blog/post/3.

cryptneturlcacheparser's People

Contributors

abdulrhmanalfaifi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.