Skip to content

Commit

Permalink
solve conflict in main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
haithamAbuElnasr committed Jun 13, 2024
1 parent 311a3c6 commit fe89ba3
Showing 1 changed file with 9 additions and 53 deletions.
62 changes: 9 additions & 53 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,92 +106,48 @@ ipcMain.handle('general-scan', async (event, args) => {
const res = await generalScanning(`${PROJECT_DIR}/${projectName}`);
return res;
});
ipcMain.handle('scanning_for_exposures', async (event, args) => {
const { projectName } = args[0];
const res = await scanningForExposures(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('exposed-panels', async (event, args) => {
const { projectName } = args[0];
const res = await exposedPanels(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('default_credentials', async (event, args) => {
ipcMain.handle('default-credentials', async (event, args) => {
const { projectName } = args[0];
const res = await defaultCredentials(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('subdomain_takeovers', async (event, args) => {
const { projectName } = args[0];
const res = await subdomainTakeovers(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('scanning_CVEs', async (event, args) => {
ipcMain.handle('exposures', async (event, args) => {
const { projectName } = args[0];
const res = await scanningCVEs(`${PROJECT_DIR}/${projectName}`);
const res = await scanningForExposures(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('scanning_for_LFI', async (event, args) => {
ipcMain.handle('lfi', async (event, args) => {
const { projectName } = args[0];
const res = await scanningForLFI(`${PROJECT_DIR}/${projectName}`);
return res;
});


// end of nuclei

ipcMain.handle('exposed-panels', async (event, args) => {
ipcMain.handle('potential-xss', async (event, args) => {
const { projectName } = args[0];
const res = await exposedPanels(`${PROJECT_DIR}/${projectName}`);
const res = await scanningForXSS(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('default-credentials', async (event, args) => {
ipcMain.handle('multi-scans', async (event, args) => {
const { projectName } = args[0];
const res = await defaultCredentials(`${PROJECT_DIR}/${projectName}`);
const res = await multiScans(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('subdomain-takeovers', async (event, args) => {
const { projectName } = args[0];
const res = await subdomainTakeovers(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('exposures', async (event, args) => {
const { projectName } = args[0];
const res = await scanningForExposures(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('vulns-cves', async (event, args) => {
const { projectName } = args[0];
const res = await scanningCVEs(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('lfi', async (event, args) => {
const { projectName } = args[0];
const res = await scanningForLFI(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('potential-xss', async (event, args) => {
const { projectName } = args[0];
const res = await scanningForXSS(`${PROJECT_DIR}/${projectName}`);
return res;
});

ipcMain.handle('multi-scans', async (event, args) => {
const { projectName } = args[0];
const res = await multiScans(`${PROJECT_DIR}/${projectName}`);
return res;
});
// end of nuclei

ipcMain.handle('get-project-dir', async (event) => {
return PROJECT_DIR;
Expand Down

0 comments on commit fe89ba3

Please sign in to comment.