Skip to content

Commit

Permalink
fixes to new darkweb scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 8, 2025
1 parent 822447f commit fc4ba8f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
17 changes: 8 additions & 9 deletions src/layouts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,14 @@ export const nativeMenuItems = [
{ title: "Message Viewer", path: "/email/tools/message-viewer" },
],
},
{
title: "Dark Web Tools",
path: "/tools/darkweb",
items: [
{ title: "Tenant Breach Lookup", path: "/tools/tenantbreachlookup" },
{ title: "Individual Breach Lookup", path: "/tools/breachlookup" },
//{ title: "Password Checker", path: "/tools/passwordchecker" }, to add later, find a nice way so people dont just fill in passwords online...
],
},
// {
// title: "Dark Web Tools",
// path: "/tools/darkweb",
// items: [
// { title: "Tenant Breach Lookup", path: "/tools/tenantbreachlookup" },
// { title: "Breach Lookup", path: "/tools/breachlookup" },
// ],
// },
{
title: "Scheduler",
path: "/cipp/scheduler",
Expand Down
21 changes: 19 additions & 2 deletions src/pages/tools/breachlookup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { getCippTranslation } from "/src/utils/get-cipp-translation";
import { useRouter } from "next/router";
import { useEffect } from "react";
import CippCsvExportButton from "/src/components/CippComponents/CippCsvExportButton";
import { getCippFormatting } from "../../../utils/get-cipp-formatting";
import { CippCopyToClipBoard } from "../../../components/CippComponents/CippCopyToClipboard";

const Page = () => {
const formControl = useForm({ mode: "onBlur" });
Expand Down Expand Up @@ -52,14 +54,14 @@ const Page = () => {
<Grid container spacing={3}>
<Grid container item spacing={4}>
<Grid item spacing={4} xs={4}>
<CippButtonCard title="User Breach lookup">
<CippButtonCard title="Breach lookup">
<Grid container spacing={2}>
<Grid item xs={8}>
<CippFormComponent
formControl={formControl}
name="account"
type="textField"
placeholder="Email address"
label="Email address or domain name"
required
/>
</Grid>
Expand Down Expand Up @@ -125,6 +127,21 @@ const Page = () => {
}
>
<Grid container spacing={2}>
<Grid item xs={12}>
<Typography variant="subtitle2" color="textSecondary" sx={{ mt: 2 }}>
Partial Password Available
</Typography>
<Typography variant="body2" color="textPrimary">
{breach.password ? (
<>
Yes
<CippCopyToClipBoard text={breach.password} type="password" />
</>
) : (
"No"
)}
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="subtitle2" color="textSecondary" sx={{ mt: 2 }}>
Description
Expand Down
2 changes: 1 addition & 1 deletion src/utils/get-cipp-formatting.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const getCippFormatting = (data, cellName, type, canReceive) => {
<CippTimeAgo data={data} type={type} />
);
}
const passwordItems = ["applicationsecret", "refreshtoken"];
const passwordItems = ["breachPass", "applicationsecret", "refreshtoken"];

if (passwordItems.includes(cellNameLower)) {
//return a button that shows/hides the password if it has a password. In text mode, return "Password hidden"
Expand Down

0 comments on commit fc4ba8f

Please sign in to comment.