Giter VIP home page Giter VIP logo

netmap.js's People

Contributors

greenkeeper[bot] avatar serain avatar

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  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  avatar  avatar

netmap.js's Issues

Suggest

if I wanna it used in browser. I think you can add a iframe to check if it's running a web service.
if it's should checking web service on that some opened port:

  1. create a iframe and point to the //ip:port.
  2. add a event handler catch onload wait the first onload.
  3. change the iframe's location to add a hash #checking.
    4-1. you will catched 1 onload event if it's a web (it's will not reload if only hash change)
    4-2. you will catched 2 onload if it's NOT a web (bcs it will auto-redict to chrome-error:// that's another domain) and you will have a error catch when add hash too. bcs you can't handing the local resource.

hope it's will be useful to your project. :)

Reporting open port when using a non existing domain

This reports an open port for the non existent domain:

import NetMap from 'netmap.js'

const netmap = new NetMap()
const hosts = ['nonexistentdomain.com']
const ports = [80]

netmap.tcpScan(hosts, ports).then(results => {
  console.log(results)
})

I guess the DNS failure makes the delta to be similar to an open port.

How to use in-browser

First off, I just want to say bravo for this whole lib. This is something I've long been interested in doing and I'm fascinated by your approach, especially for using image error callback delay to predict open TCP ports.

Forgive my naivety, but how does one actually include this code in the browser? I see you are using ES7+ features like import and module syntax, and you have babel in your package.json, but I see nothing in the source that suggests you are actually transpiling your JavaScript to a more browser-friendly version. I also attempted to include the example snippets in the README in <script type="module"></script> tags but no dice. Would you mind giving me some pointers, or including in your documentation, the steps that must be taken to actually deploy this in an index.html file? Hope I'm not overlooking something big...

Also, really nice job with the other DNS rebinding framework ๐Ÿ‘.

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.