-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(intense-scan): Adding intense scan.
- Loading branch information
1 parent
91c5078
commit 2d80b30
Showing
7 changed files
with
211 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import VestigoResponse from '../classes/response' | ||
import * as chalk from 'chalk'; | ||
|
||
export default class IntenseScan { | ||
fail: number; | ||
success: number; | ||
total: number; | ||
requestSuccess: VestigoResponse[]; | ||
requestFail: VestigoResponse[]; | ||
constructor(fail = 0, success = 0, total = 0, requestSuccess: VestigoResponse[] = [], requestFail: VestigoResponse[] = []) { | ||
this.fail = fail; | ||
this.success = success; | ||
this.total = total; | ||
this.requestSuccess = requestSuccess; | ||
this.requestFail = requestFail; | ||
} | ||
|
||
exportSummary() { | ||
console.log(` --- Successfull Requests: ${chalk.green(this.success)}`) | ||
console.log(` --- Failed Requests: ${chalk.green(this.fail)}`) | ||
console.log(` --- Total Requests: ${chalk.green(this.total)}`) | ||
console.log(chalk.green(` --- Successfull Urls`)); | ||
const successUrls = this.requestSuccess.map(e => e.url); | ||
successUrls.forEach(e => { | ||
console.log(` ------ ${chalk.cyan(e)}`); | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
export default class VestigoResponse { | ||
url: string; | ||
success: boolean; | ||
method: string; | ||
headers: object; | ||
status: number; | ||
statusText: string; | ||
date: string; | ||
urls: Array<string>; | ||
pathsDisclosed: Array<string>; | ||
constructor(payload: {url: string, success: boolean, method: string, headers: object, status: number, statusText: string, date: string, urls: Array<string>}) { | ||
this.url = payload.url; | ||
this.success = payload.success; | ||
this.method = payload.method; | ||
this.headers = payload.headers; | ||
this.status = payload.status; | ||
this.statusText = payload.statusText; | ||
this.date = payload.date; | ||
this.urls = payload.urls; | ||
this.pathsDisclosed = []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters