Re:Malicious software libraries found in PyPI posing as well...
by edraferi on Friday September 15, 2017 @10:10AM
(#15257250)
Man. You're right - that's a mess.
[ Parent
| on HN ]
Re:Malicious software libraries found in PyPI posing as well...
by chupapuma on Friday September 15, 2017 @11:38AM
(#15258014)
And just to be super clear, this is the code. Hard from scary or obfuscated:
html = urllib_request.urlopen(
"https://www.pytosquatting.org/pingback/pypi/{}/".format(package_name)
)
raise Exception(
"This is a bogus package that should not be installed\n\n"
"Please read https://www.pytosquatting.org"
)