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

cmd

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"

   TCPStartup()

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

    If $hSocket <> -1 Then

        Sleep(100)

        $sData = TCPRecv($hSocket, 1024)

 

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

  

            Sleep(100)

  

            $sData = "HELO ASIM"

  

  

        EndIf

  EndIf

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
 Share

  • Recently Browsing   0 members

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