Skip to main content

package for testing package installation process

Project description

johndoe

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.

Usage

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 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page