b4sh
Create, Use and share bash commands easily.
Requirements
- pip (3.x recommend)
How to install
pip3 install b4sh
How to use
$ b4sh -h
[x] Starting b4sh...
usage: b (or b4sh) [-h] [-g GET] [-f FIND] [-c CREATE] [-ls LIST] [-v]
optional arguments:
-h, --help Show this help message and exit.
-g, --get To get a b4sh by key/id, Ex: b4sh -g apache2_eerft.
-f, --find To find a b4sh by name online, Ex: b4sh -f nginx.
-r, --run To run directly with the good key/id, Ex: b4sh -r nginx_eedrf4.
-c, --create To create a new B4sh, Ex: b4sh -c / Or with a file_path, Ex: b4sh -c script.sh
-ls, --list To list all available offline/local b4sh shells.
-v, --version To get the actual version of b4sh.
To create a custom list of bash commands :
- To create a custom b4sh
$ b4sh -c
[x] Starting b4sh...
[-] --------------------
[-] author : d4rk3r
[-] os-pid : 15205
[-] --------------------
[+] Creating a new b4sh...
[?] Title : hello world
[?] Description : Just an echo of hello world
[?] Content** ( In a new line, Ctrl-D to save the content ):
echo 'Hello World !'
[+] b4sh hello_world_e48ec created/saved successfully !
- To create a custom b4sh command from a file
$ b4sh -c script.sh
[x] Starting b4sh...
[-] --------------------
[-] author : d4rk3r
[-] os-pid : 11205
[-] --------------------
[+] Creating a new b4sh...
[?] Title : script.sh
[?] Description : Just a bash script
[+] Getting the content...
[+] b4sh script.sh_b3155 created/saved successfully !
The create command will create a json file in /home/$USER/.b4sh or C:/b4sh on Windows
-rw-r--r-- 1 d4rk3r d4rk3r 46 Dec 8 15:20 conf.json
-rw-r--r-- 1 d4rk3r d4rk3r 425 Dec 8 15:21 hello_world_e48ec.json
To search for a b4sh :
You just have to use the parameter find.
b4sh -f hello
[x] Starting b4sh...
[-] Searching for : hello...
[+] Listing results (1) :
[-] 1-) hello_world_e48ec
[?] Your choice (0 to quit):1
[-] Checking offline : hello_world_e48ec...
[-] Getting : hello_world_e48ec...
[-] - - -
[-] > hello_world_e48ec
[-] > sha256: bf0473c2d30f6f7bda45508eebe0483ec9b99fc298ed5d7e105a7eacd2fafcb3
[?] > See the content ? (Y/N): y
echo 'Hello World !'
[?] > See stats (used, votes...) ? (Y/N): y
[=] Stats:
[=] ____used_count: 0
[=] ____updated_count: 0
[=] ____up_vote: 0
[=] ____down_vote: 0
[?] > Execute it ? (Y/N): y
Hello World !
- To get a b4sh by key/id :
b4sh -g hello_world_e48ec
[x] Starting b4sh...
[-] Checking offline : hello_world_e48ec...
[-] Getting : hello_world_e48ec...
[-] - - -
[-] > hello_world_e48ec
[-] > sha256: bf0473c2d30f6f7bda45508eebe0483ec9b99fc298ed5d7e105a7eacd2fafcb3
[?] > See the content ? (Y/N): y
echo 'Hello World !'
[?] > See stats (used, votes...) ? (Y/N): y
[=] Stats:
[=] ____used_count: 0
[=] ____updated_count: 0
[=] ____up_vote: 0
[=] ____down_vote: 0
[?] > Execute it ? (Y/N): y
Hello World !
- To run by key/id :
b4sh -r hello_world_e48ec
[x] Starting b4sh...
[-] Checking offline : hello_world_e48ec...
[-] Getting : hello_world_e48ec...
[-] - - -
[?] > Execute it ? (Y/N): y
Hello World !
- To list all offline b4sh :
b4sh -ls
[x] Starting b4sh...
[+] Listing results (1) :
[-] 1-) hello_world_e48ec
[?] Your choice (0 to quit):0
[x] Stopping b4sh.
Author
Metadata
Release files for b4sh 0.1.0.2
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 |
|---|---|---|---|---|
| b4sh-0.1.0.2.tar.gz | 7.4 kB | Without provenance | Details for b4sh-0.1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| b4sh-0.1.0.2-py3-none-any.whl | Python 3 | none | any | Details for b4sh-0.1.0.2-py3-none-any.whl |
Total release size: 18.1 kB
Release files / b4sh-0.1.0.2.tar.gz
| Download URL | b4sh-0.1.0.2.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eb88e96cbb99e17b693c247522abb32c2d06d6b7e9e009ad1e8b6c76dfe0de1
|
|
BLAKE2b-256 checksum How to use checksums |
b0614ba3db9eac80ae09b0d308da01e91bc366bbcb49b568b7848e0e33ef512c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3
|
Release files / b4sh-0.1.0.2-py3-none-any.whl
| Download URL | b4sh-0.1.0.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25461903ddffbaf542eb91a4d52aa6f8527c4410893a34a4e303ed515623b371
|
|
BLAKE2b-256 checksum How to use checksums |
8c267782386533ce0494b5113eb79b99b6984d9f0be5cf3c5991e63e1f9153c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3
|
Security for b4sh 0.1.0.2
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.