Activities

September 2011
M T W T F S S
« Aug   Oct »
 1234
567891011
12131415161718
19202122232425
2627282930  

Retriving postfix admin password, Identify the webserver name ?

Here is the little tweak to retrieve the password of postfixadmin account. Even though I’m fully unaware about the logins that had setup at the initial time. Not good in tracking password files. New requirement is to add a new domain and only a SUPER user (which is created at the time of postfixadmin install) can create domains. It’s because SUPER user password hash is hard coded in postfixadmin config.

Solution
1. login to Mysql server configured for postfix admin and identify the email addresss
2. Fortunately I uses plain text authentication. So that I can see the password in database
#
[liju@host ~]$ su –
Password:

-sh-3.2# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5557093
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use postfix;
Database changed
mysql> show tables;
+-----------------------+
| Tables_in_postfix     |
+-----------------------+
| admin                 |
+-----------------------+
13 rows in set (0.00 sec)

mysql> select * from admin;
+---------------------------------+------------------------------+--------------                                   -------+---------------------+--------+
| username                        | password                     | created  | modified  | active |
+---------------------------------+------------------------------+--------------                                   -------+---------------------+--------+
| liju@domain.com         | password                     | 2010-07-06 22  :06:31 | 2010-07-06 22:06:31 |      1 |
+---------------------------------+------------------------------+--------------                                   -------+---------------------+--------+
2 rows in set (0.02 sec)

2. Identify the web server which site is running ?

I see some of the sites are working fast and I would like to know which web server is serving this pages. I didn’t tried any tools yet and I would like to see the out from from commandline.

I found one application named “httptype” which we can get it from “httptype.sourceforge.net”. It’s a binary file and may copy it to “/usr/bin” directory. if you want to check the Google.com browser try the following syntax,

[root@rc-025 httptype-1.3.9]# httptype google.com
gws
[root@rc-025 httptype-1.3.9]# httptype serveridol.com
Apache/2.2.3 (CentOS)
[root@rc-025 httptype-1.3.9]# httptype microsoft.com
Microsoft-IIS/6.0

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>