Archive for the ‘Uncategorized’ Category

MySql Client – How to Connect to Remote Database?

Wednesday, January 6th, 2010

Why use MySql Client?

One time, You must access your database that is located in another site of earth from you but you want to access it from console just as is in your local computer. Using web based SQL is a good idea but it takes a lot of unnecessary data transfer, come to think of it, you just want to access the data in the Database, but in order to do that, you must download the html files along with data from Database. If this is your problem, then MySql Client will be the alternative way for you, the advantages are

  • Minimalize unnecessary data transfer.
  • Shorter waiting time.
  • Reduce the Server load.


How to Connect to Remote Database?

This will be the code you need to type in order to connect to Remote Database

mysql -h server_site -u user -p

Example

mysql -h my_database_site.com -u root -p

Just a note, you have to make sure that your server allow you to do Remote Connection Database. As conclusion, keep trying and you will be make it. :D

How to crack User Password?

Friday, November 13th, 2009

Crack other user password is not difficult, it’s just another interesting stuff to do. What you need is
you must have access to another person computer who’s using linux, once you get the shadow file, you can see the password in plain text.

Shadow File is a File in which password hash is located.

/etc/passwd


/etc/shadow

you can crack them all and see the password in PLAIN text. :D


John The Ripper

John The Ripper is a tool that specially created for password cracking purpose.


How to Crack User Password?

1. Steal Password File

Inside the Password File, there are password hashes of all users in that computer.
The password Hashes will be in MD5 Format (For Ubuntu Hardy and below) and SHA Format (For Ubuntu Jaunty and Karmic)

There are tons of ways to steal the password file, but I will support with my way.

scp [username]@[IP]:/etc/passwd ~/Desktop/


scp [username]@[IP]:/etc/passwd ~/Desktop/

That code will make copies of the password file from the victim computer to your desktop.

2. John The Ripper in Action


cd ~/Desktop


sudo john --show

And that will show all EASY passwords but if you stiill don’t get what you want, you will want John The Ripper to work more for you.


sudo john

That will make John The Ripper do some attacks to the file.

If you are lucky enough, your attack will last a few seconds, but if the password is veryyy strong, it can take weeks.