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


Release history Release notifications

Download files

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

Files for johndoe, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size johndoe-0.0.1-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size johndoe-0.0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page