forked from mandatoryprogrammer/sonar.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.htm
23 lines (21 loc) · 857 Bytes
/
example.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="sonar.js"></script>
<script src="fingerprint_db.js"></script>
<script>
// sonar.js loading a fingerprint database from fingerprint_db.js
sonar.load_fingerprints( fingerprints );
// If 'true' is passed to the start() function sonar will run in debug mode. This causes an alert() on device enumeration and for the IP range to be scanned.
sonar.start(true, 2000 );
// It's also possible to specify a target or subnet size
//sonar.start(true, 2000, "192.168.0.1/24");
//sonar.start(true, 2000, "/24");
// Or just one IP
//sonar.start(true, 2000, "192.168.0.1/32");
//sonar.start(true, 2000, "192.168.0.1");
</script>
</body>
</html>