browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Postfix Banner Faking

Posted by on June 21, 2007

Change postfix welcome banner, this howto can tricky the attacker to attack your postfix.

Current banner : 220 mail.suhatman.com ESMTP Postfix

Wanted banner: 220 Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Tue, 18 Mar 2003 18:35:40 +0100

Okay next this step.

Open postfix’s main.cf (configuration file) and search for “smtpd_banner”. Change the banner to whatever you want.

The problem: Microsoft’s ESMTP sends a date back, Postfix can’t. However, the file

/src/global/mail_date.c returns a time in this form: “Mon, 9 Dec 1996 05:38:26 -0500 (EST)”.

So, if you really want to pretend to be Microsoft’s ESMTP do the following: Before compiling, open /src/smtpd/smtpd.c and search for the line

“smtpd_chat_reply(state, “220 %s”, var_smtpd_banner);”

and change it :
smtpd_chat_reply(state, “220 %s ready at %s”, var_smtpd_banner, mail_date(time((time_t *) 0));Now recompile, edit the main.cf to say ” Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329″ and you’re done.

And this result

[root@provoke henry]# telnet mx2.suhatman.com 25
Trying 202.152.1.154…
Connected to mx2.suhatman.com (202.152.1.154).
Escape character is ‘^]’.
220 Microsoft ESMTP MAIL Service ready at Thu, 21 Jun 2007 08:35:42 +0700 (BBWI)
Now you can tricky the attaker ^^

Comments

comments

6 Responses to Postfix Banner Faking

  1. superbiji

    gini nih kalo niat, sampe ngedit source C-nya…
    gw suka gaya lo cuk huehueheuhue

  2. rathcrync

    Hello. Let’s get acquainted!
    My name is Jessika.

  3. davesslave

    Risky theme. I think you’ve hurt someone’s feelings, but what’s for me – I like it. No matter what they say if your opinion is true.

  4. illekskem

    Hello my friends :)
    ;)

  5. ImRoN

    Hanya koreksi saja. Yang benar adalah sebagai berikut :

    smtpd_chat_reply(state, “220 %s ready at %s”, var_smtpd_banner, mail_date(time((time_t *) 0)));

Leave a Reply

Your email address will not be published. Required fields are marked *

:)) :) :D (LOL) :-P (woot) ;-) :-o X-( ;-( :-& (angry) (annoyed) (bye) B-) (cozy) (sick) (: (goodluck) (griltongue) (mmm) (hungry) (music) (tears) (tongue) (unsure) (highfive) (dance) (doh) (brokenheart) (drinking) (girlkiss) (rofl) (money) (rock) (nottalking) (party) (sleeping) (thinking) (bringit) (worship) (applause) 8-) (gym) (heart) (devil) (lmao) (banana_cool) (banana_rock) (evil_grin) (headspin) (heart_beat) (ninja) (haha) (evilsmirk) (bigeyes) (funkydance) (idiot) (lonely) (scenic) (hassle) (panic) (okok) (yahoo) (blush) (fish_hit) (muhaha) (muscle) (taser) (beer) (coffee) (banana_ninja) (goal) (fireworks) (smileydance) (dance_bzz) (rusian)