@fanboynz/network-scanner 1.0.74 → 1.0.75
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/nwss.js +38 -2
- package/package.json +1 -1
package/nwss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// === Network scanner script (nwss.js) v1.0.
|
|
1
|
+
// === Network scanner script (nwss.js) v1.0.75 ===
|
|
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
|
|
@@ -123,7 +123,7 @@ const { navigateWithRedirectHandling, handleRedirectTimeout } = require('./lib/r
|
|
|
123
123
|
const { monitorBrowserHealth, isBrowserHealthy } = require('./lib/browserhealth');
|
|
124
124
|
|
|
125
125
|
// --- Script Configuration & Constants ---
|
|
126
|
-
const VERSION = '1.0.
|
|
126
|
+
const VERSION = '1.0.75'; // Script version
|
|
127
127
|
|
|
128
128
|
// get startTime
|
|
129
129
|
const startTime = Date.now();
|
|
@@ -2114,6 +2114,42 @@ function setupFrameHandling(page, forceDebug) {
|
|
|
2114
2114
|
|
|
2115
2115
|
// Check if nettools validation is required - if so, NEVER add domains immediately
|
|
2116
2116
|
if (hasNetTools) {
|
|
2117
|
+
// Call nettools handler BEFORE exiting
|
|
2118
|
+
if (hasNetTools && !hasSearchString && !hasSearchStringAnd) {
|
|
2119
|
+
// Create and execute nettools handler
|
|
2120
|
+
const netToolsHandler = createNetToolsHandler({
|
|
2121
|
+
whoisTerms,
|
|
2122
|
+
whoisOrTerms,
|
|
2123
|
+
whoisDelay: siteConfig.whois_delay || whois_delay,
|
|
2124
|
+
whoisServer,
|
|
2125
|
+
whoisServerMode: siteConfig.whois_server_mode || whois_server_mode,
|
|
2126
|
+
debugLogFile,
|
|
2127
|
+
fs,
|
|
2128
|
+
digTerms,
|
|
2129
|
+
digOrTerms,
|
|
2130
|
+
digRecordType,
|
|
2131
|
+
digSubdomain: siteConfig.dig_subdomain === true,
|
|
2132
|
+
dryRunCallback: dryRunMode ? createEnhancedDryRunCallback(matchedDomains, forceDebug) : null,
|
|
2133
|
+
matchedDomains,
|
|
2134
|
+
addMatchedDomain,
|
|
2135
|
+
isDomainAlreadyDetected,
|
|
2136
|
+
onWhoisResult: smartCache ? (domain, result) => smartCache.cacheNetTools(domain, 'whois', result) : undefined,
|
|
2137
|
+
onDigResult: smartCache ? (domain, result, recordType) => smartCache.cacheNetTools(domain, 'dig', result, recordType) : undefined,
|
|
2138
|
+
cachedWhois: smartCache ? smartCache.getCachedNetTools(reqDomain, 'whois') : null,
|
|
2139
|
+
cachedDig: smartCache ? smartCache.getCachedNetTools(reqDomain, 'dig', digRecordType) : null,
|
|
2140
|
+
currentUrl,
|
|
2141
|
+
getRootDomain,
|
|
2142
|
+
siteConfig,
|
|
2143
|
+
dumpUrls,
|
|
2144
|
+
matchedUrlsLogFile,
|
|
2145
|
+
forceDebug,
|
|
2146
|
+
fs
|
|
2147
|
+
});
|
|
2148
|
+
|
|
2149
|
+
// Execute nettools check asynchronously
|
|
2150
|
+
const originalDomain = fullSubdomain;
|
|
2151
|
+
setImmediate(() => netToolsHandler(reqDomain, originalDomain));
|
|
2152
|
+
}
|
|
2117
2153
|
if (forceDebug) {
|
|
2118
2154
|
console.log(formatLogMessage('debug', `${reqUrl} has nettools validation required - skipping immediate add`));
|
|
2119
2155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanboynz/network-scanner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
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": {
|