Protect your Linux PC from viruses using a safer alternative to `curl ... | sh` or `wget ... | sh`
Project description
cursh
Protect your Linux PC from viruses using a safer alternative to curl ... | sh or wget ... | sh
How it will work
It will use multiple verification steps. At any of these steps, if HTTPS/TLS auth fails, it will immediately abort. Also, if it has root priveleges, it will ALWAYS ask the user before executing, even if it determined it as safe. When asking the user, these are the options the user has:
- Check the script, maybe edit it, then run it.
- Save the script.
- Do nothing (dont run)
- Run anyway (not recommended)
- Check if the patterm matches
trusted.json(hosted here and updated). If so,- Check the version list. If the version also matches, then its trusted.
- If version does not match, ask the user first.
- If its not in
trusted.json,- Check for the first line containing
SHA256:. If found, check the URL for an SHA256 sum. If it matches, save the result to a variable. - Check for the first line containing
PGP/GPG signature:. If found, check the URL and see if the PGP is valid and matches the file. If so, save that to another variable. - Check what the domain is and look it up in some trusted domains API (unless its something like Github)
- Request the URL with different user agents. Check if they are the same as the result with the
curluser agent. - Display all these results to the user and let the user decide one of four options.
- Check for the first line containing
Files
trusted.json: database of trusted scriptscheck.py: check if all the URLs are valid.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cursh-1.0.0.tar.gz.
File metadata
- Download URL: cursh-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90ee5055f37cd5578ce9ec0364e93f6c18cd6413a4b52d861c30a511eeb9c8cb
|
|
| MD5 |
4797a46004e78834e6878ea57a0929bf
|
|
| BLAKE2b-256 |
a27d5adb3e831cf0b2012f5f864b408201fc321e0473b5c760b30d78c25bf5e1
|
File details
Details for the file cursh-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cursh-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e58cc74ea600f43c73229d5f9ad18f168bfc14c13c9a36600ce4941e63337b09
|
|
| MD5 |
dee0146de52ebc5eaaf8a48b663b74fe
|
|
| BLAKE2b-256 |
044a9fda23e7dafdbc343089ad52382722d397d3c92cb3b622da65f9fed76bb3
|