Giter Club home page Giter Club logo

portscan's Introduction

This repo has been archived. I will not work on it anymore.


Port scanning with Javascript

The index.html shows how it can be used. Further notes about the implementation can be found in portscanner.js (use the source, Luke).

The portscanning function is taken from http://www.gnucitizen.org/blog/javascript-port-scanner/ written by Petko Petkov.

The check is based on the fact that loading an image from a blocked host and port do not return. You can try this with e.g.

curl -v --connect-timeout 10 http://github.com:8080

This will block for 10 seconds.
This check does not work for localhost because

curl -v --connect-timeout 10 http://localhost:8000

returns immediately with a Failed to connect to localhost port 8000.

It needs jquery.

The preview of the index.html is not working anymore, don't know why and I will not investigate: http://htmlpreview.github.io/?https://raw.github.com/aabeling/portscan/master/index.html

portscan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

portscan's Issues

localhost

hello,
on remote host:port it works, but i wasn't able to use on localhost or 127.0.0.1
i had try with:

    <tr>
      <td>localhost:15555</td>
      <td><span class="portscanner">localhost:15555</span></td>
    </tr>
    <tr>
      <td>localhost:80</td>
      <td><span class="portscanner">localhost:80</span></td>
    </tr>
    <tr>
      <td>127.0.0.1:15555</td>
      <td><span class="portscanner">127.0.0.1:15555</span></td>
    </tr>
    <tr>
      <td>127.0.0.1:80</td>
      <td><span class="portscanner">127.0.0.1:80</span></td>
    </tr>

it return back always as open port (yes, i have the 80 port open, but not the 15555), there is a way to check localhost?

sincerely G.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.