subjs
subjs copied to clipboard
Added JSON Lines and Cookies
Hi Corben,
Thanks for sharing this tool with the community!
I needed a few things so I added them. If you think they're useful, feel free to merge :-).
-
JSON Lines Sometimes a js file is hosted on a different domain than the one in the input file, so when having many source URLs it was difficult to know which URL the finding originated from. I implemented the
-jslflag that prints the output in JSON Lines, containing the source URL as well. For example: -
Cookies I saw this was a requested feature so I implemented it.
-
Regex tweak
r := regexp.MustCompile(`[(\w./:)]*\.js`)
Not sure if this was intended but initially it also matched js and not only .js.
So strings like blajs were matched as well.
- README.md
Changed the install command to use
go installinstead ofgo getand added the new flags.
Cheers! :-)