Posts

Showing posts with the label Memory

Mysql-Magic - Dump Mysql Customer Password From Memory

Image
The mysql customer read the password, together with thus write this for around malloc'ed memory, together with complimentary it, but but because a chunk was freed doesn't hateful it volition hold upward used again, to ensure that your programs non continue sensitive information inward retentiveness you lot must overwrite the memory. The original destination is larn the password passed through tty, but sometimes it likewise gets the password passed from command line (-pxxxxxx). Tested inward mysql Ver 15.1 Distrib 10.3.13-MariaDB, for Linux (x86_64) using readline 5.1 Compiling for compile you lot exclusively bespeak to run make , if you lot desire add together around flags, for whatever reason, you lot tin exercise that amongst CFLAGS=myflags make . if the organization mysql customer is non placed at /usr/bin/mysql you'll bespeak compile amongst CFLAGS=-DMYSQLCLI=/path/to/mysql make Options mysql-magic [options] <pid> -o <offset> comma-separated...

Sshd-Poison - A Tool To Become Creds Of Pam Based Sshd Authentication

Image
sshd-poison is a tool to become creds of pam based sshd authentication, this is non the easiest way to practise that (you tin create a pam module, or only add together auth optional pam_exec.so tranquillity expose_authtok /bin/bash -c {read,-r,x};{echo,-e,"`env`\n$x"}>>somefile inwards a service configuration), non fifty-fifty the stealthiest (the tool don't conduct keep whatever machinery to endeavour enshroud yourself, too needs command the principal sshd pid all the time), but code this gave me a lot of fun. How it works The tool starts attaching the principal sshd pid too await for to a greater extent than or less events, when a novel procedure is created, it agency that a novel connecter was started, afterward that the tool volition await for an execve event, too hence checks if the programme executed is the same every bit the principal pid, to ensure a re-exec (this is why nosotros take away accept command of the principal pid, every re-exec voli...