~synfinner/GoJSpull

Golang utility to pull external js links and get the sha256 signature of each js file.
Added code comments
Update README
Updated regex again. There was an issue where things would break trying to rebuild a resource that included html characters

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~synfinner/GoJSpull
read/write
git@git.sr.ht:~synfinner/GoJSpull

You can also use your local clone with git send-email.

GoJSpull

This Golang utility is made to find js file locations, navigate to them, then get the sha256 hash of each js file.

While this utility isn't advanced, it can be useful to see if something on your site or someone else's site changed.

Updates

  • 2020/07/06 - Might investigate using xpaths to pull data as well.

Example

synbook-pro :: Go/GoJSpull ยป ./GoJSpull https://synfinner.ru
[+]Status: client connected...
https://synfinner.ru/js/main.js - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
https://synfinner.ru/js/feather.min.js - a81778e3ba898e563988cfb0ce24570bf7e9d594bf545edbd295e7f2200d029b

The code in this may not be the best. I'm still learning stuff.