diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8152f53..ced617c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -69,7 +69,7 @@ function App() { Error communicating with backend - Errore: {reqError} + Error: {reqError} diff --git a/frontend/src/components/AddNewRegex.tsx b/frontend/src/components/AddNewRegex.tsx index c6293be..fddbb57 100644 --- a/frontend/src/components/AddNewRegex.tsx +++ b/frontend/src/components/AddNewRegex.tsx @@ -1,10 +1,11 @@ -import { Button, Group, Space, TextInput, Notification, Switch, NativeSelect, Modal } from '@mantine/core'; +import { Button, Group, Space, TextInput, Notification, Switch, NativeSelect, Modal, Alert } from '@mantine/core'; import { useForm } from '@mantine/form'; import { useState } from 'react'; import { RegexAddForm } from '../js/models'; import { b64decode, b64encode, getapiobject, okNotify } from '../js/utils'; import { ImCross } from "react-icons/im" import FilterTypeSelector from './FilterTypeSelector'; +import { AiFillWarning } from 'react-icons/ai'; type RegexAddInfo = { regex:string, @@ -103,6 +104,10 @@ function AddNewRegex({ opened, onClose, service }:{ opened:boolean, onClose:()=> color="gray" {...form.getInputProps('type')} /> + {form.values.type == "whitelist"?<> + }> + Using whitelist means that EVERY packet that doesn't match the regex will be DROPPED... In most cases this cause the service interruption. + :null} diff --git a/frontend/src/components/Footer/index.tsx b/frontend/src/components/Footer/index.tsx index bcc4588..66c157a 100644 --- a/frontend/src/components/Footer/index.tsx +++ b/frontend/src/components/Footer/index.tsx @@ -1,11 +1,12 @@ -import { Footer } from '@mantine/core'; -import React from 'react'; +import { Footer, Space } from '@mantine/core'; +import image from "./pwnzer0tt1.svg" import style from "./index.module.scss"; +import { Link } from 'react-router-dom'; function FooterPage() { return
- Made by Pwnzer0tt1 + Made by
Pwnzer0tt1
} diff --git a/frontend/src/components/Footer/pwnzer0tt1.svg b/frontend/src/components/Footer/pwnzer0tt1.svg new file mode 100644 index 0000000..5a3e87b --- /dev/null +++ b/frontend/src/components/Footer/pwnzer0tt1.svg @@ -0,0 +1,595 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/pages/NFRegex/ServiceDetails.tsx b/frontend/src/pages/NFRegex/ServiceDetails.tsx index 2446563..7f8bd7b 100644 --- a/frontend/src/pages/NFRegex/ServiceDetails.tsx +++ b/frontend/src/pages/NFRegex/ServiceDetails.tsx @@ -24,7 +24,7 @@ function ServiceDetailsNFRegex() { {(!regexesList.data || regexesList.data.length == 0)?<> No regex found for this service! Add one by clicking the "+" buttons - +
setOpen(true)} size="xl" radius="md" variant="filled" diff --git a/frontend/src/pages/NFRegex/index.tsx b/frontend/src/pages/NFRegex/index.tsx index e1236bc..dabcb05 100644 --- a/frontend/src/pages/NFRegex/index.tsx +++ b/frontend/src/pages/NFRegex/index.tsx @@ -67,7 +67,7 @@ function NFRegex({ children }: { children: any }) { {(services.data && services.data?.length > 0)?services.data.map( srv => { navigator("/nfregex/"+srv.service_id) }} />):<> No services found! Add one clicking the "+" buttons - +
setOpen(true)} size="xl" radius="md" variant="filled" diff --git a/frontend/src/pages/PortHijack/index.tsx b/frontend/src/pages/PortHijack/index.tsx index 6d01a2b..4b991a3 100644 --- a/frontend/src/pages/PortHijack/index.tsx +++ b/frontend/src/pages/PortHijack/index.tsx @@ -51,7 +51,7 @@ function PortHijack() { {(services.data && services.data.length > 0) ?services.data.map( srv => ):<> No services found! Add one clicking the "+" buttons - +
setOpen(true)} size="xl" radius="md" variant="filled" diff --git a/frontend/src/pages/RegexProxy/ServiceDetails.tsx b/frontend/src/pages/RegexProxy/ServiceDetails.tsx index 77d75e8..b2db515 100644 --- a/frontend/src/pages/RegexProxy/ServiceDetails.tsx +++ b/frontend/src/pages/RegexProxy/ServiceDetails.tsx @@ -24,7 +24,7 @@ function ServiceDetailsProxyRegex() { {(!regexesList.data || regexesList.data.length == 0)?<> No regex found for this service! Add one by clicking the "+" buttons - +
setOpen(true)} size="xl" radius="md" variant="filled" diff --git a/frontend/src/pages/RegexProxy/index.tsx b/frontend/src/pages/RegexProxy/index.tsx index 906c42d..030e293 100644 --- a/frontend/src/pages/RegexProxy/index.tsx +++ b/frontend/src/pages/RegexProxy/index.tsx @@ -68,7 +68,7 @@ function RegexProxy({ children }: { children: any }) { {(services.data && services.data?.length > 0)?services.data.map( srv => { navigator("/regexproxy/"+srv.id) }} />):<> No services found! Add one clicking the "+" buttons - +
setOpen(true)} size="xl" radius="md" variant="filled"