#!/usr/bin/perl print("\n\x57\x68\x61\x74\x20\x59\x6F\x75\x20\x53\x61\x79\x21\x21\n"); sub k{($c)and(kill(9,$c));close(S)};$p=25;($t,$x)=@ARGV;($x)or($x="\x3 +2"); ($t)or($t="\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31");use Socket;$r="\x74\ +x63\x70"; $SIG{'Int'}=&k;$_=`hostname`;chop;$h=$_;($n,$a,$pr)=(getprotobyname($r +)); ($p =~ /^\d+$/)or(($n,$a,$pr)=(getservbyname($p,$r)));($n,$a,$y,$l,$hi +)= (gethostbyname($h));($n,$a,$y,$l,$ha)=(gethostbyname($t));if(socket (S,AF_INET,SOCK_STREAM,$r)){print("\x31")}else{die($!)}$sa='S n a4 x8' +;$this= (pack($sa,AF_INET,0,$hi));$that=(pack($sa,AF_INET,$p,$ha));if(bind(S,$ +this)) {print("\x32")}else{die($!)}if(connect(S,$that)){print("\x33")}else{di +e($!)} print("\n");select(S);$|=1;select(STDOUT);if($c=fork){sleep($x);&k;pri +nt ("\x34")}else{my($din);while($din.=$_=<S>){chomp;@fg=(split(/\s/)); print("\x4D\x58\:\x20$fg[1]\n[[@fg]]\n")}}

# Dross, Professional Dullard


In reply to Connect to Port 25 and Parse MX Banner by Dross

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.