@paa1997/metho 1.0.2 → 1.0.3
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/package.json +8 -2
- package/src/steps/katana.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paa1997/metho",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Automated recon pipeline: subfinder → gau → filter → katana → findsomething",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
"start": "node bin/metho.js",
|
|
16
16
|
"gui": "node bin/metho.js --gui"
|
|
17
17
|
},
|
|
18
|
-
"keywords": [
|
|
18
|
+
"keywords": [
|
|
19
|
+
"recon",
|
|
20
|
+
"bugbounty",
|
|
21
|
+
"subdomain",
|
|
22
|
+
"crawl",
|
|
23
|
+
"pipeline"
|
|
24
|
+
],
|
|
19
25
|
"license": "MIT",
|
|
20
26
|
"dependencies": {
|
|
21
27
|
"chalk": "^5.4.1",
|
package/src/steps/katana.js
CHANGED
|
@@ -14,10 +14,13 @@ export class KatanaStep extends BaseStep {
|
|
|
14
14
|
const chunkSize = config.katanaChunkSize;
|
|
15
15
|
const depth = config.katanaDepth;
|
|
16
16
|
|
|
17
|
+
// Exclude media, images, fonts, stylesheets and other non-useful extensions
|
|
18
|
+
const excludeExt = 'png,jpg,jpeg,gif,svg,ico,webp,bmp,tiff,mp4,mp3,avi,mov,wmv,flv,webm,ogg,wav,css,woff,woff2,ttf,eot,otf,pdf,zip,gz,tar,rar,7z,mp2,mkv';
|
|
19
|
+
|
|
17
20
|
if (lineCount <= chunkSize) {
|
|
18
21
|
// Small enough to run in one shot
|
|
19
22
|
this.logger.debug(`Katana: ${lineCount} URLs, running single batch`);
|
|
20
|
-
const args = ['-list', inputFile, '-d', String(depth), '-o', outputFile];
|
|
23
|
+
const args = ['-list', inputFile, '-d', String(depth), '-ef', excludeExt, '-o', outputFile];
|
|
21
24
|
return this.runCommand('katana', args, { outputFile });
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -32,7 +35,7 @@ export class KatanaStep extends BaseStep {
|
|
|
32
35
|
for (let i = 0; i < chunks.length; i++) {
|
|
33
36
|
this.logger.info(`Katana chunk ${i + 1}/${chunks.length}...`);
|
|
34
37
|
const chunkOutput = join(tmpDir, `katana-out-${i}.txt`);
|
|
35
|
-
const args = ['-list', chunks[i], '-d', String(depth), '-o', chunkOutput];
|
|
38
|
+
const args = ['-list', chunks[i], '-d', String(depth), '-ef', excludeExt, '-o', chunkOutput];
|
|
36
39
|
|
|
37
40
|
try {
|
|
38
41
|
await this.runCommand('katana', args, { outputFile: chunkOutput });
|