Skip to content

interc00ler/MapHawk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

MapHawk

MapHawk is a security-oriented sourcemap reconstruction and frontend analysis tool.

It reconstructs original frontend source code from JavaScript .map files and optionally scans the recovered code for:

  • Hardcoded secrets
  • API keys
  • Tokens
  • Credentials
  • Sensitive configuration values
  • Source code comments and TODOs

Usage

  • Reconstruct sourcemaps from URL (or a single file)
    • Stores the output under ./reconstructed/
    • Stores the downloaded .map under ./map_files/
python3 maphawk.py -f map_files_urls.txt
  • Make it search for patterns in the files you downloaded with the -r and -c options:
python3 maphawk.py -f map_files_urls.txt -r -c
  • Create your own regex (it is not needed to always download and reconstruct, you can just indicate the reconstruction directory):
python3 maphawk.py -o /path/to/reconstructed --pattern "password|token|secret"

About

Sourcemap reconstruction and frontend analysis tool.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages