edgeport - v1.0.3
    Preparing search index...

    Function parsePasv

    • Parses the host and port out of a PASV (RFC 959) 227 reply.

      The reply carries (h1,h2,h3,h4,p1,p2); the host is h1.h2.h3.h4 and the port is p1*256 + p2.

      Parameters

      • line: string

        The full reply text, e.g. 227 Entering Passive Mode (192,168,0,1,19,136).

      Returns { host: string; port: number }

      The host and port to dial.

      If no six-number group is present.

      1.0.0

      parsePasv('227 Entering Passive Mode (192,168,0,1,19,136)'); // { host: '192.168.0.1', port: 5000 }