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

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Linux command: Check Current Shell

What is your current shell ?

Java: Free Online Courses

The Java™ Tutorials by Oracle The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". https://docs.oracle.com/javase/tutorial/ Learn to Program in Java at edX.ogr Get started on the path to becoming a software engineer by learning core coding skills in Java—one of the most popular programming languages. https://www.edx.org/course/learn-to-program-in-java-0 Java Tutorial by javapoint.com https://www.javatpoint.com/java-tutorial Java Tutorial by SoloLearn.com I love SoloLearn because I can learn Java - and other popular programming languages - anywhere, any time on your mobile devices. https://www.sololearn.com/Course/Java/ Java on Azure https://docs.microsoft.com/en-us/learn/paths/java-on-azure/