Skip to content

cedowens/JXA-Firefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JXA-Firefox

JXA Scripts for extracting data from Firefox

This repo contains two JXA (JavaScript for Automation) scripts for extracting info from Firefox on macOS. Scripts:

  1. Firefox_extract_cookies.js: Reads cookie and expiry date info from the cookies.sqlite database file. Output is presented in the following format:

cookie name | cookie value | host | path | expire date | isSecure | isHttpOnly | sameSite

  1. Firefox_extract_history.js: Reads url and visit date info from the places.sqlite database file. Output is presented in the following format:

Date | URL

Neither sqlite database file is protected by TCC so these files are readable without any TCC popups. If either file is locked (browser running), you can simply copy the file to another location and read from that file instead

Using With Mythic C2

jsimport Firefox_extract_cookies.js (or jsimport Firefox_extract_history.js)

jsimport_call cookie_extract() (or jsimport_call history_extract())

You can also run either cookie or history collection for a specific user, by passing their username as an option like this:

jsimport_call cookie_extract({user: "dev"}) (or jsimport_call history_extract({user: "dev"}))

Image

Image

Results will be returned in Mythic console

About

JXA Scripts for extracting data from Firefox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published