Skip to main content

Redis: Notes

Redis Logo

# apt info redis-tools
Package: redis-tools
Version: 5:6.0.11-1
Priority: optional
Section: database
Source: redis
Maintainer: Chris Lamb <lamby@debian.org>
Installed-Size: 3,760 kB
Depends: adduser, libatomic1 (>= 4.8), libc6 (>= 2.29), libjemalloc2 (>= 2.1.1), liblua5.1-0, liblzf1 (>= 1.5), libssl1.1 (>= 1.1.1), libsystemd0, lua-bitop, lua-cjson
Suggests: ruby-redis
Breaks: redis-server (<< 2:2.6.16-1)
Replaces: redis-server (<< 2:2.6.16-1)
Homepage: https://redis.io/
Download-Size: 736 kB
APT-Sources: http://http.kali.org/kali kali-rolling/main amd64 Packages
Description: Persistent key-value database with network interface (client)
 Redis is a key-value database in a similar vein to memcache but the dataset
 is non-volatile. Redis additionally provides native support for atomically
 manipulating and querying data structures such as lists and sets.
 .
 This package contains the command line client and other tools.

#
# apt install redis-tools
root@T420:/mnt/f/OneDrive/tryhackme/vulnnetinternal# redis-cli -h 10.10.0.184
10.10.0.184:6379> help
redis-cli 6.0.11
To get help about Redis commands type:
      "help @<group>" to get a list of commands in <group>
      "help <command>" for help on <command>
      "help <tab>" to get a list of possible help topics
      "quit" to exit

To set redis-cli preferences:
      ":set hints" enable online hints
      ":set nohints" disable online hints
Set your preferences in ~/.redisclirc
10.10.0.184:6379> help AUTH

  AUTH [username] password
  summary: Authenticate to the server
  since: 1.0.0
  group: connection

10.10.0.184:6379> AUTH B65Hx562F@ggAZ@F
OK

10.10.0.184:6379> INFO
# Server
redis_version:4.0.9
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:9435c3c2879311f3
redis_mode:standalone
os:Linux 4.15.0-135-generic x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:7.4.0
process_id:514
run_id:0860d90a37b78b5659cd865a43e72f4a41b79cd4
tcp_port:6379
uptime_in_seconds:540
uptime_in_days:0
hz:10
lru_clock:9787519
executable:/usr/bin/redis-server
config_file:/etc/redis/redis.conf
...
...
# Cluster
cluster_enabled:0

# Keyspace
db0:keys=5,expires=0,avg_ttl=0
10.10.0.184:6379> select 0
OK

10.10.0.184:6379> keys *
1) "authlist"
2) "internal flag"
3) "marketlist"
4) "tmp"
5) "int"

10.10.0.184:6379> get "internal flag"
"THM{ff8e518addbbddb74531a724236a8221}"
10.10.0.184:6379>

10.10.0.184:6379> config get *

Practice

>>> THM | VulnNet: Internal

Popular posts from this blog

GNS3: Notes

As usual, notes is for myself and might be useful and also save time for beginners start using GNS3 .

Linux: compound commands

command1 ; command2 ; command3 command1 is executed, then command2, and then command3 command1 && command2 && command3 command2 is executed only if command1 run successfully (exit code is 0), command3 is executed only if command2 run successfully (exit code is 0) command1 || command2 || command3 command2 is executed only if command1 exit code is 0 (failure), command3 is executed only if command2 exit code is 0 (failure)

Commonly used shortcut keys

Learn and use common shortcuts. Shortcuts for all Windows applications Shortcut Action CTRL + C Copy CTRL + X Cut CTRL + V Paste CTRL + Z Undo Shortcuts in Microsoft Outlook Shortcuts in Microsoft Outlook Shortcut Action CTRL + Q Mark as read CTRL + SHIFT + K New task CTRL + SHIFT + J New journal Shortcuts in notepad++ Shortcuts in notepad++ Shortcut Action CTRL + L Delete current line CTRL + Q Comment block Shortcuts in Google Docs, Google Sheets Shortcuts in Google Docs, Google Sheets Shortcut Action CTRL + / Display keyboard shortcuts