>> two scripts written in golang that will help you recognize dependency confusion.    

> to check if the sites have the package.json or requirements.txt file:

  >> ./check -w sites.txt
  
> to check if libs exist externally:

  >> ./confusion -w libs.txt -t TYPE (gem, pip or npm)


git clone https://github.com/march0s1as/dep-confusion
cd dep-confusion
chmod +x install.sh
./install.sh

happy hacking!

GitHub

https://github.com/march0s1as/dep-confusion