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

Linux command: top

NAME        top - display Linux processes SYNOPSIS        top -hv|-bcHiOSs -d secs -n max -u|U user -p pid -o fld -w [cols]        The traditional switches `-' and whitespace are optional. DESCRIPTION        The  top program provides a dynamic real-time view of a running system.  It can display        system summary information as well as a list of processes or  threads  currently  being        managed  by  the  Linux  kernel.  The types of system summary information shown and the        types, order and size of information displayed for processes are all user  configurable        and that configuration can be made persistent across restarts.        The  program  provides a limited interactive interface for process manipulation ...

Linux command: printenv

printenv - print all or part of environment NAME        printenv - print all or part of environment SYNOPSIS        printenv [OPTION]... [VARIABLE]... DESCRIPTION        Print  the  values  of the specified environment VARIABLE(s).  If no VARIABLE is speci‐        fied, print name and value pairs for them all.        -0, --null               end each output line with NUL, not newline        --help display this help and exit        --version               output version information and exit        NOTE: your shell may have its own version of printenv,  which  usually  supersedes  the        version  described  here.  Please refer to your shell's documentation for d...

Linux command: tail

tail - output the last part of files