mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: [master] one page and one asset modified
This commit is contained in:
parent
f2b62a4606
commit
6adb1a512e
2 changed files with 17 additions and 4 deletions
BIN
.gitbook/assets/image (346).png
Normal file
BIN
.gitbook/assets/image (346).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
|
@ -72,10 +72,6 @@ client list
|
||||||
[ ... Redis response with connected clients ... ]
|
[ ... Redis response with connected clients ... ]
|
||||||
CONFIG GET *
|
CONFIG GET *
|
||||||
[ ... Get config ... ]
|
[ ... Get config ... ]
|
||||||
KEYS *
|
|
||||||
[ ... Get Keys ... ]
|
|
||||||
GET <KEY>
|
|
||||||
[ ... Get Key ... ]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Other Redis commands** [**can be found here**](https://redis.io/topics/data-types-intro) **and** [**here**](https://lzone.de/cheat-sheet/Redis)**.**
|
**Other Redis commands** [**can be found here**](https://redis.io/topics/data-types-intro) **and** [**here**](https://lzone.de/cheat-sheet/Redis)**.**
|
||||||
|
@ -91,6 +87,23 @@ You can also **monitor in real time the Redis commands** executed with the comma
|
||||||
|
|
||||||
Find more interesting information about more Redis commands here: [https://lzone.de/cheat-sheet/Redis](https://lzone.de/cheat-sheet/Redis)
|
Find more interesting information about more Redis commands here: [https://lzone.de/cheat-sheet/Redis](https://lzone.de/cheat-sheet/Redis)
|
||||||
|
|
||||||
|
### **Dumping Database**
|
||||||
|
|
||||||
|
Inside Redis the **databases are numbers starting from 0**. You can find if anyone is used in the output of the command `info` inside the "Keyspace" chunk:
|
||||||
|
|
||||||
|
![](../.gitbook/assets/image%20%28346%29.png)
|
||||||
|
|
||||||
|
In that example the **database 0 and 1** are being used. **Database 0 contains 4 keys and database 1 contains 1**. By default Redis will use database 0. In order to dump for example database 1 you need to do:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
SELECT 1
|
||||||
|
[ ... Indicate the database ... ]
|
||||||
|
KEYS *
|
||||||
|
[ ... Get Keys ... ]
|
||||||
|
GET <KEY>
|
||||||
|
[ ... Get Key ... ]
|
||||||
|
```
|
||||||
|
|
||||||
**Dump the database with npm**[ **redis-dump**](https://www.npmjs.com/package/redis-dump) **or python** [**redis-utils**](https://pypi.org/project/redis-utils/)\*\*\*\*
|
**Dump the database with npm**[ **redis-dump**](https://www.npmjs.com/package/redis-dump) **or python** [**redis-utils**](https://pypi.org/project/redis-utils/)\*\*\*\*
|
||||||
|
|
||||||
## Redis RCE
|
## Redis RCE
|
||||||
|
|
Loading…
Reference in a new issue