ViewDNS.info - Your one source for DNS related tools!
ViewDNS.info > API > Documentation >

Port Scanner API



Documentation Home

TOOLS
Abuse Contact Lookup
ASN Lookup
Chinese Firewall Test
DNS Propagation Checker
DNS Record Lookup
DNS Report
DNSSEC Test
Domain/IP Whois
Free Email Lookup
Get HTTP Headers
Google Pagerank Checker
IP History
IP Location Finder
Iran Firewall Test
Is My Site Down
MAC Address Lookup
Ping
Port Scanner
Reverse DNS Lookup
Reverse IP Lookup
Reverse NS Lookup
Reverse Whois Lookup
Spam Database Lookup
Traceroute
URL/String Decode


Port Scanner

This web based port scanner will test whether common ports are open on a server. Useful in determining if a specific service (e.g. HTTP) is up or down on a specific server.

Ports scanned are: 21, 22, 23, 25, 80, 110, 139, 143, 445, 1433, 1521, 3306 and 3389

URL

http://pro.viewdns.info/portscan/

Parameters

host - the host to perform the port scanner on (domain or IP address)
output - the output format required ('xml' or 'json')
apikey - your api key

Sample Query

host: viewdns.info

GET http://pro.viewdns.info/portscan/?host=viewdns.info&apikey=yourapikey&output=output_type

XML Response (output=xml)

<?xml version='1.0' encoding='ISO-8859-1'?>
<viewdns>
  <query>
    <tool>portscan_PRO</tool>
    <host>viewdns.info</host>
  </query>
  <response>
    <port>
      <number>21</number>
      <service>FTP</service>
      <status>closed</status>
    </port>
    <port>
      <number>22</number>
      <service>SSH</service>
      <status>closed</status>
    </port>
    <port>
      <number>23</number>
      <service>Telnet</service>
      <status>closed</status>
    </port>
    <port>
      <number>25</number>
      <service>SMTP</service>
      <status>closed</status>
    </port>
    <port>
      <number>80</number>
      <service>HTTP</service>
      <status>open</status>
    </port>
    <port>
      <number>110</number>
      <service>POP3</service>
      <status>closed</status>
    </port>
    <port>
      <number>139</number>
      <service>NETBIOS</service>
      <status>closed</status>
    </port>
    <port>
      <number>143</number>
      <service>IMAP</service>
      <status>closed</status>
    </port>
    <port>
      <number>443</number>
      <service>HTTPS</service>
      <status>closed</status>
    </port>
    <port>
      <number>445</number>
      <service>SMB</service>
      <status>closed</status>
    </port>
    <port>
      <number>1433</number>
      <service>MSSQL</service>
      <status>closed</status>
    </port>
    <port>
      <number>1521</number>
      <service>ORACLE</service>
      <status>closed</status>
    </port>
    <port>
      <number>3306</number>
      <service>MySQL</service>
      <status>closed</status>
    </port>
    <port>
      <number>3389</number>
      <service>Remote Desktop</service>
      <status>closed</status>
    </port>
  </response>
</viewdns>

JSON Response (output=json)

{
    "query": {
        "tool": "portscan_PRO",
        "host": "viewdns.info"
    },
    "response": {
        "port": [
            {
                "number": "21",
                "service": "FTP",
                "status": "closed"
            },
            {
                "number": "22",
                "service": "SSH",
                "status": "closed"
            },
            {
                "number": "23",
                "service": "Telnet",
                "status": "closed"
            },
            {
                "number": "25",
                "service": "SMTP",
                "status": "closed"
            },
            {
                "number": "80",
                "service": "HTTP",
                "status": "open"
            },
            {
                "number": "110",
                "service": "POP3",
                "status": "closed"
            },
            {
                "number": "139",
                "service": "NETBIOS",
                "status": "closed"
            },
            {
                "number": "143",
                "service": "IMAP",
                "status": "closed"
            },
            {
                "number": "443",
                "service": "HTTPS",
                "status": "closed"
            },
            {
                "number": "445",
                "service": "SMB",
                "status": "closed"
            },
            {
                "number": "1433",
                "service": "MSSQL",
                "status": "closed"
            },
            {
                "number": "1521",
                "service": "ORACLE",
                "status": "closed"
            },
            {
                "number": "3306",
                "service": "MySQL",
                "status": "closed"
            },
            {
                "number": "3389",
                "service": "Remote Desktop",
                "status": "closed"
            }
        ]
    }
}







All content © 2016 ViewDNS.info
Feedback / Suggestions / Contact Us   Become an Affiliate