@fanboynz/network-scanner 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/nwss.1 +2 -1
- package/nwss.js +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ Example:
|
|
|
134
134
|
| Field | Values | Default | Description |
|
|
135
135
|
|:---------------------|:-------|:-------:|:------------|
|
|
136
136
|
| `url` | String or Array | - | Website URL(s) to scan |
|
|
137
|
-
| `userAgent` | `chrome`, `firefox`, `safari` | - | User agent for page
|
|
137
|
+
| `userAgent` | `chrome`, `chrome_mac`, `chrome_linux`, `firefox`, `firefox_mac`, `firefox_linux`, `safari` | - | User agent for page |
|
|
138
138
|
| `filterRegex` | String or Array | `.*` | Regex or list of regexes to match requests |
|
|
139
139
|
| `regex_and` | Boolean | `false` | Use AND logic for multiple filterRegex patterns - ALL patterns must match the same URL |
|
|
140
140
|
| `comments` | String or Array | - | String of comments or references |
|
package/nwss.1
CHANGED
|
@@ -280,7 +280,8 @@ Array of CSS selectors to hide elements on the page.
|
|
|
280
280
|
|
|
281
281
|
.TP
|
|
282
282
|
.B userAgent
|
|
283
|
-
Spoof User-Agent: \fB"chrome"\fR, \fB"firefox"\fR, or \fB"safari"\fR.
|
|
283
|
+
Spoof User-Agent: \fB"chrome"\fR, \fB"chrome_mac"\fR, \fB"chrome_linux"\fR, \fB"firefox"\fR, \fB"firefox_mac"\fR, \fB"firefox_linux"\fR, or \fB"safari"\fR.
|
|
284
|
+
|
|
284
285
|
|
|
285
286
|
.TP
|
|
286
287
|
.B interact
|
package/nwss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// === Network scanner script (nwss.js) v2.0.
|
|
1
|
+
// === Network scanner script (nwss.js) v2.0.8 ===
|
|
2
2
|
|
|
3
3
|
// puppeteer for browser automation, fs for file system operations, psl for domain parsing.
|
|
4
4
|
// const pLimit = require('p-limit'); // Will be dynamically imported
|
|
@@ -129,7 +129,7 @@ const { navigateWithRedirectHandling, handleRedirectTimeout } = require('./lib/r
|
|
|
129
129
|
const { monitorBrowserHealth, isBrowserHealthy, isQuicklyResponsive, performGroupWindowCleanup, performRealtimeWindowCleanup, trackPageForRealtime, updatePageUsage } = require('./lib/browserhealth');
|
|
130
130
|
|
|
131
131
|
// --- Script Configuration & Constants ---
|
|
132
|
-
const VERSION = '2.0.
|
|
132
|
+
const VERSION = '2.0.8'; // Script version
|
|
133
133
|
|
|
134
134
|
// get startTime
|
|
135
135
|
const startTime = Date.now();
|
|
@@ -507,7 +507,7 @@ Redirect Handling Options:
|
|
|
507
507
|
resourceTypes: ["script", "stylesheet"] Only process requests of these resource types (default: all types)
|
|
508
508
|
interact: true/false Simulate mouse movements/clicks
|
|
509
509
|
isBrave: true/false Spoof Brave browser detection
|
|
510
|
-
userAgent: "chrome"|"firefox"|"safari"
|
|
510
|
+
userAgent: "chrome"|"chrome_mac"|"chrome_linux"|"firefox"|"firefox_mac"|"firefox_linux"|"safari" Custom desktop User-Agent
|
|
511
511
|
interact_intensity: "low"|"medium"|"high" Interaction simulation intensity (default: medium)
|
|
512
512
|
delay: <milliseconds> Delay after load (default: 4000)
|
|
513
513
|
reload: <number> Reload page n times after load (default: 1)
|
|
@@ -1957,7 +1957,11 @@ function setupFrameHandling(page, forceDebug) {
|
|
|
1957
1957
|
if (useCurl && siteConfig.userAgent) {
|
|
1958
1958
|
const userAgents = {
|
|
1959
1959
|
chrome: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
|
|
1960
|
+
chrome_mac: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
|
|
1961
|
+
chrome_linux: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
|
|
1960
1962
|
firefox: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0",
|
|
1963
|
+
firefox_mac: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0",
|
|
1964
|
+
firefox_linux: "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0",
|
|
1961
1965
|
safari: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15"
|
|
1962
1966
|
};
|
|
1963
1967
|
curlUserAgent = userAgents[siteConfig.userAgent.toLowerCase()] || '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanboynz/network-scanner",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "A Puppeteer-based network scanner for analyzing web traffic, generating adblock filter rules, and identifying third-party requests. Features include fingerprint spoofing, Cloudflare bypass, content analysis with curl/grep, and multiple output formats.",
|
|
5
5
|
"main": "nwss.js",
|
|
6
6
|
"scripts": {
|