Skip to content

Commit

Permalink
turn into json format
Browse files Browse the repository at this point in the history
  • Loading branch information
haithamAbuElnasr committed Jun 13, 2024
1 parent fe89ba3 commit 1441445
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scanning/nuclei.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ async function runScan(
error: any;
}> {
const nuclie = toolPath('nuclei');
const command = `${nuclie} -l ${path.join(outputDir, inputFile)} ${scanType} -o ${path.join(outputDir, outputFileName)}`;
const outputFileNameJson: string = outputFileName.replace('txt', 'json');
const command = `${nuclie} -l ${path.join(outputDir, inputFile)} ${scanType} -je ${path.join(outputDir, outputFileNameJson)}`;
console.log(command);
try {
await execAsync(command);
Expand Down Expand Up @@ -129,7 +130,7 @@ export async function scanningForLFI(outputDir: string = PROJECT_DIR): Promise<{
error: any;
}> {
return runScan(
'-tag lfi',
'-tags lfi',
'LFI.txt',
'scanningForLFI',
outputDir,
Expand Down

0 comments on commit 1441445

Please sign in to comment.