All Projects → hc0d3r → Mysql Magic

hc0d3r / Mysql Magic

Licence: mit
dump mysql client password from memory

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Mysql Magic

Nuxt Memwatch
Quickly watch real-time memory stats of your nuxt app
Stars: ✭ 76 (-58.47%)
Mutual labels:  heap, memory, leak
gctoolkit
Tool for parsing GC logs
Stars: ✭ 1,127 (+515.85%)
Mutual labels:  memory, heap
AppListManager
📱 AppListManager (Android Library) makes managing application and activity lists easy.
Stars: ✭ 59 (-67.76%)
Mutual labels:  memory, leak
AMLeaksFinder
A small tool for automatically detecting the [controller, view memory leak] in the project. 一款用于自动检测项目中【控制器内存泄漏,View 内存泄漏】的小工具,支持 ObjC,Swift。
Stars: ✭ 89 (-51.37%)
Mutual labels:  memory, leak
heaptrace
helps visualize heap operations for pwn and debugging
Stars: ✭ 252 (+37.7%)
Mutual labels:  heap, ptrace
nested
A memory efficient container for rust nested collections
Stars: ✭ 28 (-84.7%)
Mutual labels:  memory, heap
o1heap
Constant-complexity deterministic memory allocator (heap) for hard real-time high-integrity embedded systems
Stars: ✭ 119 (-34.97%)
Mutual labels:  memory, heap
Admin
AutoQuery + Admin UI for ServiceStack Projects
Stars: ✭ 47 (-74.32%)
Mutual labels:  mysql, memory
Nativeleakdetector
Win32 memory leak detector with ETW
Stars: ✭ 30 (-83.61%)
Mutual labels:  memory, leak
Memorpy
Python library using ctypes to search/edit windows / linux / macOS / SunOS programs memory
Stars: ✭ 721 (+293.99%)
Mutual labels:  memory, ptrace
Heap allocator
A simple heap memory allocator in ~200 lines.
Stars: ✭ 661 (+261.2%)
Mutual labels:  heap, memory
Rxlifecycle
Rx binding of stock Android Activities & Fragment Lifecycle, avoiding memory leak
Stars: ✭ 131 (-28.42%)
Mutual labels:  memory, leak
Go Cache
This project encapsulates multiple db servers, redis、ledis、memcache、file、memory、nosql、postgresql
Stars: ✭ 143 (-21.86%)
Mutual labels:  mysql, memory
Mysql Sandbox
Quick and painless install of one or more MySQL servers in the same host.
Stars: ✭ 176 (-3.83%)
Mutual labels:  mysql
Seconds Kill
基于 Springboot + Redis + Kafka 的秒杀系统,乐观锁 + 缓存 + 限流 + 异步,TPS 从 500 优化到 3000
Stars: ✭ 180 (-1.64%)
Mutual labels:  mysql
Qxorm
QxOrm library - C++ Qt ORM (Object Relational Mapping) and ODM (Object Document Mapper) library - Official repository
Stars: ✭ 176 (-3.83%)
Mutual labels:  mysql
Nanodbc
A small C++ wrapper for the native C ODBC API | Requires C++14 since v2.12
Stars: ✭ 175 (-4.37%)
Mutual labels:  mysql
Ninja Mutex
Mutex implementation for PHP
Stars: ✭ 180 (-1.64%)
Mutual labels:  mysql
Unityheapexplorer
A Memory Profiler, Debugger and Analyzer for Unity 2019.3 and newer.
Stars: ✭ 179 (-2.19%)
Mutual labels:  memory
Guacamole Install Rhel 7
Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS, SSL, LDAP, Let's Encrypt certificates and more
Stars: ✭ 174 (-4.92%)
Mutual labels:  mysql

mysql-magic

I made this just for fun, use for illegal purposes are not allowed.

The mysql client read the password, then write this for some malloc'ed memory, and free it, but just because a chunk was freed doesn't mean it will be used again, to ensure that your programs not keep sensitive information in memory you must overwrite the memory.

The main goal is get the password passed through tty, but sometimes it also gets the password passed from command line (-pxxxxxx).

Tested in mysql Ver 15.1 Distrib 10.3.13-MariaDB, for Linux (x86_64) using readline 5.1

Compiling

First clone the project using git clone --recurse-submodules https://github.com/hc0d3r/mysql-magic.

for compile you only need to run make, if you want add some flags, for any reason, you can do that with CFLAGS=myflags make.

if the system mysql client is not placed at /usr/bin/mysql you'll need compile with CFLAGS=-DMYSQLCLI=/path/to/mysql make

Options

mysql-magic [options] <pid>
 -o <offset>  comma-separated list of offset
 -s            search the memory for passwords and get offset
 -d <dir>      Write heap to the folder
 -l            Listen mode, wait for outgoing ipv4 connections on port 3306
 -r <secs>     Sleep time (Default: 3 seconds)
 -p            Use process_vm_readv instead of /proc/pid/mem

pass -d is a good thing to do, the password, and some informations like old queries, can remain in memory, so you can analyse this and maybe build a wordlist based on it, if the password don't are in the offset

Demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].