serain / netmap.js Goto Github PK
View Code? Open in Web Editor NEWFast browser-based network discovery module
Fast browser-based network discovery module
It would be nice to have a demo page showing the scanner in action.
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:
//ip:port
.onload
wait the first onload.#checking
.1 onload
event if it's a web (it's will not reload if only hash change)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. :)
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.
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 ๐.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.