-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into haitham-dev
- Loading branch information
Showing
14 changed files
with
240 additions
and
32 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from '../../components/ui/card'; | ||
import Exposures from './attacks/exposures'; | ||
import MissingHeaders from './attacks/missingHeaders'; | ||
import PotentialXss from './attacks/potentialXss'; | ||
import SqlInjection from './attacks/sqlInjection'; | ||
|
||
export default function Attacks() { | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
<h1 className="font-bold text-3xl">Attacks</h1> | ||
<div> | ||
<div className="grid grid-flow-row grid-cols-2 gap-4"> | ||
<Card> | ||
<CardHeader> | ||
<CardTitle>Scan for exposures</CardTitle> | ||
<CardDescription>wanna find exposures ?</CardDescription> | ||
</CardHeader> | ||
<CardContent className="flex justify-between"> | ||
<Exposures /> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader> | ||
<CardTitle>Scan for missing headers</CardTitle> | ||
<CardDescription>wanna find more ?</CardDescription> | ||
</CardHeader> | ||
<CardContent className="flex justify-between"> | ||
<MissingHeaders /> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader> | ||
<CardTitle>Scan the URLs</CardTitle> | ||
<CardDescription>wanna catch potential XSS</CardDescription> | ||
</CardHeader> | ||
<CardContent className="flex justify-between"> | ||
<PotentialXss /> | ||
</CardContent> | ||
</Card> | ||
<Card> | ||
<CardHeader> | ||
<CardTitle>Scan for SQL Injection</CardTitle> | ||
<CardDescription> | ||
SSTI, Open Redirect & CRLF Injection | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent className="flex justify-between"> | ||
<SqlInjection /> | ||
</CardContent> | ||
</Card> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 @@ | ||
import { Loader2 } from 'lucide-react'; | ||
import { useState } from 'react'; | ||
import { Button } from '../../../components/ui/button'; | ||
|
||
export default function Exposures() { | ||
const [Loading, setLoading] = useState<boolean>(false); | ||
const RunExposures = async () => { | ||
setLoading(true); | ||
}; | ||
return ( | ||
// eslint-disable-next-line react/jsx-no-useless-fragment | ||
<> | ||
{!Loading ? ( | ||
<Button onClick={RunExposures}>Process</Button> | ||
) : ( | ||
<Button disabled> | ||
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> | ||
Please wait | ||
</Button> | ||
)} | ||
</> | ||
); | ||
} |
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 @@ | ||
import { Loader2 } from 'lucide-react'; | ||
import { useState } from 'react'; | ||
import { Button } from '../../../components/ui/button'; | ||
|
||
export default function MissingHeaders() { | ||
const [Loading, setLoading] = useState<boolean>(false); | ||
const RunMissingHeaders = async () => { | ||
setLoading(true); | ||
}; | ||
return ( | ||
// eslint-disable-next-line react/jsx-no-useless-fragment | ||
<> | ||
{!Loading ? ( | ||
<Button onClick={RunMissingHeaders}>Process</Button> | ||
) : ( | ||
<Button disabled> | ||
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> | ||
Please wait | ||
</Button> | ||
)} | ||
</> | ||
); | ||
} |
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 @@ | ||
import { Loader2 } from 'lucide-react'; | ||
import { useState } from 'react'; | ||
import { Button } from '../../../components/ui/button'; | ||
|
||
export default function PotentialXss() { | ||
const [Loading, setLoading] = useState<boolean>(false); | ||
const RunPotentialXss = async () => { | ||
setLoading(true); | ||
}; | ||
return ( | ||
// eslint-disable-next-line react/jsx-no-useless-fragment | ||
<> | ||
{!Loading ? ( | ||
<Button onClick={RunPotentialXss}>Process</Button> | ||
) : ( | ||
<Button disabled> | ||
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> | ||
Please wait | ||
</Button> | ||
)} | ||
</> | ||
); | ||
} |
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 @@ | ||
import { Loader2 } from 'lucide-react'; | ||
import { useState } from 'react'; | ||
import { Button } from '../../../components/ui/button'; | ||
|
||
export default function SqlInjection() { | ||
const [Loading, setLoading] = useState<boolean>(false); | ||
const RunSqlInjection = async () => { | ||
setLoading(true); | ||
}; | ||
return ( | ||
// eslint-disable-next-line react/jsx-no-useless-fragment | ||
<> | ||
{!Loading ? ( | ||
<Button onClick={RunSqlInjection}>Process</Button> | ||
) : ( | ||
<Button disabled> | ||
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> | ||
Please wait | ||
</Button> | ||
)} | ||
</> | ||
); | ||
} |
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