Install and access Cassandra DB on Kali Linux with CLI client

Next up is Cassandra Databases! Source instructions from the developers HERE

pip3 install cassandra-driver
cd /opt/OSINT/
sudo wget https://downloads.datastax.com/enterprise/cqlsh-astra.tar.gz
sudo tar -xvf sqlsh-astra.tar.gz
cd cqlsh-astra/bin
sudo chmod +x cqlsh.py

Now it is all installed! Here is how you now can access a Cassandra Database!

cd /opt/OSINT/sqlsh-astra
python3 cqlsh.py IP PORT

Congrats you’re connected! Now here is how you access the information!

desc keyspaces;

use anyKeyspace;

desc tables;

SELECT * FROM keyspace.tables WHERE keyspace_name = 'keyspace_name';

Leave a Reply