Skip to content

Commit

Permalink
finalized, status page, remove some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudgalalz committed Feb 28, 2024
1 parent fece981 commit 903f836
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
32 changes: 14 additions & 18 deletions src/main/recon/httpx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,18 @@ export async function screenwin(outputDir: string = PROJECT_DIR): Promise<{
outputDir,
'httpx_live_domains.txt',
)} -srd ${path.join(outputDir, 'httpx_screen')}`;
try {
execSync(command);
const numberOfScreenShots = await countLines(
path.join(outputDir, 'httpx_screen/screenhost/index_screenhost.txt'),
);
const db = connectJson(path.join(`${outputDir}/details.json`));
await db.update({
screens: {
result: numberOfScreenShots,
run: true,
filePath: '',
date: new Date(Date.now()).toUTCString(),
},
});
return { message: 'Done', success: true, error: '' };
} catch (error: any) {
return { message: 'Error', success: false, error };
}
execSync(command);
const numberOfScreenShots = await countLines(
path.join(outputDir, 'httpx_screen/screenshot/index_screenshot.txt'),
);
const db = connectJson(path.join(`${outputDir}/details.json`));
await db.update({
screens: {
result: numberOfScreenShots,
run: true,
filePath: '',
date: new Date(Date.now()).toUTCString(),
},
});
return { message: 'Done', success: true, error: '' };
}
2 changes: 1 addition & 1 deletion src/renderer/layout/projectLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function ProjectLayout() {
return (
<main className="flex">
<SideBar project={projectSlug} />
<section className="container overflow-y-scroll h-[calc(100vh-6rem)] my-10 w-max-screen border-2 mx-2 py-8 px-10">
<section className="container overflow-y-scroll h-[calc(100vh-6rem)] my-10 w-max-screen mx-2 py-8 px-10">
<Outlet />
</section>
</main>
Expand Down

0 comments on commit 903f836

Please sign in to comment.