Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
.. image:: https://img.shields.io/pypi/v/cdbcli.svg :target: https://pypi.python.org/pypi/cdbcli :alt: Latest PyPI version
.. image:: https://travis-ci.org/kevinjqiu/cdbcli.svg?branch=master :target: https://travis-ci.org/kevinjqiu/cdbcli :alt: Latest Travis CI build status for master
.. image:: https://readthedocs.org/projects/cdbcli/badge/?version=latest :target: https://cdbcli.readthedocs.io/en/latest/ :alt: Documentation Status
.. image:: https://coveralls.io/repos/github/kevinjqiu/cdbcli/badge.svg :target: https://coveralls.io/github/kevinjqiu/cdbcli :alt: Code Coverage
.. image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg :target: LICENSE :alt: License
.. image:: https://img.shields.io/badge/docker-kevinjqiu%2Fcdbcli-blue.svg :target: https://hub.docker.com/r/kevinjqiu/cdbcli/ :alt: Image on Docker Hub
.. image:: https://img.shields.io/badge/aur-cdbcli-blue.svg :target: https://aur.archlinux.org/packages/cdbcli/ :alt: Arch User Repository
$EDITOR
grep
, wc
and jq
.. image:: https://asciinema.org/a/1mj2j4cxhqmq5m6t16tm82ws8.png :scale: 50% :target: https://asciinema.org/a/1mj2j4cxhqmq5m6t16tm82ws8
This tool allows you to traverse a CouchDB database as if it were a file system. Familiar file system commands are supported, such as ls
, cd
, mkdir
, rm
, etc, while providing context-rich auto-completion.
Starting cdbcli ^^^^^^^^^^^^^^^
Refer to the Installation_ section for guide on how to install cdbcli.
Running cdbcli requires connection parameters to the underlying couchdb instance you want to connnect to.
.. code::
cdbcli --help
Usage: cdbcli [OPTIONS] [DATABASE]
Options:
-h, --host TEXT The host of the couchdb instance
--port TEXT The port of the coouchdb instance
-u, --username TEXT The username to connect as
-p, --password TEXT The password
-P, --askpass / --no-askpass Ask for password?
--tls / --no-tls Use TLS to connect to the couchdb instance?
--help Show this message and exit.
e.g., if you want to connect your couchdb instance at http://yourdomain:9999, you can issue the command::
cdbcli -h yourdomain --port 9999 -u admin -P
Specifying -P
will prompt you for password. You can also use -p
to specify password at the command line, but this is not recommended for sensitive passwords.
By default, cdbcli
connects to the couchdb instance at http://localhost:5984.
You will be greeted by the cdbcli's splash screen::
___ ____ ____ ___ __ ____
/ __)( _ \( _ \ / __)( ) (_ _)
( (__ )(_) )) _ <( (__ )(__ _)(_
\___)(____/(____/ \___)(____)(____)
Welcome to cdbcli 0.1.1
CouchDB version: 1.5.0
Type 'help' or 'man' to get a list of all supported commands
Press <TAB> for command auto-completion
Press Ctrl+C or Ctrl+D or type 'exit' to exit
admin@yourdomain/>
Run with Docker ^^^^^^^^^^^^^^^
cdbcli
is also available as a docker image on the docker hub <https://hub.docker.com/r/kevinjqiu/cdbcli/>
_
To run::
docker run -it kevinjqiu/cdbcli cdbcli <arguments>
The docker networking restrictions apply, so if you want to connect to a database on localhost, e.g., you will need to let the container use the host's networking::
docker run -it --net=host kevinjqiu/cdbcli cdbcli <arguments>
.. code::
pip install cdbcli
pip install -r requirements-test.txt
docker <www.docker.com>
_ because the integration tests require itmake start_couchdb
. This will start the testing couchdb instance using dockermake test
make stop_couchdb
to clean upContributing to Documentation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pip install -r requirements-docs.txt
make docs
. The documentation can be accessed under docs/build/index.html.cdbcli
is licensed under Apache 2.0
cdbcli
was written by Kevin J. Qiu <kevin@idempotent.ca>
_.
See all contributors <https://github.com/kevinjqiu/cdbcli/graphs/contributors>
_
python-prompt-toolkit <https://github.com/jonathanslenders/python-prompt-toolkit>
_ by Jonathan Slendersclick <http://click.pocoo.org/5/>
_ by Armin RonacherFAQs
Interactive command line shell for CouchDB
We found that cdbcli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.