Skip to main content

package for testing package installation process

Project description


The intention of this application is to test whether your environment will download any package from PyPi. PyPi allows anybody (even John Doe) to upload packages to the internet, but a companies infrastructure should have suitable measures in place so that only trusted packages are downloaded.

The package tries to find some interesting data on your machine and prints them to the console. If this was a genuinely malicious program, it could be sending the information to an unsavoury destination.

Hopefully the app highlights some flaws in processes, or at least confirms their usefulness.


from johndoe import findinfo
from pprint import pprint

hostname = findinfo.findHostName()
domainname = findinfo.getDomainName()
cpu_percent = findinfo.getCpu()
user = findinfo.getUser()
gpinfo = findinfo.getGroupPolicyInfo()

print("hostname is {}".format(hostname))
print("domain name is {}".format(domainname))
print("cpu percentaage is {}".format(cpu_percent))
print("user is {}".format(user))
pprint("group policy info is {}".format(gpinfo))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

johndoe-0.0.1.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

johndoe-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page