rverton / webanalyze

Port of Wappalyzer (uncovers technologies used on websites) to automate mass scanning.
MIT License
908 stars 134 forks source link

cannot unmarshal array into Go struct field App.technologies.meta of type string #45

Closed dogasantos closed 2 years ago

dogasantos commented 3 years ago

Hey there! Thanks for this port, this is really awesome!

I'm havin an issue with, are you guys seeing this too ?

2021/02/04 19:21:07 initialization failed: json: cannot unmarshal array into Go struct field App.technologies.meta of type string

version 0.3.2 Ty

revitteth commented 3 years ago

Looks like an update to the json there is causing issues, for now try this version of the apps:

https://raw.githubusercontent.com/AliasIO/wappalyzer/965f0fcad60c8dc774e8b949ca01b12565f2de09/src/technologies.json

PFAhard commented 3 years ago

It's Don't help

rverton commented 3 years ago

I guess its because wappalyzer changed their JSOn structure again, as @maxrev17 suggested. I think I can have a look later/tomorrow.

dogasantos commented 3 years ago

Thanks for the update. @maxrev17 workaround works just fine.

I'd recommend keep a validated copy of technologies.json whitin the repository. In case any change happens in the future, this tool will still work until an update is released.

rverton commented 3 years ago

@dogasantos thats a good idea. I checked the license and it looks like I can just include it because both are MIT.

I will fix the current schema and add the current technologies.json as a base to the repository in the next commit.

rverton commented 3 years ago

I pushed 4b7ed27 which fixes the schema bug. It also includes a current technologies.json file as suggested by @dogasantos. Feel free to check, I will tag and release later.

dogasantos commented 3 years ago

Thanks @rverton !

abdilahrf commented 3 years ago

appreciate the update @rverton 👍 , i've got the same problem

BartBaj commented 3 months ago

Hello, what I see the issue comes back. └─$ webanalyze -update
2024/03/26 09:43:02 app definition file updated from https://raw.githubusercontent.com/AliasIO/Wappalyzer/master/src/apps.json

└─$ webanalyze -host resources.bayer.com.au
2024/03/26 09:45:39 initialization failed: json: cannot unmarshal number into Go value of type webanalyze.AppsDefinition

So what I understand from the previous discussion, it should be updated from technologies.json rather than apps.json?