Jump to content

Tcp method View On cmd

Recommended Posts

hello every one

i have little problem with tcp mode i want to display my tcp connection activities on


here is my code i want to make sure it work properly or not on cmd any idea help a lot

$g_IP = "mx4.mail.yahoo.com"


    $hSocket = TCPConnect(TCPNameToIP($g_IP), 25)

    If $hSocket <> -1 Then


        $sData = TCPRecv($hSocket, 1024)


        If StringLeft($sData, 3) = "220" Then




            $sData = "HELO ASIM"





Thanks ! Edited by asimzameer
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...