Skip to content

Commit

Permalink
v0.1.28
Browse files Browse the repository at this point in the history
- Improved file structure
- Added Windows support
- Cleaned up README.md
  • Loading branch information
battleoverflow committed Mar 23, 2022
1 parent ffbb611 commit aaf19cf
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# RediSea

<img src="assets/redis.png">
<img src="assets/redisea_bannerv2.png">

RediSea is a Redis (in-memory database) communication framework used for viewing Redis keys, dumping Redis keys, dumping key information about the Redis server, and much more!

Please note, this framework does work even if a Redis instance is not present, but if running a command that requires direct communication with the database (ex: viewing a key), you will be removed from the prompt. There is also an option for remotely connecting to a Redis instance, if you prefer to not have the framework on the target system.

## Installation
You can run this command to install all the required tools for this framework:
```bash
$ pip3 install -r requirements.txt
```

## Usage
```bash
python3 main.py
$ cd redisea
$ python3 main.py
```
Binary file removed assets/redis.png
Binary file not shown.
Binary file added assets/redisea_bannerv2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions main.py → redisea/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-

import redis, time, sys, os

import redis, time, sys, os, platform
from subprocess import getoutput

r = redis.Redis()
version = '0.1.26'
version = '0.1.28'
author = 'Hifumi1337'

class RediSea:
Expand All @@ -21,16 +20,14 @@ def banner(self):
{0} | v{1}
Traverse the Redis-cli in a much simpler way by using our open prompt!
Traverse a Redis database instance in a much simpler way by using our open prompt!
Start by typing "h" in the prompt below
""".format(author, version))

def redis_comms(self):

rsb = RediSea()

whoami = getoutput("whoami")

print("Connecting...")
Expand Down Expand Up @@ -64,7 +61,12 @@ def redis_comms(self):

print(f"Key: {key} \n Value: {key_output}")
elif command == "c" or command == "clear":
os.system("clear")
system_info = platform.system()

if system_info == 'Windows':
os.system("cls")
else:
os.system("clear")
elif command == "dump" or command == "d":
for key in r.scan_iter("*"):
print(key)
Expand All @@ -75,7 +77,7 @@ def redis_comms(self):

print("Data successfully dumped!")
elif command == "b" or command == "banner":
rsb.banner()
RediSea().banner()
elif command == "i" or command == "info":
redis_data = r.execute_command('CLIENT LIST')
redis_data_str = str(redis_data)
Expand Down

0 comments on commit aaf19cf

Please sign in to comment.