Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orsinium-labs/sourcemap
Restore the frontend source code from source maps
https://github.com/orsinium-labs/sourcemap
golang javascript js maps pentest pentesting reconnaissance source-maps typescript webpack
Last synced: about 2 months ago
JSON representation
Restore the frontend source code from source maps
- Host: GitHub
- URL: https://github.com/orsinium-labs/sourcemap
- Owner: orsinium-labs
- License: mit
- Created: 2021-06-09T09:37:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T07:28:16.000Z (over 2 years ago)
- Last Synced: 2024-06-19T05:58:25.884Z (7 months ago)
- Topics: golang, javascript, js, maps, pentest, pentesting, reconnaissance, source-maps, typescript, webpack
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sourcemap
Some tools that generate JS code produce "source maps". Source maps allow to restore the original source code from the minified ugly one. You can read more here:
+ [An Introduction to Source Maps](https://blog.teamtreehouse.com/introduction-source-maps) by Treehouse.
+ [Use a source map](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map) by MDN.
+ [Map Preprocessed Code to Source Code](https://developer.chrome.com/docs/devtools/javascript/source-maps/) by Chrome.This tool finds source maps on the given webpage and restores the application source code from it.
## Build
```bash
git clone https://github.com/orsinium-labs/sourcemap.git
cd sourcemap
go build -o sourcemap .
```## Use
Feed URLs into [stdin](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)):
```bash
echo "https://orsinium.dev/" | ./sourcemap --output=./sources
```