A program for extracting information from chrome session files.

Overview

What

A tool for dumping the contents of chrome session files.

Why?

Most tools for reading SNSS files (chrome session files) are either broken or outdated. This tool aims to facilitate scripting by providing a clean way of extracting useful information (like the active tab) from a running or saved chrome session. You could, for instance, use the tool to extract the current page within an external script and download its contents to disk or store it inside a bookmark file.

Installation

From Source

make && sudo make install

Binaries are also available for linux and macOS.

Linux

sudo curl -o /usr/bin/chrome-session-dump -L 'https://github.com/lemnos/chrome-session-dump/releases/download/v0.0.2/chrome-session-dump-linux' && sudo chmod 755 /usr/bin/chrome-session-dump

macOS

sudo curl -o /usr/bin/chrome-session-dump -L 'https://github.com/lemnos/chrome-session-dump/releases/download/v0.0.2/chrome-session-dump-osx' && sudo chmod 755 /usr/bin/chrome-session-dump

Usage

# chrome-session-dump # Print the url of all tabs found in the session in order.
https://ddg.gg
https://protonmail.com

# chrome-session-dump -active # Print the url of the most recently active tab
https://protonmail.com

# chrome-session-dump -printf '%t\n'
Secure email: ProtonMail is free encrypted email.
DuckDuckGo — Privacy, simplified.

# chrome-session-dump -deleted -history|grep 'chrome-session-dump' # Search the history of all (potentially deleted) tabs for a url containing the given expression.
https://github.com/lemnos/chrome-session-dump

A session file (or chrome directory) can optionally be provided as the final argument, by default the tool will look for the most recent session file in ~/.config/chrome.

Caveats

  • Won't work on incognito tabs (since they are not persisted to disk).
  • The output lags behind changes by a few milliseconds since chrome does not immediately flush changes to disk.

To whom it may concern

Please don't use this for evil.

You might also like...
ssdt - Survey security.txt files

ssdt - Survey security.txt files A program to quickly survey security.txt files found on the Alexa Top 1 Million websites. The program takes about 15

A tool to check problems about meta files of Unity
A tool to check problems about meta files of Unity

A tool to check problems about meta files of Unity on Git repositories, and also the tool can do limited autofix for meta files of auto-generated files.

Small utility to allow simpler, quicker testing of parsing files in crowdsec

cs_parser_test Small utility to allow simpler, quicker testing of parsing files in crowdsec Usage $ sudo cs_parser_test -t syslog /var/log/mail.log N

a sharded store to hold large IPLD graphs efficiently, packaged as location-transparent attachable CAR files, with mechanical sympathy

DAG store This README will be populated soon. In the meantime, please refer to the design document.

LogAnalyzer - Analyze logs with custom regex patterns.Can search for particular patterns on multiple files in a directory.
LogAnalyzer - Analyze logs with custom regex patterns.Can search for particular patterns on multiple files in a directory.

LogAnalyzer Analyze logs with custom regex patterns.Can search for particular patterns on multiple files in a directory

Helm plugin to reference value files packaged in dependency charts

Helm Octopus Plugin This Helm plugin allows to reference packaged value files (other than the default values.yaml). Install helm plugin install https:

🔍 A jq-like tool that queries files via glob.

🔍 fq A jq-like tool that queries files via glob. ✅ Prerequisites Go 1.17+ jq (installed and on PATH) 📦 Installation $ go get github.com/siketyan/fq

Package macho implements access to and creation of Mach-O object files.

go-macho [WIP] 🚧 Package macho implements access to and creation of Mach-O object files. Why 🤔 This package goes beyond the Go's debug/macho to: Cov

A utility library to do files/io/bytes processing/parsing in file-system or network.

goreader A utility library to do files/io/bytes processing/parsing in file-system or network. These features are really common to be implemented for a

Comments
  • Feature - Build/support on Windows

    Feature - Build/support on Windows

    Hi, first thanks for taking the time to build and share this tool with the rest of the world!

    I'd like to know if this code could be use "as-is" on windows and if you could provide binaries alongside of macosx and linux ? I'm happy with the Linux build for my desktop but I would be interested on a windows version for other pc I have.

    Thanks again!

    opened by rpurcelldesj 2
  • Compilation error

    Compilation error

    ./chrome-session-dump.go:512:22: newline in string
    ./chrome-session-dump.go:512:22: syntax error: unexpected newline in argument list; possibly missing comma or )
    ./chrome-session-dump.go:513:29: syntax error: unexpected ] at end of statement
    ./chrome-session-dump.go:513:62: invalid character U+005C '\'
    ./chrome-session-dump.go:513:68: newline in string
    

    fix: replace double-quotes " by backticks ` https://github.com/lemnos/chrome-session-dump/blob/master/chrome-session-dump.go#L512-L513

    fmt.Printf(`Usage:
      -session-dump [options] ([session file] | [chrome dir])`)
    
    opened by neomafo88 0
Owner
null
Split multiple Kubernetes files into smaller files with ease. Split multi-YAML files into individual files.

Split multiple Kubernetes files into smaller files with ease. Split multi-YAML files into individual files.

Patrick D'appollonio 185 Sep 26, 2022
Split multiple Kubernetes files into smaller files with ease. Split multi-YAML files into individual files.

kubectl-slice: split Kubernetes YAMLs into files kubectl-slice is a neat tool that allows you to split a single multi-YAML Kubernetes manifest into mu

Patrick D'appollonio 184 Sep 5, 2022
Hex dump and read values of files quickly and swiftly with Go-Hex a program designed to dump any file in a hexadecimal format

Go-Hex Hex dump and read values of files quickly and swiftly with Go-Hex a program designed to dump any file in a hexadecimal format Dump Hashes ----

RE43P3R 0 Oct 10, 2021
go-sysinfo is a library for collecting system information.

go-sysinfo go-sysinfo is a library for collecting system information. This includes information about the host machine and processes running on the ho

elastic 202 Sep 27, 2022
A process that receives probe information and stores it in a database for reporting and analysis

probed is a process that receives probe information and stores it in a database for reporting and analysis.

Weald Technology 0 Dec 10, 2021
Otx - otx tool can scrap to find sensitive information and vulnerable endpoint urls.

otx Description This tool is base on AlienVault Open Threat Exchange (OTX)? and this tool can help you to extract all the urls endpoints which can be

ShaneKhant 3 Aug 17, 2022
utf8 - provide unicode information on runes

utf8 utf8 provides unicode code point values for input runes and the unicode rune (if printable) for a given unicode code point. With no arguments, pr

Sean Hinchee 1 Jan 8, 2022
Perforator is a tool for recording performance metrics over subregions of a program using the Linux "perf" interface.

Perforator Perforator is a tool for recording performance metrics over subregions of a program (e.g., functions) using the Linux "perf" interface.

Zachary Yedidia 33 May 5, 2022
A program to create assembly 8086 strings to print without using any printing/strings related function but only mov-xchg-int and loops

Assembly String builder tool A program to create assembly 8086 strings to print without using any printing/strings related function but only mov-xchg-

Reg 2 Feb 1, 2022
a tool for creating exploited media files for discord

Discord-Exploits A program for creating exploited media files for discord written in Go. Usage discord-exploits is a command line utility, meaning you

schmenn 219 Dec 29, 2021