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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file johndoe-0.0.1.tar.gz.

File metadata

  • Download URL: johndoe-0.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for johndoe-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9b79d45fc6728286952ab5c4c5e49da559d6a006599229b71d4799123c17fb96
MD5 6682a4069eeb0355f2ca01e626437fb7
BLAKE2b-256 6dbe84fd30e13ad5a5e47907f2ba121174fa64d8bf30cb5bd291c5eb77137ef5

See more details on using hashes here.

File details

Details for the file johndoe-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: johndoe-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for johndoe-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e7ea7ea5f8fbb5a43230e836a5a4f7cb66366edfc496620cd8b059944ebab2f
MD5 df17088382b0290b82f06ad89f3a1765
BLAKE2b-256 cb7c957f251f8fa342226ea2b3c7e7629e4b304fde7d6e7f05fc8899c71c08fb

See more details on using hashes here.

Supported by

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