Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: file upload

dextmorgneea46193f565
diff --git a/flowsint-web/public/logo.webp b/flowsint-web/public/logo.webp
new file mode 100644
index 00000000..bd9a33a4
Binary files /dev/null and b/flowsint-web/public/logo.webp differ
diff --git a/flowsint-web/src/app/api/investigations/route.ts b/flowsint-web/src/app/api/investigations/route.ts
index c77d9248..ec577806 100644
--- a/flowsint-web/src/app/api/investigations/route.ts
+++ b/flowsint-web/src/app/api/investigations/route.ts
@@ -12,11 +12,13 @@ export async function GET() {
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
}
const { data: investigations, error } = await supabase.from("investigations")
- .select("id, title, description")
+ .select("id, title, description, status, last_updated_at")
+ .order("last_updated_at", { ascending: false })
+ .limit(4)
if (error) {
return NextResponse.json({ error: error.message }, { status: 500 })
}
- return NextResponse.json({ investigations })
+ return NextResponse.json(investigations)
} catch (error) {
return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })
}
diff --git a/flowsint-web/src/app/api/projects/[project_id]/documents/route.ts b/flowsint-web/src/app/api/projects/[project_id]/documents/route.ts
new file mode 100644
index 00000000..d953fa2c
--- /dev/null
+++ b/flowsint-web/src/app/api/projects/[project_id]/documents/route.ts
@@ -0,0 +1,56 @@
+import { createClient } from "@/lib/supabase/server"
+import { NextResponse } from "next/server"
+
+export async function GET(_: Request, { params }: { params: Promise<{ project_id: string }> }) {
+ const { project_id } = await params
+ try {
+ const supabase = await createClient()
+ const {
+ data: { user },
+ error: userError,
+ } = await supabase.auth.getUser();
+ if (!user || userError) {
+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
+ }
+ const { data: project, error: projectError } = await supabase.from("projects")
+ .select("id")
+ .eq("id", project_id)
+ .single()
+ if (!project || projectError) return NextResponse.json({ error: "Project doesn't exist." }, { status: 404 })
+ const { data, error } = await supabase
+ .storage
+ .from("documents")
+ .list(`${project_id}`, {
+ sortBy: { column: "created_at", order: "desc" }
+ })
+ if (error) {
+ return NextResponse.json({ error: error.message }, { status: 500 })
+ }
+ // Filtrer le fichier .emptyFolderPlaceholder
+ const filteredData = data?.filter((file) => file.name !== ".emptyFolderPlaceholder") || []
+
+ // Récupérer les URLs publiques pour chaque fichier
+ const filesWithUrls = await Promise.all(
+ filteredData.map(async (file) => {
+ const { data: urlData } = await supabase.storage.from("documents").createSignedUrl(`${project_id}/${file.name}`, 3600)
+ return {
+ id: file.id,
+ name: file.name,
+ type: file.metadata.mimetype,
+ size: file.metadata.size,
+ created_at: file.created_at,
+ last_updated_at: file.updated_at || file.created_at,
+ url: urlData?.signedUrl,
+ owner: {
+ first_name: "System",
+ last_name: "User",
+ },
+ }
+ }),
+ )
+ return NextResponse.json(filesWithUrls)
+ } catch (error) {
+ return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })
+ }
+}
+
diff --git a/flowsint-web/src/app/api/projects/[project_id]/route.ts b/flowsint-web/src/app/api/projects/[project_id]/route.ts
new file mode 100644
index 00000000..c64661fd
--- /dev/null
+++ b/flowsint-web/src/app/api/projects/[project_id]/route.ts
@@ -0,0 +1,30 @@
+import { createClient } from "@/lib/supabase/server"
+import { NextResponse } from "next/server"
+
+export async function GET(_: Request, { params }: { params: Promise<{ project_id: string }> }) {
+ const { project_id } = await params
+ try {
+ const supabase = await createClient()
+ const {
+ data: { user },
+ error: userError,
+ } = await supabase.auth.getUser();
+ if (!user || userError) {
+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
+ }
+ const { data: project, error } = await supabase.from("projects")
+ .select("*, investigations(*, owner:owner_id(first_name, last_name), individuals(id)), owner:owner_id(first_name, last_name)")
+ .eq("id", project_id)
+ .single()
+ if (error) {
+ return NextResponse.json({ error: error.message }, { status: 500 })
+ }
+ if (!project) {
+ return NextResponse.json({ error: "Project not found" }, { status: 404 })
+ }
+ return NextResponse.json(project)
+ } catch (error) {
+ return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })
+ }
+}
+
diff --git a/flowsint-web/src/app/api/projects/route.ts b/flowsint-web/src/app/api/projects/route.ts
new file mode 100644
index 00000000..7124c926
--- /dev/null
+++ b/flowsint-web/src/app/api/projects/route.ts
@@ -0,0 +1,24 @@
+import { createClient } from "@/lib/supabase/server"
+import { NextResponse } from "next/server"
+
+export async function GET() {
+ try {
+ const supabase = await createClient()
+ const {
+ data: { user },
+ error: userError,
+ } = await supabase.auth.getUser();
+ if (!user || userError) {
+ return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
+ }
+ const { data: projects, error } = await supabase.from("projects")
+ .select("*, investigations(*), owner:owner_id(first_name, last_name)")
+ if (error) {
+ return NextResponse.json({ error: error.message }, { status: 500 })
+ }
+ return NextResponse.json({ projects })
+ } catch (error) {
+ return NextResponse.json({ error: "Internal Server Error" }, { status: 500 })
+ }
+}
+
diff --git a/flowsint-web/src/app/api/tools/[category]/route.ts b/flowsint-web/src/app/api/tools/[category]/route.ts
deleted file mode 100644
index 2ccbe613..00000000
--- a/flowsint-web/src/app/api/tools/[category]/route.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { NextResponse } from "next/server"
-import tools from "../tools.json"
-import { Tool } from "@/types"
-export async function GET(_: Request, { params }: { params: Promise<{ category: string }> }) {
- const { category } = await params
- const tt: { [key: string]: Tool }[] = Object.keys(tools).map((cat) => ({ [cat.toLowerCase()]: (tools as any)[cat] }))
- try {
- const tool = tt.find(t => t.hasOwnProperty(category.toLowerCase()));
- return NextResponse.json(tool ? Object.values(tool[category.toLowerCase()]) : { error: "Category not found." })
- } catch (error) {
- return NextResponse.json({ error: "An error occured." }, { status: 500 })
- }
-}
-
diff --git a/flowsint-web/src/app/api/tools/route.ts b/flowsint-web/src/app/api/tools/route.ts
deleted file mode 100644
index 0290126c..00000000
--- a/flowsint-web/src/app/api/tools/route.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { NextResponse } from "next/server"
-import tools from "./tools.json"
-export async function GET() {
- try {
- return NextResponse.json(tools)
- } catch (error) {
- return NextResponse.json({ error: "An error occured." }, { status: 500 })
- }
-}
-
diff --git a/flowsint-web/src/app/api/tools/tools.json b/flowsint-web/src/app/api/tools/tools.json
deleted file mode 100644
index 7e5c80f6..00000000
--- a/flowsint-web/src/app/api/tools/tools.json
+++ /dev/null
@@ -1,2940 +0,0 @@
-{
- "Account": {
- "Azure": {
- "MicroBurst": {
- "name": "MicroBurst",
- "path": "/library/Account/Azure/MicroBurst"
- }
- },
- "BitBucket": {
- "shhgit": {
- "name": "shhgit",
- "path": "/library/Account/BitBucket/shhgit"
- }
- },
- "Facebook": {
- "LB": {
- "name": "LB",
- "path": "/library/Account/Facebook/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Account/Facebook/LittleBrother"
- },
- "Maltego-Facebook": {
- "name": "Maltego-Facebook",
- "path": "/library/Account/Facebook/Maltego-Facebook"
- },
- "facebook_totem": {
- "name": "facebook_totem",
- "path": "/library/Account/Facebook/facebook_totem"
- },
- "fb-sleep-stats": {
- "name": "fb-sleep-stats",
- "path": "/library/Account/Facebook/fb-sleep-stats"
- },
- "fbi": {
- "name": "fbi",
- "path": "/library/Account/Facebook/fbi"
- },
- "osintstalker": {
- "name": "osintstalker",
- "path": "/library/Account/Facebook/osintstalker"
- },
- "socid_extractor": {
- "name": "socid_extractor",
- "path": "/library/Account/Facebook/socid_extractor"
- },
- "totem-maltego": {
- "name": "totem-maltego",
- "path": "/library/Account/Facebook/totem-maltego"
- }
- },
- "GitHub": {
- "GitDorker": {
- "name": "GitDorker",
- "path": "/library/Account/GitHub/GitDorker"
- },
- "GitGot": {
- "name": "GitGot",
- "path": "/library/Account/GitHub/GitGot"
- },
- "Zen": {
- "name": "Zen",
- "path": "/library/Account/GitHub/Zen"
- },
- "cartography": {
- "name": "cartography",
- "path": "/library/Account/GitHub/cartography"
- },
- "git-hound": {
- "name": "git-hound",
- "path": "/library/Account/GitHub/git-hound"
- },
- "gitem": {
- "name": "gitem",
- "path": "/library/Account/GitHub/gitem"
- },
- "gitleak": {
- "name": "gitleak",
- "path": "/library/Account/GitHub/gitleak"
- },
- "gitleaks": {
- "name": "gitleaks",
- "path": "/library/Account/GitHub/gitleaks"
- },
- "gitrob": {
- "name": "gitrob",
- "path": "/library/Account/GitHub/gitrob"
- },
- "recon": {
- "name": "recon",
- "path": "/library/Account/GitHub/recon"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Account/GitHub/recon-ng"
- },
- "secret-bridge": {
- "name": "secret-bridge",
- "path": "/library/Account/GitHub/secret-bridge"
- },
- "shhgit": {
- "name": "shhgit",
- "path": "/library/Account/GitHub/shhgit"
- }
- },
- "GitLab": {
- "gitleaks": {
- "name": "gitleaks",
- "path": "/library/Account/GitLab/gitleaks"
- },
- "shhgit": {
- "name": "shhgit",
- "path": "/library/Account/GitLab/shhgit"
- }
- },
- "Github": {
- "infoooze": {
- "name": "infoooze",
- "path": "/library/Account/Github/infoooze"
- }
- },
- "Gmail": {
- "EMAGNET": {
- "name": "EMAGNET",
- "path": "/library/Account/Gmail/EMAGNET"
- },
- "Moriarty-Project": {
- "name": "Moriarty-Project",
- "path": "/library/Account/Gmail/Moriarty-Project"
- }
- },
- "Instagram": {
- "InstaLooter": {
- "name": "InstaLooter",
- "path": "/library/Account/Instagram/InstaLooter"
- },
- "Instagrab": {
- "name": "Instagrab",
- "path": "/library/Account/Instagram/Instagrab"
- },
- "InstagramOSINT": {
- "name": "InstagramOSINT",
- "path": "/library/Account/Instagram/InstagramOSINT"
- },
- "LB": {
- "name": "LB",
- "path": "/library/Account/Instagram/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Account/Instagram/LittleBrother"
- },
- "Osintgram": {
- "name": "Osintgram",
- "path": "/library/Account/Instagram/Osintgram"
- },
- "Scylla": {
- "name": "Scylla",
- "path": "/library/Account/Instagram/Scylla"
- },
- "SocialPwned": {
- "name": "SocialPwned",
- "path": "/library/Account/Instagram/SocialPwned"
- },
- "TIGMINT": {
- "name": "TIGMINT",
- "path": "/library/Account/Instagram/TIGMINT"
- },
- "Tenai": {
- "name": "Tenai",
- "path": "/library/Account/Instagram/Tenai"
- },
- "collector": {
- "name": "collector",
- "path": "/library/Account/Instagram/collector"
- },
- "infoooze": {
- "name": "infoooze",
- "path": "/library/Account/Instagram/infoooze"
- },
- "instagram-scraper": {
- "name": "instagram-scraper",
- "path": "/library/Account/Instagram/instagram-scraper"
- },
- "instagram_private_api": {
- "name": "instagram_private_api",
- "path": "/library/Account/Instagram/instagram_private_api"
- },
- "instaloader": {
- "name": "instaloader",
- "path": "/library/Account/Instagram/instaloader"
- },
- "instaloctrack": {
- "name": "instaloctrack",
- "path": "/library/Account/Instagram/instaloctrack"
- },
- "instamancer": {
- "name": "instamancer",
- "path": "/library/Account/Instagram/instamancer"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/Account/Instagram/operative-framework"
- },
- "osi_ig": {
- "name": "osi_ig",
- "path": "/library/Account/Instagram/osi_ig"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/Account/Instagram/sn0int"
- },
- "socid_extractor": {
- "name": "socid_extractor",
- "path": "/library/Account/Instagram/socid_extractor"
- },
- "terra": {
- "name": "terra",
- "path": "/library/Account/Instagram/terra"
- },
- "toutatis": {
- "name": "toutatis",
- "path": "/library/Account/Instagram/toutatis"
- },
- "toutatis-maltego": {
- "name": "toutatis-maltego",
- "path": "/library/Account/Instagram/toutatis-maltego"
- }
- },
- "LinkedIn": {
- "LB": {
- "name": "LB",
- "path": "/library/Account/LinkedIn/LB"
- },
- "LinkedInt": {
- "name": "LinkedInt",
- "path": "/library/Account/LinkedIn/LinkedInt"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Account/LinkedIn/LittleBrother"
- },
- "Maryam": {
- "name": "Maryam",
- "path": "/library/Account/LinkedIn/Maryam"
- },
- "OSINT_Spider_py": {
- "name": "OSINT_Spider_py",
- "path": "/library/Account/LinkedIn/OSINT_Spider_py"
- },
- "SocialPwned": {
- "name": "SocialPwned",
- "path": "/library/Account/LinkedIn/SocialPwned"
- },
- "TIDoS-Framework": {
- "name": "TIDoS-Framework",
- "path": "/library/Account/LinkedIn/TIDoS-Framework"
- },
- "linkedin2username": {
- "name": "linkedin2username",
- "path": "/library/Account/LinkedIn/linkedin2username"
- },
- "nqntnqnqmb": {
- "name": "nqntnqnqmb",
- "path": "/library/Account/LinkedIn/nqntnqnqmb"
- },
- "nqntnqnqmb-maltego": {
- "name": "nqntnqnqmb-maltego",
- "path": "/library/Account/LinkedIn/nqntnqnqmb-maltego"
- },
- "raven": {
- "name": "raven",
- "path": "/library/Account/LinkedIn/raven"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Account/LinkedIn/recon-ng"
- }
- },
- "Microsoft": {
- "Moriarty-Project": {
- "name": "Moriarty-Project",
- "path": "/library/Account/Microsoft/Moriarty-Project"
- }
- },
- "Odnoklassniki": {
- "ok_checker": {
- "name": "ok_checker",
- "path": "/library/Account/Odnoklassniki/ok_checker"
- }
- },
- "QQ": {
- "qq_group": {
- "name": "qq_group",
- "path": "/library/Account/QQ/qq_group"
- }
- },
- "Snapchat": {
- "snapchat-map-scraper": {
- "name": "snapchat-map-scraper",
- "path": "/library/Account/Snapchat/snapchat-map-scraper"
- }
- },
- "Spotify": {
- "EMAGNET": {
- "name": "EMAGNET",
- "path": "/library/Account/Spotify/EMAGNET"
- }
- },
- "Telegram": {
- "TG-Parser": {
- "name": "TG-Parser",
- "path": "/library/Account/Telegram/TG-Parser"
- },
- "TeleGram-Scraper": {
- "name": "TeleGram-Scraper",
- "path": "/library/Account/Telegram/TeleGram-Scraper"
- },
- "TelegramOnlineSpy": {
- "name": "TelegramOnlineSpy",
- "path": "/library/Account/Telegram/TelegramOnlineSpy"
- },
- "chatter": {
- "name": "chatter",
- "path": "/library/Account/Telegram/chatter"
- },
- "informer": {
- "name": "informer",
- "path": "/library/Account/Telegram/informer"
- },
- "telegram-bot-dumper": {
- "name": "telegram-bot-dumper",
- "path": "/library/Account/Telegram/telegram-bot-dumper"
- },
- "telegram-get-remote-ip": {
- "name": "telegram-get-remote-ip",
- "path": "/library/Account/Telegram/telegram-get-remote-ip"
- },
- "telegram-nearby-map": {
- "name": "telegram-nearby-map",
- "path": "/library/Account/Telegram/telegram-nearby-map"
- },
- "telegram-osint-lib": {
- "name": "telegram-osint-lib",
- "path": "/library/Account/Telegram/telegram-osint-lib"
- },
- "tosint": {
- "name": "tosint",
- "path": "/library/Account/Telegram/tosint"
- }
- },
- "TikTok": {
- "TikTok-OSINT": {
- "name": "TikTok-OSINT",
- "path": "/library/Account/TikTok/TikTok-OSINT"
- }
- },
- "Twitter": {
- "LB": {
- "name": "LB",
- "path": "/library/Account/Twitter/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Account/Twitter/LittleBrother"
- },
- "Maryam": {
- "name": "Maryam",
- "path": "/library/Account/Twitter/Maryam"
- },
- "Scylla": {
- "name": "Scylla",
- "path": "/library/Account/Twitter/Scylla"
- },
- "TIGMINT": {
- "name": "TIGMINT",
- "path": "/library/Account/Twitter/TIGMINT"
- },
- "TwitWork": {
- "name": "TwitWork",
- "path": "/library/Account/Twitter/TwitWork"
- },
- "birdwatcher": {
- "name": "birdwatcher",
- "path": "/library/Account/Twitter/birdwatcher"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/Account/Twitter/operative-framework"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Account/Twitter/recon-ng"
- },
- "recon-ng-maltego": {
- "name": "recon-ng-maltego",
- "path": "/library/Account/Twitter/recon-ng-maltego"
- },
- "tafferugli": {
- "name": "tafferugli",
- "path": "/library/Account/Twitter/tafferugli"
- },
- "terra": {
- "name": "terra",
- "path": "/library/Account/Twitter/terra"
- },
- "twint": {
- "name": "twint",
- "path": "/library/Account/Twitter/twint"
- },
- "twitter-intelligence": {
- "name": "twitter-intelligence",
- "path": "/library/Account/Twitter/twitter-intelligence"
- }
- },
- "VK": {
- "VKAnalysis": {
- "name": "VKAnalysis",
- "path": "/library/Account/VK/VKAnalysis"
- },
- "socid_extractor": {
- "name": "socid_extractor",
- "path": "/library/Account/VK/socid_extractor"
- }
- },
- "Vinted": {
- "keskivonfer": {
- "name": "keskivonfer",
- "path": "/library/Account/Vinted/keskivonfer"
- },
- "keskivonfer-maltego": {
- "name": "keskivonfer-maltego",
- "path": "/library/Account/Vinted/keskivonfer-maltego"
- }
- },
- "WhatsApp": {
- "WhatsApp-IP-logger": {
- "name": "WhatsApp-IP-logger",
- "path": "/library/Account/WhatsApp/WhatsApp-IP-logger"
- },
- "WhatsappMonitor": {
- "name": "WhatsappMonitor",
- "path": "/library/Account/WhatsApp/WhatsappMonitor"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/Account/WhatsApp/operative-framework"
- }
- },
- "Yandex": {
- "YaSeeker": {
- "name": "YaSeeker",
- "path": "/library/Account/Yandex/YaSeeker"
- },
- "socid_extractor": {
- "name": "socid_extractor",
- "path": "/library/Account/Yandex/socid_extractor"
- }
- },
- "YouTube": {
- "youtube-dl": {
- "name": "youtube-dl",
- "path": "/library/Account/YouTube/youtube-dl"
- },
- "youtube-geofind": {
- "name": "youtube-geofind",
- "path": "/library/Account/YouTube/youtube-geofind"
- },
- "youtube_tool": {
- "name": "youtube_tool",
- "path": "/library/Account/YouTube/youtube_tool"
- }
- }
- },
- "BSSID": {
- "LB": {
- "name": "LB",
- "path": "/library/BSSID/LB"
- }
- },
- "CVE": {
- "Gotanda": {
- "name": "Gotanda",
- "path": "/library/CVE/Gotanda"
- }
- },
- "CreditCard": {
- "Scylla": {
- "name": "Scylla",
- "path": "/library/CreditCard/Scylla"
- },
- "Th3inspector": {
- "name": "Th3inspector",
- "path": "/library/CreditCard/Th3inspector"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/CreditCard/intelx-maltego"
- }
- },
- "Cryptocurrency": {
- "Maltego_Transform_Blockchain_DNS": {
- "name": "Maltego_Transform_Blockchain_DNS",
- "path": "/library/Cryptocurrency/Maltego_Transform_Blockchain_DNS"
- },
- "OSINT-SPY": {
- "name": "OSINT-SPY",
- "path": "/library/Cryptocurrency/OSINT-SPY"
- },
- "Orbit": {
- "name": "Orbit",
- "path": "/library/Cryptocurrency/Orbit"
- },
- "graphsense-dashboard": {
- "name": "graphsense-dashboard",
- "path": "/library/Cryptocurrency/graphsense-dashboard"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/Cryptocurrency/intelx-maltego"
- },
- "mitaka": {
- "name": "mitaka",
- "path": "/library/Cryptocurrency/mitaka"
- }
- },
- "Domain": {
- "Amass": {
- "name": "Amass",
- "path": "/library/Domain/Amass"
- },
- "Belati": {
- "name": "Belati",
- "path": "/library/Domain/Belati"
- },
- "CMSeeK": {
- "name": "CMSeeK",
- "path": "/library/Domain/CMSeeK"
- },
- "CarbonDate": {
- "name": "CarbonDate",
- "path": "/library/Domain/CarbonDate"
- },
- "CloudFlair": {
- "name": "CloudFlair",
- "path": "/library/Domain/CloudFlair"
- },
- "Dome": {
- "name": "Dome",
- "path": "/library/Domain/Dome"
- },
- "EmailHarvester": {
- "name": "EmailHarvester",
- "path": "/library/Domain/EmailHarvester"
- },
- "FavFreak": {
- "name": "FavFreak",
- "path": "/library/Domain/FavFreak"
- },
- "FinalRecon": {
- "name": "FinalRecon",
- "path": "/library/Domain/FinalRecon"
- },
- "Gotanda": {
- "name": "Gotanda",
- "path": "/library/Domain/Gotanda"
- },
- "Heimdall": {
- "name": "Heimdall",
- "path": "/library/Domain/Heimdall"
- },
- "IPDump": {
- "name": "IPDump",
- "path": "/library/Domain/IPDump"
- },
- "Infoga": {
- "name": "Infoga",
- "path": "/library/Domain/Infoga"
- },
- "IntelOwl": {
- "name": "IntelOwl",
- "path": "/library/Domain/IntelOwl"
- },
- "Magnifier": {
- "name": "Magnifier",
- "path": "/library/Domain/Magnifier"
- },
- "Maltego-Hostio": {
- "name": "Maltego-Hostio",
- "path": "/library/Domain/Maltego-Hostio"
- },
- "Maltego_Transform_Blockchain_DNS": {
- "name": "Maltego_Transform_Blockchain_DNS",
- "path": "/library/Domain/Maltego_Transform_Blockchain_DNS"
- },
- "Maryam": {
- "name": "Maryam",
- "path": "/library/Domain/Maryam"
- },
- "ODIN": {
- "name": "ODIN",
- "path": "/library/Domain/ODIN"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/Domain/OSINT-SAN"
- },
- "OSINT-SPY": {
- "name": "OSINT-SPY",
- "path": "/library/Domain/OSINT-SPY"
- },
- "OSINT-Search": {
- "name": "OSINT-Search",
- "path": "/library/Domain/OSINT-Search"
- },
- "Photon": {
- "name": "Photon",
- "path": "/library/Domain/Photon"
- },
- "PwnBack": {
- "name": "PwnBack",
- "path": "/library/Domain/PwnBack"
- },
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/Domain/SpiderFoot"
- },
- "Spiderpig": {
- "name": "Spiderpig",
- "path": "/library/Domain/Spiderpig"
- },
- "Sublist3r": {
- "name": "Sublist3r",
- "path": "/library/Domain/Sublist3r"
- },
- "TIDoS-Framework": {
- "name": "TIDoS-Framework",
- "path": "/library/Domain/TIDoS-Framework"
- },
- "Th3inspector": {
- "name": "Th3inspector",
- "path": "/library/Domain/Th3inspector"
- },
- "ThreatCrowd-Maltego": {
- "name": "ThreatCrowd-Maltego",
- "path": "/library/Domain/ThreatCrowd-Maltego"
- },
- "WaybackPDF": {
- "name": "WaybackPDF",
- "path": "/library/Domain/WaybackPDF"
- },
- "WikiLeaker": {
- "name": "WikiLeaker",
- "path": "/library/Domain/WikiLeaker"
- },
- "aiodnsbrute": {
- "name": "aiodnsbrute",
- "path": "/library/Domain/aiodnsbrute"
- },
- "apiosintDS": {
- "name": "apiosintDS",
- "path": "/library/Domain/apiosintDS"
- },
- "aquatone": {
- "name": "aquatone",
- "path": "/library/Domain/aquatone"
- },
- "censys-subdomain-finder": {
- "name": "censys-subdomain-finder",
- "path": "/library/Domain/censys-subdomain-finder"
- },
- "checkdmarc": {
- "name": "checkdmarc",
- "path": "/library/Domain/checkdmarc"
- },
- "datasploit": {
- "name": "datasploit",
- "path": "/library/Domain/datasploit"
- },
- "dnsrecon": {
- "name": "dnsrecon",
- "path": "/library/Domain/dnsrecon"
- },
- "dnstwist": {
- "name": "dnstwist",
- "path": "/library/Domain/dnstwist"
- },
- "dvcs-ripper": {
- "name": "dvcs-ripper",
- "path": "/library/Domain/dvcs-ripper"
- },
- "fav-up": {
- "name": "fav-up",
- "path": "/library/Domain/fav-up"
- },
- "findcdn": {
- "name": "findcdn",
- "path": "/library/Domain/findcdn"
- },
- "gasmask": {
- "name": "gasmask",
- "path": "/library/Domain/gasmask"
- },
- "greynoise-maltego": {
- "name": "greynoise-maltego",
- "path": "/library/Domain/greynoise-maltego"
- },
- "hackertarget_maltego_transforms": {
- "name": "hackertarget_maltego_transforms",
- "path": "/library/Domain/hackertarget_maltego_transforms"
- },
- "harpoon": {
- "name": "harpoon",
- "path": "/library/Domain/harpoon"
- },
- "hosts": {
- "name": "hosts",
- "path": "/library/Domain/hosts"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/Domain/intelx-maltego"
- },
- "intrigue-core": {
- "name": "intrigue-core",
- "path": "/library/Domain/intrigue-core"
- },
- "jeopardize": {
- "name": "jeopardize",
- "path": "/library/Domain/jeopardize"
- },
- "karma": {
- "name": "karma",
- "path": "/library/Domain/karma"
- },
- "knockknock": {
- "name": "knockknock",
- "path": "/library/Domain/knockknock"
- },
- "metagoofil": {
- "name": "metagoofil",
- "path": "/library/Domain/metagoofil"
- },
- "mitaka": {
- "name": "mitaka",
- "path": "/library/Domain/mitaka"
- },
- "nmap": {
- "name": "nmap",
- "path": "/library/Domain/nmap"
- },
- "o365chk": {
- "name": "o365chk",
- "path": "/library/Domain/o365chk"
- },
- "opendns_transform": {
- "name": "opendns_transform",
- "path": "/library/Domain/opendns_transform"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/Domain/operative-framework"
- },
- "phishing_catcher": {
- "name": "phishing_catcher",
- "path": "/library/Domain/phishing_catcher"
- },
- "querytool": {
- "name": "querytool",
- "path": "/library/Domain/querytool"
- },
- "recon": {
- "name": "recon",
- "path": "/library/Domain/recon"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Domain/recon-ng"
- },
- "recon-ng-maltego": {
- "name": "recon-ng-maltego",
- "path": "/library/Domain/recon-ng-maltego"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/Domain/reconspider"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/Domain/sifter"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/Domain/sn0int"
- },
- "squatm3gator": {
- "name": "squatm3gator",
- "path": "/library/Domain/squatm3gator"
- },
- "theHarvester": {
- "name": "theHarvester",
- "path": "/library/Domain/theHarvester"
- },
- "uDork": {
- "name": "uDork",
- "path": "/library/Domain/uDork"
- },
- "waybackpack": {
- "name": "waybackpack",
- "path": "/library/Domain/waybackpack"
- },
- "waybackurls": {
- "name": "waybackurls",
- "path": "/library/Domain/waybackurls"
- },
- "xray": {
- "name": "xray",
- "path": "/library/Domain/xray"
- }
- },
- "Email": {
- "Cr3dOv3r": {
- "install": [
- "git clone https://github.com/D4Vinci/Cr3dOv3r.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Cr3dOv3r",
- "path": "/library/Email/Cr3dOv3r",
- "run": "python3 Cr3d0v3r.py",
- "url": "https://github.com/D4Vinci/Cr3dOv3r"
- },
- "Email-Extractor": {
- "description": "Email-Extractor is a tool designed to extract email addresses from given text or web pages, aiding in information gathering.",
- "install": [
- "git clone https://github.com/Niraj-Kamdar/Email-Extractor.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Email-Extractor",
- "path": "/library/Email/Email-Extractor",
- "run": "python3 email_extractor.py",
- "url": "https://github.com/Niraj-Kamdar/Email-Extractor"
- },
- "GHunt": {
- "install": [
- "git clone https://github.com/mxrch/GHunt.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "GHunt",
- "path": "/library/Email/GHunt",
- "run": "python3 main.py",
- "url": "https://github.com/mxrch/GHunt"
- },
- "Gemail-Hack": {
- "description": "Gemail-Hack is a tool that attempts to hack Gmail accounts using a brute-force method. Note: Using this tool is illegal and unethical.",
- "install": [
- "git clone https://github.com/Ha3MrX/Gemail-Hack.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Gemail-Hack",
- "path": "/library/Email/Gemail-Hack",
- "run": "python3 gemailhack.py",
- "url": "https://github.com/Ha3MrX/Gemail-Hack"
- },
- "Heimdall": {
- "description": "Heimdall is an email reconnaissance tool designed to uncover information about email addresses from multiple sources.",
- "install": [
- "git clone https://github.com/JohannesPfeifer/heimdall.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Heimdall",
- "path": "/library/Email/Heimdall",
- "run": "python3 heimdall.py",
- "url": "https://github.com/JohannesPfeifer/heimdall"
- },
- "Infoga": {
- "description": "Infoga is an email information gathering tool that uses different public sources to find information about email addresses.",
- "install": [
- "git clone https://github.com/m4ll0k/Infoga.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Infoga",
- "path": "/library/Email/Infoga",
- "run": "python3 infoga.py",
- "url": "https://github.com/m4ll0k/Infoga"
- },
- "LB": {
- "description": "LB is a tool for email information gathering, leveraging various public sources to uncover related data.",
- "install": [
- "git clone https://github.com/youyo/LB.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "LB",
- "path": "/library/Email/LB",
- "run": "python3 lb.py",
- "url": "https://github.com/youyo/LB"
- },
- "LittleBrother": {
- "description": "LittleBrother is an information collection tool for emails, names, or usernames, aiming to help in OSINT investigations.",
- "install": [
- "git clone https://github.com/lulz3xploit/LittleBrother.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "LittleBrother",
- "path": "/library/Email/LittleBrother",
- "run": "python3 LittleBrother.py",
- "url": "https://github.com/lulz3xploit/LittleBrother"
- },
- "Magnifier": {
- "description": "Magnifier is an OSINT tool that helps in gathering email information and related data from various sources.",
- "install": [
- "git clone https://github.com/Adikso/magnifier.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Magnifier",
- "path": "/library/Email/Magnifier",
- "run": "python3 magnifier.py",
- "url": "https://github.com/Adikso/magnifier"
- },
- "Maltego-Gravatar": {
- "name": "Maltego-Gravatar",
- "path": "/library/Email/Maltego-Gravatar"
- },
- "Maltego-haveibeenpwned": {
- "description": "This tool integrates the HaveIBeenPwned API with Maltego to check if email addresses have been involved in data breaches.",
- "install": [
- "git clone https://github.com/paterva/HaveIBeenPwned.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Maltego-haveibeenpwned",
- "path": "/library/Email/Maltego-haveibeenpwned",
- "run": "python3 haveibeenpwned.py",
- "url": "https://github.com/paterva/HaveIBeenPwned"
- },
- "MaltegoAliasToEmail": {
- "name": "MaltegoAliasToEmail",
- "path": "/library/Email/MaltegoAliasToEmail"
- },
- "ODIN": {
- "description": "ODIN is a tool designed for collecting information from a variety of public sources, aiding in email intelligence gathering.",
- "install": [
- "git clone https://github.com/chrismaddalena/ODIN.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "ODIN",
- "path": "/library/Email/ODIN",
- "run": "python3 odin.py",
- "url": "https://github.com/chrismaddalena/ODIN"
- },
- "OSINT-SAN": {
- "description": "OSINT-SAN is an email reconnaissance tool designed to gather information from a variety of online sources.",
- "install": [
- "git clone https://github.com/sinwindie/OSINT-SAN.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "OSINT-SAN",
- "path": "/library/Email/OSINT-SAN",
- "run": "python3 osint-san.py",
- "url": "https://github.com/sinwindie/OSINT-SAN"
- },
- "OSINT-SPY": {
- "description": "OSINT-SPY is a Python-based tool designed to gather information from various sources for OSINT purposes, including emails.",
- "install": [
- "git clone https://github.com/SharadKumar97/OSINT-SPY.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "OSINT-SPY",
- "path": "/library/Email/OSINT-SPY",
- "run": "python3 osint-spy.py",
- "url": "https://github.com/SharadKumar97/OSINT-SPY"
- },
- "OSINT-Search": {
- "name": "OSINT-Search",
- "path": "/library/Email/OSINT-Search"
- },
- "ProtOSINT": {
- "description": "ProtOSINT is an email address analysis tool that helps uncover information about a given email address from various sources.",
- "install": [
- "git clone https://github.com/pixelbubble/ProtOSINT.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "ProtOSINT",
- "path": "/library/Email/ProtOSINT",
- "run": "python3 protosint.py",
- "url": "https://github.com/pixelbubble/ProtOSINT"
- },
- "SocialPwned": {
- "description": "SocialPwned checks if email addresses have been compromised in breaches and searches for their presence on social media platforms.",
- "install": [
- "git clone https://github.com/M4cs/SocialPwned.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "SocialPwned",
- "path": "/library/Email/SocialPwned",
- "run": "python3 socialpwned.py",
- "url": "https://github.com/M4cs/SocialPwned"
- },
- "SpiderFoot": {
- "description": "SpiderFoot is an automated OSINT tool that collects detailed information from a variety of sources, including email addresses.",
- "install": [
- "git clone https://github.com/smicallef/spiderfoot.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "SpiderFoot",
- "path": "/library/Email/SpiderFoot",
- "run": "python3 sf.py -l 127.0.0.1:5001",
- "url": "https://github.com/smicallef/spiderfoot"
- },
- "Th3inspector": {
- "description": "Th3inspector is an information gathering tool for emails, usernames, and IP addresses, useful for OSINT investigations.",
- "install": [
- "git clone https://github.com/Moham3dRiahi/Th3inspector.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Th3inspector",
- "path": "/library/Email/Th3inspector",
- "run": "python3 th3inspector.py",
- "url": "https://github.com/Moham3dRiahi/Th3inspector"
- },
- "UhOh365": {
- "name": "UhOh365",
- "path": "/library/Email/UhOh365"
- },
- "WhatBreach": {
- "description": "WhatBreach is a tool that queries various breach data sources to check if an email has been compromised.",
- "install": [
- "git clone https://github.com/Ekultek/WhatBreach.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "WhatBreach",
- "path": "/library/Email/WhatBreach",
- "run": "python3 whatbreach.py",
- "url": "https://github.com/Ekultek/WhatBreach"
- },
- "YaSeeker": {
- "description": "YaSeeker is an email reconnaissance tool that aids in finding associated information from various sources.",
- "install": [
- "git clone https://github.com/02strich/YaSeeker.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "YaSeeker",
- "path": "/library/Email/YaSeeker",
- "run": "python3 yaseeker.py",
- "url": "https://github.com/02strich/YaSeeker"
- },
- "buckler": {
- "description": "Buckler is an OSINT tool for email and username reconnaissance, leveraging various online sources for data collection.",
- "name": "buckler",
- "path": "/library/Email/buckler",
- "run": "python3 buckler.py",
- "url": "https://github.com/lab11/buckler.git"
- },
- "buster": {
- "description": "Buster is an email enumeration tool that helps find valid email addresses through various search techniques.",
- "install": [
- "git clone https://github.com/sham00n/buster.git .",
- "sudo python3 setup.py install"
- ],
- "name": "buster",
- "path": "/library/Email/buster",
- "run": "buster",
- "url": "https://github.com/sham00n/buster"
- },
- "email2phonenumber": {
- "description": "Email2phonenumber uses public information and services to help find the phone number associated with an email address.",
- "install": [
- "git clone https://github.com/martinvigo/email2phonenumber.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "email2phonenumber",
- "path": "/library/Email/email2phonenumber",
- "run": "python3 email2phonenumber.py",
- "url": "https://github.com/martinvigo/email2phonenumber"
- },
- "gitcolombo": {
- "name": "gitcolombo",
- "path": "/library/Email/gitcolombo"
- },
- "h8mail": {
- "description": "H8mail is a powerful tool for email OSINT and password breach hunting, gathering data from various online sources.",
- "install": [
- "git clone https://github.com/khast3x/h8mail.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "h8mail",
- "path": "/library/Email/h8mail",
- "run": "python3 h8mail.py",
- "url": "https://github.com/khast3x/h8mail"
- },
- "harpoon": {
- "description": "Harpoon is a customizable information gathering and analysis tool, useful for OSINT investigations involving emails.",
- "install": [
- "git clone https://github.com/Te-k/harpoon.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "harpoon",
- "path": "/library/Email/harpoon",
- "run": "python3 harpoon.py",
- "url": "https://github.com/Te-k/harpoon"
- },
- "hibp": {
- "name": "hibp",
- "path": "/library/Email/hibp"
- },
- "holehe": {
- "description": "Holehe allows you to check if an email is registered on various websites, useful for OSINT investigations.",
- "install": [
- "git clone https://github.com/megadose/holehe.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "holehe",
- "path": "/library/Email/holehe",
- "run": "python3 holehe.py",
- "url": "https://github.com/megadose/holehe"
- },
- "holehe-maltego": {
- "description": "Holehe-Maltego integrates Holehe with Maltego to check if an email address is registered on various websites.",
- "install": [
- "git clone https://github.com/megadose/holehe-maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "holehe-maltego",
- "path": "/library/Email/holehe-maltego",
- "run": "python3 holehe_maltego.py",
- "url": "https://github.com/megadose/holehe-maltego"
- },
- "hunter-maltego": {
- "description": "Hunter-Maltego integrates the Hunter.io API with Maltego to assist in finding email addresses and related information.",
- "install": [
- "git clone https://github.com/Hakluke/hunter-maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "hunter-maltego",
- "path": "/library/Email/hunter-maltego",
- "run": "python3 hunter-maltego.py",
- "url": "https://github.com/Hakluke/hunter-maltego"
- },
- "intelx-maltego": {
- "description": "IntelX-Maltego provides a Maltego transform to leverage the IntelligenceX platform for email data collection and analysis.",
- "install": [
- "git clone https://github.com/IntelligenceX/IntelX-Maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "intelx-maltego",
- "path": "/library/Email/intelx-maltego",
- "run": "python3 intelx_maltego.py",
- "url": "https://github.com/IntelligenceX/IntelX-Maltego"
- },
- "karma": {
- "description": "Karma is a tool for performing reconnaissance on email addresses, gathering related information from public sources.",
- "install": [
- "git clone https://github.com/decoxviii/karma.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "karma",
- "path": "/library/Email/karma",
- "run": "python3 karma.py",
- "url": "https://github.com/decoxviii/karma"
- },
- "knockknock": {
- "description": "Knockknock is a script designed to enumerate email addresses through various online services, aiding OSINT efforts.",
- "install": [
- "git clone https://github.com/guelfoweb/knockknock.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "knockknock",
- "path": "/library/Email/knockknock",
- "run": "python3 knockknock.py",
- "url": "https://github.com/guelfoweb/knockknock"
- },
- "mitaka": {
- "description": "Mitaka is a browser extension that aids in OSINT investigations by enabling quick access to various data related to emails and other entities.",
- "install": [
- "git clone https://github.com/ninoseki/mitaka.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "mitaka",
- "path": "/library/Email/mitaka",
- "run": "python3 mitaka.py",
- "url": "https://github.com/ninoseki/mitaka"
- },
- "mosint": {
- "name": "mosint",
- "path": "/library/Email/mosint"
- },
- "ok_checker": {
- "name": "ok_checker",
- "path": "/library/Email/ok_checker"
- },
- "opendns_transform": {
- "description": "This tool leverages the OpenDNS API for Maltego to provide DNS information related to email domains.",
- "install": [
- "git clone https://github.com/OpenDNS/pyopendns.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "opendns_transform",
- "path": "/library/Email/opendns_transform",
- "run": "python3 opendns_transform.py",
- "url": "https://github.com/OpenDNS/pyopendns"
- },
- "pwncheck": {
- "description": "Pwncheck is a tool that queries multiple data breach services to check if an email address has been compromised.",
- "install": [
- "git clone https://github.com/davidtavarez/pwncheck.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "pwncheck",
- "path": "/library/Email/pwncheck",
- "run": "python3 pwncheck.py",
- "url": "https://github.com/davidtavarez/pwncheck"
- },
- "pwnedOrNot": {
- "description": "PwnedOrNot is a tool that checks if an email address has been compromised using the HaveIBeenPwned API.",
- "install": [
- "git clone https://github.com/thewhiteh4t/pwnedOrNot.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "pwnedOrNot",
- "path": "/library/Email/pwnedOrNot",
- "run": "python3 pwnedornot.py",
- "url": "https://github.com/thewhiteh4t/pwnedOrNot"
- },
- "recon": {
- "description": "TheHarvester is a powerful OSINT tool designed to gather emails, names, and other data from public sources.",
- "install": [
- "git clone https://github.com/laramies/theHarvester.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "recon",
- "path": "/library/Email/recon",
- "run": "python3 theHarvester.py",
- "url": "https://github.com/laramies/theHarvester"
- },
- "recon-ng": {
- "description": "Recon-ng is a powerful web reconnaissance framework written in Python, useful for gathering information about emails.",
- "install": [
- "git clone https://github.com/lanmaster53/recon-ng.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "recon-ng",
- "path": "/library/Email/recon-ng",
- "run": "python3 recon-ng",
- "url": "https://github.com/lanmaster53/recon-ng"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/Email/reconspider"
- },
- "sifter": {
- "description": "Sifter is a tool that combines various OSINT methods and tools, aiding in comprehensive email information gathering.",
- "install": [
- "git clone https://github.com/s1l3nt78/sifter.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "sifter",
- "path": "/library/Email/sifter",
- "run": "python3 sifter.py",
- "url": "https://github.com/s1l3nt78/sifter"
- },
- "sn0int": {
- "description": "Sn0int is a semi-automated OSINT framework and database designed for gathering and analyzing intelligence from various sources.",
- "install": [
- "git clone https://github.com/kpcyrd/sn0int.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "sn0int",
- "path": "/library/Email/sn0int",
- "run": "python3 sn0int.py",
- "url": "https://github.com/kpcyrd/sn0int"
- },
- "socialscan": {
- "name": "socialscan",
- "path": "/library/Email/socialscan"
- },
- "spiderfoot": {
- "name": "spiderfoot",
- "path": "/library/Email/spiderfoot"
- },
- "yesitsme": {
- "name": "yesitsme",
- "path": "/library/Email/yesitsme"
- }
- },
- "Face": {
- "EagleEye": {
- "name": "EagleEye",
- "path": "/library/Face/EagleEye"
- },
- "SpyScrap": {
- "name": "SpyScrap",
- "path": "/library/Face/SpyScrap"
- },
- "deface": {
- "name": "deface",
- "path": "/library/Face/deface"
- }
- },
- "File": {
- "Audio": {
- "deinvert": {
- "name": "deinvert",
- "path": "/library/File/Audio/deinvert"
- },
- "stego-toolkit": {
- "name": "stego-toolkit",
- "path": "/library/File/Audio/stego-toolkit"
- }
- },
- "Document": {
- "DumpsterDiver": {
- "name": "DumpsterDiver",
- "path": "/library/File/Document/DumpsterDiver"
- },
- "FOCA": {
- "name": "FOCA",
- "path": "/library/File/Document/FOCA"
- },
- "OCRmyPDF": {
- "name": "OCRmyPDF",
- "path": "/library/File/Document/OCRmyPDF"
- },
- "aleph": {
- "name": "aleph",
- "path": "/library/File/Document/aleph"
- },
- "arxiv_leaks": {
- "name": "arxiv_leaks",
- "path": "/library/File/Document/arxiv_leaks"
- },
- "exiftool": {
- "name": "exiftool",
- "path": "/library/File/Document/exiftool"
- },
- "metagoofil": {
- "name": "metagoofil",
- "path": "/library/File/Document/metagoofil"
- },
- "stego-toolkit": {
- "name": "stego-toolkit",
- "path": "/library/File/Document/stego-toolkit"
- }
- },
- "Image": {
- "darkshot": {
- "name": "darkshot",
- "path": "/library/File/Image/darkshot"
- },
- "shotlooter": {
- "name": "shotlooter",
- "path": "/library/File/Image/shotlooter"
- }
- },
- "Malware": {
- "IntelOwl": {
- "name": "IntelOwl",
- "path": "/library/File/Malware/IntelOwl"
- },
- "OSINT-SPY": {
- "name": "OSINT-SPY",
- "path": "/library/File/Malware/OSINT-SPY"
- }
- },
- "Photo": {
- "Belati": {
- "name": "Belati",
- "path": "/library/File/Photo/Belati"
- },
- "Depix": {
- "name": "Depix",
- "path": "/library/File/Photo/Depix"
- },
- "EagleEye": {
- "name": "EagleEye",
- "path": "/library/File/Photo/EagleEye"
- },
- "Face-Depixelizer": {
- "name": "Face-Depixelizer",
- "path": "/library/File/Photo/Face-Depixelizer"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/File/Photo/LittleBrother"
- },
- "SpyScrap": {
- "name": "SpyScrap",
- "path": "/library/File/Photo/SpyScrap"
- },
- "autoexif": {
- "name": "autoexif",
- "path": "/library/File/Photo/autoexif"
- },
- "deface": {
- "name": "deface",
- "path": "/library/File/Photo/deface"
- },
- "exifprobe": {
- "name": "exifprobe",
- "path": "/library/File/Photo/exifprobe"
- },
- "exifscan": {
- "name": "exifscan",
- "path": "/library/File/Photo/exifscan"
- },
- "exiftool": {
- "name": "exiftool",
- "path": "/library/File/Photo/exiftool"
- },
- "fawkes": {
- "name": "fawkes",
- "path": "/library/File/Photo/fawkes"
- },
- "infoooze": {
- "name": "infoooze",
- "path": "/library/File/Photo/infoooze"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/File/Photo/reconspider"
- },
- "search-by-image": {
- "name": "search-by-image",
- "path": "/library/File/Photo/search-by-image"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/File/Photo/sn0int"
- },
- "stego-toolkit": {
- "name": "stego-toolkit",
- "path": "/library/File/Photo/stego-toolkit"
- }
- },
- "Video": {
- "autoexif": {
- "name": "autoexif",
- "path": "/library/File/Video/autoexif"
- }
- }
- },
- "Fullname": {
- "LB": {
- "name": "LB",
- "path": "/library/Fullname/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Fullname/LittleBrother"
- },
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/Fullname/SpiderFoot"
- },
- "buster": {
- "name": "buster",
- "path": "/library/Fullname/buster"
- },
- "knockknock": {
- "name": "knockknock",
- "path": "/library/Fullname/knockknock"
- },
- "querytool": {
- "name": "querytool",
- "path": "/library/Fullname/querytool"
- },
- "recon-ng-maltego": {
- "name": "recon-ng-maltego",
- "path": "/library/Fullname/recon-ng-maltego"
- },
- "yesitsme": {
- "name": "yesitsme",
- "path": "/library/Fullname/yesitsme"
- }
- },
- "Hash": {
- "CyberChef": {
- "name": "CyberChef",
- "path": "/library/Hash/CyberChef"
- },
- "LB": {
- "name": "LB",
- "path": "/library/Hash/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Hash/LittleBrother"
- },
- "john": {
- "name": "john",
- "path": "/library/Hash/john"
- },
- "mitaka": {
- "name": "mitaka",
- "path": "/library/Hash/mitaka"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/Hash/sifter"
- }
- },
- "IP": {
- "CyberChef": {
- "name": "CyberChef",
- "path": "/library/IP/CyberChef"
- },
- "Gotanda": {
- "name": "Gotanda",
- "path": "/library/IP/Gotanda"
- },
- "Heimdall": {
- "name": "Heimdall",
- "path": "/library/IP/Heimdall"
- },
- "HostHunter": {
- "name": "HostHunter",
- "path": "/library/IP/HostHunter"
- },
- "IPDump": {
- "name": "IPDump",
- "path": "/library/IP/IPDump"
- },
- "IntelOwl": {
- "name": "IntelOwl",
- "path": "/library/IP/IntelOwl"
- },
- "Kamerka-GUI": {
- "name": "Kamerka-GUI",
- "path": "/library/IP/Kamerka-GUI"
- },
- "LB": {
- "name": "LB",
- "path": "/library/IP/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/IP/LittleBrother"
- },
- "Magnifier": {
- "name": "Magnifier",
- "path": "/library/IP/Magnifier"
- },
- "ODIN": {
- "name": "ODIN",
- "path": "/library/IP/ODIN"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/IP/OSINT-SAN"
- },
- "OSINT-SPY": {
- "name": "OSINT-SPY",
- "path": "/library/IP/OSINT-SPY"
- },
- "OSINT-Search": {
- "name": "OSINT-Search",
- "path": "/library/IP/OSINT-Search"
- },
- "Scylla": {
- "name": "Scylla",
- "path": "/library/IP/Scylla"
- },
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/IP/SpiderFoot"
- },
- "TIDoS-Framework": {
- "name": "TIDoS-Framework",
- "path": "/library/IP/TIDoS-Framework"
- },
- "Th3inspector": {
- "name": "Th3inspector",
- "path": "/library/IP/Th3inspector"
- },
- "ThreatCrowd-Maltego": {
- "name": "ThreatCrowd-Maltego",
- "path": "/library/IP/ThreatCrowd-Maltego"
- },
- "apiosintDS": {
- "name": "apiosintDS",
- "path": "/library/IP/apiosintDS"
- },
- "blocklist-ipsets": {
- "name": "blocklist-ipsets",
- "path": "/library/IP/blocklist-ipsets"
- },
- "gideon": {
- "name": "gideon",
- "path": "/library/IP/gideon"
- },
- "greynoise-maltego": {
- "name": "greynoise-maltego",
- "path": "/library/IP/greynoise-maltego"
- },
- "hackertarget_maltego_transforms": {
- "name": "hackertarget_maltego_transforms",
- "path": "/library/IP/hackertarget_maltego_transforms"
- },
- "harpoon": {
- "name": "harpoon",
- "path": "/library/IP/harpoon"
- },
- "infoooze": {
- "name": "infoooze",
- "path": "/library/IP/infoooze"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/IP/intelx-maltego"
- },
- "intrigue-core": {
- "name": "intrigue-core",
- "path": "/library/IP/intrigue-core"
- },
- "maltego-nmap": {
- "name": "maltego-nmap",
- "path": "/library/IP/maltego-nmap"
- },
- "masscan": {
- "name": "masscan",
- "path": "/library/IP/masscan"
- },
- "mitaka": {
- "name": "mitaka",
- "path": "/library/IP/mitaka"
- },
- "nmap": {
- "name": "nmap",
- "path": "/library/IP/nmap"
- },
- "opencti-maltego": {
- "name": "opencti-maltego",
- "path": "/library/IP/opencti-maltego"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/IP/operative-framework"
- },
- "querytool": {
- "name": "querytool",
- "path": "/library/IP/querytool"
- },
- "recon": {
- "name": "recon",
- "path": "/library/IP/recon"
- },
- "recon-ng-maltego": {
- "name": "recon-ng-maltego",
- "path": "/library/IP/recon-ng-maltego"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/IP/reconspider"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/IP/sifter"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/IP/sn0int"
- },
- "uDork": {
- "name": "uDork",
- "path": "/library/IP/uDork"
- }
- },
- "Location": {
- "youtube-geofind": {
- "name": "youtube-geofind",
- "path": "/library/Location/youtube-geofind"
- }
- },
- "MAC": {
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/MAC/OSINT-SAN"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/MAC/intelx-maltego"
- },
- "mac_vendor_lookup": {
- "name": "mac_vendor_lookup",
- "path": "/library/MAC/mac_vendor_lookup"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/MAC/reconspider"
- }
- },
- "Network": {
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/Network/SpiderFoot"
- },
- "skydive": {
- "name": "skydive",
- "path": "/library/Network/skydive"
- }
- },
- "Nickname": {
- "Gotanda": {
- "description": "Gotanda is a tool for searching usernames on various platforms.",
- "install": [
- "git clone https://github.com/user/Gotanda.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Gotanda",
- "path": "/library/Nickname/Gotanda",
- "run": "python3 gotanda.py"
- },
- "InstaLooter": {
- "description": "InstaLooter is a tool for scraping Instagram profiles.",
- "install": [
- "git clone https://github.com/althonos/InstaLooter.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "InstaLooter",
- "path": "/library/Nickname/InstaLooter",
- "run": "python3 instalooter.py"
- },
- "MagmaOsint": {
- "description": "MagmaOsint is a tool for open-source intelligence and user reconnaissance.",
- "install": [
- "git clone https://github.com/magma/magma.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "MagmaOsint",
- "path": "/library/Nickname/MagmaOsint",
- "run": "python3 magma.py"
- },
- "OSINT-SAN": {
- "description": "OSINT-SAN is a tool for open-source intelligence on usernames.",
- "install": [
- "git clone https://github.com/user/OSINT-SAN.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "OSINT-SAN",
- "path": "/library/Nickname/OSINT-SAN",
- "run": "python3 osint-san.py"
- },
- "Quidam": {
- "description": "Quidam is a tool used for nickname and username enumeration.",
- "install": [
- "git clone https://github.com/user/Quidam.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Quidam",
- "path": "/library/Nickname/Quidam",
- "run": "python3 quidam.py"
- },
- "Scylla": {
- "description": "Scylla is a tool for intelligence gathering on usernames and emails.",
- "install": [
- "git clone https://github.com/mandiant/Scylla.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "Scylla",
- "path": "/library/Nickname/Scylla",
- "run": "python3 scylla.py"
- },
- "SpiderFoot": {
- "description": "SpiderFoot is an open-source intelligence (OSINT) automation tool.",
- "install": [
- "git clone https://github.com/smicallef/spiderfoot.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "SpiderFoot",
- "path": "/library/Nickname/SpiderFoot",
- "run": "python3 sf.py"
- },
- "TIDoS-Framework": {
- "description": "TIDoS Framework is a comprehensive web application auditing toolkit.",
- "install": [
- "git clone https://github.com/0xInfection/TIDoS-Framework.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "TIDoS-Framework",
- "path": "/library/Nickname/TIDoS-Framework",
- "run": "python3 tidos.py"
- },
- "TIGMINT": {
- "description": "TIGMINT is a tool for intelligence gathering and monitoring.",
- "install": [
- "git clone https://github.com/user/TIGMINT.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "TIGMINT",
- "path": "/library/Nickname/TIGMINT",
- "run": "python3 tigmint.py"
- },
- "buster": {
- "description": "Buster is a tool for brute-forcing usernames.",
- "install": [
- "git clone https://github.com/sham00n/buster.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "buster",
- "path": "/library/Nickname/buster",
- "run": "python3 buster.py"
- },
- "cqfd": {
- "description": "CQFD is a tool for username and nickname enumeration.",
- "install": [
- "git clone https://github.com/user/cqfd.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "cqfd",
- "path": "/library/Nickname/cqfd",
- "run": "python3 cqfd.py"
- },
- "cqfd-maltego": {
- "description": "CQFD Maltego is a transform for Maltego to find social media profiles.",
- "install": [
- "git clone https://github.com/user/cqfd-maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "cqfd-maltego",
- "path": "/library/Nickname/cqfd-maltego",
- "run": "python3 cqfd-maltego.py"
- },
- "gideon": {
- "description": "Gideon is a tool for recognizing and processing usernames.",
- "install": [
- "git clone https://github.com/plate-recognition/gideon.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "gideon",
- "path": "/library/Nickname/gideon",
- "run": "python3 gideon.py"
- },
- "infoooze": {
- "description": "Infoooze is a tool for extracting information about usernames.",
- "install": [
- "git clone https://github.com/infoooze/infoooze.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "infoooze",
- "path": "/library/Nickname/infoooze",
- "run": "python3 infoooze.py"
- },
- "instagram-scraper": {
- "description": "Instagram Scraper is a tool to scrape and download public Instagram data.",
- "install": [
- "git clone https://github.com/rarcega/instagram-scraper.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "instagram-scraper",
- "path": "/library/Nickname/instagram-scraper",
- "run": "python3 instagram-scraper.py"
- },
- "karma": {
- "description": "Karma is a tool used for email address verification and validation.",
- "install": [
- "git clone https://github.com/decoxviii/karma.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "karma",
- "path": "/library/Nickname/karma",
- "run": "python3 karma.py"
- },
- "maigret": {
- "description": "Maigret is a tool for collecting a dossier on a person by username from various sources.",
- "install": [
- "git clone https://github.com/soxoj/maigret.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "maigret",
- "path": "/library/Nickname/maigret",
- "run": "python3 maigret.py"
- },
- "mailcat": {
- "description": "Mailcat is a tool for enumerating and verifying email addresses.",
- "install": [
- "git clone https://github.com/mailcat/mailcat.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "mailcat",
- "path": "/library/Nickname/mailcat",
- "run": "python3 mailcat.py"
- },
- "marple": {
- "description": "Marple is a tool for OSINT and user reconnaissance.",
- "install": [
- "git clone https://github.com/marple/marple.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "marple",
- "path": "/library/Nickname/marple",
- "run": "python3 marple.py"
- },
- "operative-framework": {
- "description": "Operative Framework is a tool for network recon, OSINT, and profiling.",
- "install": [
- "git clone https://github.com/graniet/operative-framework.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "operative-framework",
- "path": "/library/Nickname/operative-framework",
- "run": "python3 operative-framework.py"
- },
- "osint-namecheckers-list": {
- "description": "OSINT Name Checkers List is a compilation of tools for checking username availability across multiple platforms.",
- "install": [
- "git clone https://github.com/osint-namecheckers/osint-namecheckers-list.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "osint-namecheckers-list",
- "path": "/library/Nickname/osint-namecheckers-list",
- "run": "python3 osint-namecheckers-list.py"
- },
- "querytool": {
- "description": "Querytool is a tool for querying various online services for user information.",
- "install": [
- "git clone https://github.com/user/querytool.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "querytool",
- "path": "/library/Nickname/querytool",
- "run": "python3 querytool.py"
- },
- "quidam-maltego": {
- "description": "Quidam Maltego is a transform for Maltego to find usernames across social networks.",
- "install": [
- "git clone https://github.com/user/quidam-maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "quidam-maltego",
- "path": "/library/Nickname/quidam-maltego",
- "run": "python3 quidam-maltego.py"
- },
- "recon": {
- "description": "Recon is a tool for gathering intelligence about usernames.",
- "install": [
- "git clone https://github.com/jonnyzzz/recon.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "recon",
- "path": "/library/Nickname/recon",
- "run": "python3 recon.py"
- },
- "recon-ng": {
- "description": "Recon-ng is a full-featured web reconnaissance framework.",
- "install": [
- "git clone https://github.com/lanmaster53/recon-ng.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "recon-ng",
- "path": "/library/Nickname/recon-ng",
- "run": "python3 recon-ng"
- },
- "recon-ng-maltego": {
- "description": "Recon-ng Maltego is a transform for Maltego to integrate recon-ng.",
- "install": [
- "git clone https://github.com/user/recon-ng-maltego.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "recon-ng-maltego",
- "path": "/library/Nickname/recon-ng-maltego",
- "run": "python3 recon-ng-maltego.py"
- },
- "reconspider": {
- "description": "ReconSpider is a tool for automating OSINT and recon tasks.",
- "install": [
- "git clone https://github.com/bhavsec/reconspider.git .",
- "python3 setup.py install"
- ],
- "name": "reconspider",
- "path": "/library/Nickname/reconspider",
- "run": "python3 reconspider.py"
- },
- "sherlock": {
- "description": "Sherlock is a tool to find usernames across many social networks.",
- "install": [
- "git clone https://github.com/sherlock-project/sherlock.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "sherlock",
- "path": "/library/Nickname/sherlock",
- "run": "python3 sherlock.py"
- },
- "sifter": {
- "description": "Sifter is a collection of OSINT, recon, and vulnerability scanning tools.",
- "install": [
- "git clone https://github.com/s1l3nt78/sifter.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "sifter",
- "path": "/library/Nickname/sifter",
- "run": "python3 sifter.py"
- },
- "sn0int": {
- "description": "Sn0int is a semi-automatic OSINT framework and package manager.",
- "install": [
- "git clone https://github.com/kpcyrd/sn0int.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "sn0int",
- "path": "/library/Nickname/sn0int",
- "run": "python3 sn0int.py"
- },
- "snoop": {
- "description": "Snoop is a tool for gathering information about social media profiles.",
- "install": [
- "git clone https://github.com/snoop/snoop.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "snoop",
- "path": "/library/Nickname/snoop",
- "run": "python3 snoop.py"
- },
- "social-analyzer": {
- "description": "Social Analyzer is an API, CLI, and Web App for analyzing and finding a person's profile on social media.",
- "install": [
- "git clone https://github.com/qeeqbox/social-analyzer.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "social-analyzer",
- "path": "/library/Nickname/social-analyzer",
- "run": "python3 social-analyzer.py"
- },
- "socialscan": {
- "description": "Socialscan is a tool for verifying the availability of usernames and email addresses on various platforms.",
- "install": [
- "git clone https://github.com/iojw/socialscan.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "socialscan",
- "path": "/library/Nickname/socialscan",
- "run": "python3 socialscan.py"
- },
- "whatsmyname": {
- "description": "WhatsMyName is a tool for finding usernames across multiple websites.",
- "install": [
- "git clone https://github.com/WebBreacher/WhatsMyName.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "whatsmyname",
- "path": "/library/Nickname/whatsmyname",
- "run": "python3 whatsmyname.py"
- }
- },
- "Other": {
- "Automation": {
- "FinalRecon": {
- "name": "FinalRecon",
- "path": "/library/Other/Automation/FinalRecon"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Other/Automation/LittleBrother"
- },
- "Maryam": {
- "name": "Maryam",
- "path": "/library/Other/Automation/Maryam"
- },
- "ODIN": {
- "name": "ODIN",
- "path": "/library/Other/Automation/ODIN"
- },
- "OSINT-Search": {
- "name": "OSINT-Search",
- "path": "/library/Other/Automation/OSINT-Search"
- },
- "Scrummage": {
- "name": "Scrummage",
- "path": "/library/Other/Automation/Scrummage"
- },
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/Other/Automation/SpiderFoot"
- },
- "TIDoS-Framework": {
- "name": "TIDoS-Framework",
- "path": "/library/Other/Automation/TIDoS-Framework"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Other/Automation/recon-ng"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/Other/Automation/sifter"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/Other/Automation/sn0int"
- },
- "theHarvester": {
- "name": "theHarvester",
- "path": "/library/Other/Automation/theHarvester"
- }
- },
- "BrowserPlugin": {
- "Gotanda": {
- "name": "Gotanda",
- "path": "/library/Other/BrowserPlugin/Gotanda"
- },
- "SingleFile": {
- "name": "SingleFile",
- "path": "/library/Other/BrowserPlugin/SingleFile"
- },
- "mitaka": {
- "name": "mitaka",
- "path": "/library/Other/BrowserPlugin/mitaka"
- },
- "search-by-image": {
- "name": "search-by-image",
- "path": "/library/Other/BrowserPlugin/search-by-image"
- }
- },
- "BurpSuite": {
- "Asset_History": {
- "name": "Asset_History",
- "path": "/library/Other/BurpSuite/Asset_History"
- }
- },
- "Clouds": {
- "CloudScraper": {
- "name": "CloudScraper",
- "path": "/library/Other/Clouds/CloudScraper"
- },
- "CloudStorageFinder": {
- "name": "CloudStorageFinder",
- "path": "/library/Other/Clouds/CloudStorageFinder"
- },
- "GCPBucketBrute": {
- "name": "GCPBucketBrute",
- "path": "/library/Other/Clouds/GCPBucketBrute"
- },
- "MicroBurst": {
- "name": "MicroBurst",
- "path": "/library/Other/Clouds/MicroBurst"
- },
- "cartography": {
- "name": "cartography",
- "path": "/library/Other/Clouds/cartography"
- },
- "inSp3ctor": {
- "name": "inSp3ctor",
- "path": "/library/Other/Clouds/inSp3ctor"
- },
- "secret-leak-prevention-demo": {
- "name": "secret-leak-prevention-demo",
- "path": "/library/Other/Clouds/secret-leak-prevention-demo"
- },
- "spaces-finder": {
- "name": "spaces-finder",
- "path": "/library/Other/Clouds/spaces-finder"
- }
- },
- "Dorks": {
- "sitedorks": {
- "name": "sitedorks",
- "path": "/library/Other/Dorks/sitedorks"
- }
- },
- "Feeds": {
- "darkshot": {
- "name": "darkshot",
- "path": "/library/Other/Feeds/darkshot"
- },
- "shotlooter": {
- "name": "shotlooter",
- "path": "/library/Other/Feeds/shotlooter"
- }
- },
- "Identifier": {
- "python-stdnum": {
- "name": "python-stdnum",
- "path": "/library/Other/Identifier/python-stdnum"
- }
- },
- "Info": {
- "API-s-for-OSINT": {
- "name": "API-s-for-OSINT",
- "path": "/library/Other/Info/API-s-for-OSINT"
- },
- "DFW1N-OSINT": {
- "name": "DFW1N-OSINT",
- "path": "/library/Other/Info/DFW1N-OSINT"
- },
- "OSINT-Discord-resources": {
- "name": "OSINT-Discord-resources",
- "path": "/library/Other/Info/OSINT-Discord-resources"
- },
- "OSINT-Framework": {
- "name": "OSINT-Framework",
- "path": "/library/Other/Info/OSINT-Framework"
- },
- "OSINT-Map": {
- "name": "OSINT-Map",
- "path": "/library/Other/Info/OSINT-Map"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/Other/Info/OSINT-SAN"
- },
- "OSINT_Collection": {
- "name": "OSINT_Collection",
- "path": "/library/Other/Info/OSINT_Collection"
- },
- "OSINT_Team_Links": {
- "name": "OSINT_Team_Links",
- "path": "/library/Other/Info/OSINT_Team_Links"
- },
- "awesome-osint": {
- "name": "awesome-osint",
- "path": "/library/Other/Info/awesome-osint"
- },
- "dark-web-osint-tools": {
- "name": "dark-web-osint-tools",
- "path": "/library/Other/Info/dark-web-osint-tools"
- },
- "netstalking-osint": {
- "name": "netstalking-osint",
- "path": "/library/Other/Info/netstalking-osint"
- },
- "osint-cheatsheet": {
- "name": "osint-cheatsheet",
- "path": "/library/Other/Info/osint-cheatsheet"
- },
- "osint_stuff_tool_collection": {
- "name": "osint_stuff_tool_collection",
- "path": "/library/Other/Info/osint_stuff_tool_collection"
- },
- "sinwindieOSINT": {
- "name": "sinwindieOSINT",
- "path": "/library/Other/Info/sinwindieOSINT"
- }
- },
- "Leaks": {
- "Apple-ID-Data-Leak": {
- "name": "Apple-ID-Data-Leak",
- "path": "/library/Other/Leaks/Apple-ID-Data-Leak"
- },
- "Breach-Miner": {
- "name": "Breach-Miner",
- "path": "/library/Other/Leaks/Breach-Miner"
- },
- "Cr3dOv3r": {
- "name": "Cr3dOv3r",
- "path": "/library/Other/Leaks/Cr3dOv3r"
- },
- "DumpsterDiver": {
- "name": "DumpsterDiver",
- "path": "/library/Other/Leaks/DumpsterDiver"
- },
- "EMAGNET": {
- "name": "EMAGNET",
- "path": "/library/Other/Leaks/EMAGNET"
- },
- "FileScan": {
- "name": "FileScan",
- "path": "/library/Other/Leaks/FileScan"
- },
- "GitDorker": {
- "name": "GitDorker",
- "path": "/library/Other/Leaks/GitDorker"
- },
- "GitHacker": {
- "name": "GitHacker",
- "path": "/library/Other/Leaks/GitHacker"
- },
- "Keyring": {
- "name": "Keyring",
- "path": "/library/Other/Leaks/Keyring"
- },
- "LeakLooker-X": {
- "name": "LeakLooker-X",
- "path": "/library/Other/Leaks/LeakLooker-X"
- },
- "PasteHunter": {
- "name": "PasteHunter",
- "path": "/library/Other/Leaks/PasteHunter"
- },
- "Scavenger": {
- "name": "Scavenger",
- "path": "/library/Other/Leaks/Scavenger"
- },
- "SocialPwned": {
- "name": "SocialPwned",
- "path": "/library/Other/Leaks/SocialPwned"
- },
- "WhatBreach": {
- "name": "WhatBreach",
- "path": "/library/Other/Leaks/WhatBreach"
- },
- "ail-framework": {
- "name": "ail-framework",
- "path": "/library/Other/Leaks/ail-framework"
- },
- "aleph": {
- "name": "aleph",
- "path": "/library/Other/Leaks/aleph"
- },
- "darkshot": {
- "name": "darkshot",
- "path": "/library/Other/Leaks/darkshot"
- },
- "data_toolkit": {
- "name": "data_toolkit",
- "path": "/library/Other/Leaks/data_toolkit"
- },
- "git-hound": {
- "name": "git-hound",
- "path": "/library/Other/Leaks/git-hound"
- },
- "gitleak": {
- "name": "gitleak",
- "path": "/library/Other/Leaks/gitleak"
- },
- "gitleaks": {
- "name": "gitleaks",
- "path": "/library/Other/Leaks/gitleaks"
- },
- "h8mail": {
- "name": "h8mail",
- "path": "/library/Other/Leaks/h8mail"
- },
- "ipfs": {
- "name": "ipfs",
- "path": "/library/Other/Leaks/ipfs"
- },
- "leakScraper": {
- "name": "leakScraper",
- "path": "/library/Other/Leaks/leakScraper"
- },
- "leaks_parser": {
- "name": "leaks_parser",
- "path": "/library/Other/Leaks/leaks_parser"
- },
- "pastebin_scraper": {
- "name": "pastebin_scraper",
- "path": "/library/Other/Leaks/pastebin_scraper"
- },
- "pwnbin": {
- "name": "pwnbin",
- "path": "/library/Other/Leaks/pwnbin"
- },
- "pwndb": {
- "name": "pwndb",
- "path": "/library/Other/Leaks/pwndb"
- },
- "pwnedOrNot": {
- "name": "pwnedOrNot",
- "path": "/library/Other/Leaks/pwnedOrNot"
- },
- "radiocarbon": {
- "name": "radiocarbon",
- "path": "/library/Other/Leaks/radiocarbon"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Other/Leaks/recon-ng"
- },
- "secret-bridge": {
- "name": "secret-bridge",
- "path": "/library/Other/Leaks/secret-bridge"
- },
- "secret-leak-prevention-demo": {
- "name": "secret-leak-prevention-demo",
- "path": "/library/Other/Leaks/secret-leak-prevention-demo"
- },
- "seemnemaailm-leak-analysis": {
- "name": "seemnemaailm-leak-analysis",
- "path": "/library/Other/Leaks/seemnemaailm-leak-analysis"
- },
- "shhgit": {
- "name": "shhgit",
- "path": "/library/Other/Leaks/shhgit"
- },
- "shotlooter": {
- "name": "shotlooter",
- "path": "/library/Other/Leaks/shotlooter"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/Other/Leaks/sifter"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/Other/Leaks/sn0int"
- },
- "sniff-paste": {
- "name": "sniff-paste",
- "path": "/library/Other/Leaks/sniff-paste"
- }
- },
- "Login": {
- "default-http-login-hunter": {
- "name": "default-http-login-hunter",
- "path": "/library/Other/Login/default-http-login-hunter"
- }
- },
- "Maltego": {
- "Heimdall": {
- "name": "Heimdall",
- "path": "/library/Other/Maltego/Heimdall"
- },
- "MISP-maltego": {
- "name": "MISP-maltego",
- "path": "/library/Other/Maltego/MISP-maltego"
- },
- "Maltego-BreachAlarm": {
- "name": "Maltego-BreachAlarm",
- "path": "/library/Other/Maltego/Maltego-BreachAlarm"
- },
- "Maltego-Clearbit": {
- "name": "Maltego-Clearbit",
- "path": "/library/Other/Maltego/Maltego-Clearbit"
- },
- "Maltego-Facebook": {
- "name": "Maltego-Facebook",
- "path": "/library/Other/Maltego/Maltego-Facebook"
- },
- "Maltego-FullContact": {
- "name": "Maltego-FullContact",
- "path": "/library/Other/Maltego/Maltego-FullContact"
- },
- "Maltego-GitHub": {
- "name": "Maltego-GitHub",
- "path": "/library/Other/Maltego/Maltego-GitHub"
- },
- "Maltego-Gravatar": {
- "name": "Maltego-Gravatar",
- "path": "/library/Other/Maltego/Maltego-Gravatar"
- },
- "Maltego-Hostio": {
- "name": "Maltego-Hostio",
- "path": "/library/Other/Maltego/Maltego-Hostio"
- },
- "Maltego-haveibeenpwned": {
- "name": "Maltego-haveibeenpwned",
- "path": "/library/Other/Maltego/Maltego-haveibeenpwned"
- },
- "MaltegoAliasToEmail": {
- "name": "MaltegoAliasToEmail",
- "path": "/library/Other/Maltego/MaltegoAliasToEmail"
- },
- "Maltego_Transform_Blockchain_DNS": {
- "name": "Maltego_Transform_Blockchain_DNS",
- "path": "/library/Other/Maltego/Maltego_Transform_Blockchain_DNS"
- },
- "Nextego": {
- "name": "Nextego",
- "path": "/library/Other/Maltego/Nextego"
- },
- "ThreatCrowd-Maltego": {
- "name": "ThreatCrowd-Maltego",
- "path": "/library/Other/Maltego/ThreatCrowd-Maltego"
- },
- "cqfd-maltego": {
- "name": "cqfd-maltego",
- "path": "/library/Other/Maltego/cqfd-maltego"
- },
- "greynoise-maltego": {
- "name": "greynoise-maltego",
- "path": "/library/Other/Maltego/greynoise-maltego"
- },
- "hackertarget_maltego_transforms": {
- "name": "hackertarget_maltego_transforms",
- "path": "/library/Other/Maltego/hackertarget_maltego_transforms"
- },
- "holehe-maltego": {
- "name": "holehe-maltego",
- "path": "/library/Other/Maltego/holehe-maltego"
- },
- "hunchly-maltego": {
- "name": "hunchly-maltego",
- "path": "/library/Other/Maltego/hunchly-maltego"
- },
- "hunter-maltego": {
- "name": "hunter-maltego",
- "path": "/library/Other/Maltego/hunter-maltego"
- },
- "intelx-maltego": {
- "name": "intelx-maltego",
- "path": "/library/Other/Maltego/intelx-maltego"
- },
- "keskivonfer-maltego": {
- "name": "keskivonfer-maltego",
- "path": "/library/Other/Maltego/keskivonfer-maltego"
- },
- "maltego-nmap": {
- "name": "maltego-nmap",
- "path": "/library/Other/Maltego/maltego-nmap"
- },
- "maltego-transforms-list": {
- "name": "maltego-transforms-list",
- "path": "/library/Other/Maltego/maltego-transforms-list"
- },
- "michenriksen_maltego": {
- "name": "michenriksen_maltego",
- "path": "/library/Other/Maltego/michenriksen_maltego"
- },
- "nqntnqnqmb-maltego": {
- "name": "nqntnqnqmb-maltego",
- "path": "/library/Other/Maltego/nqntnqnqmb-maltego"
- },
- "opencti-maltego": {
- "name": "opencti-maltego",
- "path": "/library/Other/Maltego/opencti-maltego"
- },
- "opendns_transform": {
- "name": "opendns_transform",
- "path": "/library/Other/Maltego/opendns_transform"
- },
- "phoneinfoga-maltego": {
- "name": "phoneinfoga-maltego",
- "path": "/library/Other/Maltego/phoneinfoga-maltego"
- },
- "quidam-maltego": {
- "name": "quidam-maltego",
- "path": "/library/Other/Maltego/quidam-maltego"
- },
- "totem-maltego": {
- "name": "totem-maltego",
- "path": "/library/Other/Maltego/totem-maltego"
- },
- "toutatis-maltego": {
- "name": "toutatis-maltego",
- "path": "/library/Other/Maltego/toutatis-maltego"
- },
- "wayback-maltego": {
- "name": "wayback-maltego",
- "path": "/library/Other/Maltego/wayback-maltego"
- }
- },
- "Phishing": {
- "-PHP-Simple-IP-Logger": {
- "name": "-PHP-Simple-IP-Logger",
- "path": "/library/Other/Phishing/-PHP-Simple-IP-Logger"
- },
- "Bigbro": {
- "name": "Bigbro",
- "path": "/library/Other/Phishing/Bigbro"
- },
- "Mimir": {
- "name": "Mimir",
- "path": "/library/Other/Phishing/Mimir"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/Other/Phishing/OSINT-SAN"
- },
- "PhishAPI": {
- "name": "PhishAPI",
- "path": "/library/Other/Phishing/PhishAPI"
- },
- "WhatsApp-IP-logger": {
- "name": "WhatsApp-IP-logger",
- "path": "/library/Other/Phishing/WhatsApp-IP-logger"
- },
- "king-phisher": {
- "name": "king-phisher",
- "path": "/library/Other/Phishing/king-phisher"
- },
- "nero-phishing-server": {
- "name": "nero-phishing-server",
- "path": "/library/Other/Phishing/nero-phishing-server"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/Other/Phishing/reconspider"
- },
- "seeker": {
- "name": "seeker",
- "path": "/library/Other/Phishing/seeker"
- },
- "sifter": {
- "name": "sifter",
- "path": "/library/Other/Phishing/sifter"
- },
- "trape": {
- "name": "trape",
- "path": "/library/Other/Phishing/trape"
- },
- "whosthere": {
- "name": "whosthere",
- "path": "/library/Other/Phishing/whosthere"
- }
- },
- "Search": {
- "OnionSearch": {
- "name": "OnionSearch",
- "path": "/library/Other/Search/OnionSearch"
- },
- "degoogle": {
- "name": "degoogle",
- "path": "/library/Other/Search/degoogle"
- },
- "sitedorks": {
- "name": "sitedorks",
- "path": "/library/Other/Search/sitedorks"
- },
- "uDork": {
- "name": "uDork",
- "path": "/library/Other/Search/uDork"
- }
- },
- "SourceCode": {
- "Belati": {
- "name": "Belati",
- "path": "/library/Other/SourceCode/Belati"
- },
- "GitGot": {
- "name": "GitGot",
- "path": "/library/Other/SourceCode/GitGot"
- },
- "LeakLooker-X": {
- "name": "LeakLooker-X",
- "path": "/library/Other/SourceCode/LeakLooker-X"
- },
- "dvcs-ripper": {
- "name": "dvcs-ripper",
- "path": "/library/Other/SourceCode/dvcs-ripper"
- },
- "gitcolombo": {
- "name": "gitcolombo",
- "path": "/library/Other/SourceCode/gitcolombo"
- },
- "gitem": {
- "name": "gitem",
- "path": "/library/Other/SourceCode/gitem"
- },
- "gitleak": {
- "name": "gitleak",
- "path": "/library/Other/SourceCode/gitleak"
- },
- "gitleaks": {
- "name": "gitleaks",
- "path": "/library/Other/SourceCode/gitleaks"
- },
- "gitrob": {
- "name": "gitrob",
- "path": "/library/Other/SourceCode/gitrob"
- },
- "secret-leak-prevention-demo": {
- "name": "secret-leak-prevention-demo",
- "path": "/library/Other/SourceCode/secret-leak-prevention-demo"
- },
- "shhgit": {
- "name": "shhgit",
- "path": "/library/Other/SourceCode/shhgit"
- }
- },
- "VMs": {
- "Argos": {
- "name": "Argos",
- "path": "/library/Other/VMs/Argos"
- },
- "OSINT_VM_Setup": {
- "name": "OSINT_VM_Setup",
- "path": "/library/Other/VMs/OSINT_VM_Setup"
- },
- "OffenOsint": {
- "name": "OffenOsint",
- "path": "/library/Other/VMs/OffenOsint"
- },
- "OsintDistro": {
- "name": "OsintDistro",
- "path": "/library/Other/VMs/OsintDistro"
- },
- "dora-osint-vm": {
- "name": "dora-osint-vm",
- "path": "/library/Other/VMs/dora-osint-vm"
- }
- },
- "WiFi": {
- "apple_bleee": {
- "name": "apple_bleee",
- "path": "/library/Other/WiFi/apple_bleee"
- },
- "nearby": {
- "name": "nearby",
- "path": "/library/Other/WiFi/nearby"
- }
- }
- },
- "Password": {
- "Oblivion": {
- "name": "Oblivion",
- "path": "/library/Password/Oblivion"
- },
- "karma": {
- "name": "karma",
- "path": "/library/Password/karma"
- },
- "recon-ng": {
- "name": "recon-ng",
- "path": "/library/Password/recon-ng"
- }
- },
- "Phone": {
- "DeadTrap": {
- "name": "DeadTrap",
- "path": "/library/Phone/DeadTrap"
- },
- "LB": {
- "name": "LB",
- "path": "/library/Phone/LB"
- },
- "LittleBrother": {
- "name": "LittleBrother",
- "path": "/library/Phone/LittleBrother"
- },
- "Moriarty-Project": {
- "name": "Moriarty-Project",
- "path": "/library/Phone/Moriarty-Project"
- },
- "No-BlackM": {
- "name": "No-BlackM",
- "path": "/library/Phone/No-BlackM"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/Phone/OSINT-SAN"
- },
- "PhoneInfoga": {
- "name": "PhoneInfoga",
- "path": "/library/Phone/PhoneInfoga"
- },
- "Scylla": {
- "name": "Scylla",
- "path": "/library/Phone/Scylla"
- },
- "SpiderFoot": {
- "name": "SpiderFoot",
- "path": "/library/Phone/SpiderFoot"
- },
- "Th3inspector": {
- "name": "Th3inspector",
- "path": "/library/Phone/Th3inspector"
- },
- "collector": {
- "name": "collector",
- "path": "/library/Phone/collector"
- },
- "getcontact": {
- "name": "getcontact",
- "path": "/library/Phone/getcontact"
- },
- "gideon": {
- "name": "gideon",
- "path": "/library/Phone/gideon"
- },
- "ignorant": {
- "name": "ignorant",
- "path": "/library/Phone/ignorant"
- },
- "ok_checker": {
- "name": "ok_checker",
- "path": "/library/Phone/ok_checker"
- },
- "operative-framework": {
- "name": "operative-framework",
- "path": "/library/Phone/operative-framework"
- },
- "phoneinfoga-maltego": {
- "name": "phoneinfoga-maltego",
- "path": "/library/Phone/phoneinfoga-maltego"
- },
- "phonia": {
- "name": "phonia",
- "path": "/library/Phone/phonia"
- },
- "reconspider": {
- "name": "reconspider",
- "path": "/library/Phone/reconspider"
- },
- "sn0int": {
- "name": "sn0int",
- "path": "/library/Phone/sn0int"
- },
- "ya_perezvonu": {
- "name": "ya_perezvonu",
- "path": "/library/Phone/ya_perezvonu"
- },
- "yesitsme": {
- "name": "yesitsme",
- "path": "/library/Phone/yesitsme"
- }
- },
- "PlateNumber": {
- "gideon": {
- "description": "Gideon is a tool for recognizing and processing vehicle plate numbers.",
- "install": [
- "git clone https://github.com/plate-recognition/gideon.git .",
- "python3 -m pip install -r requirements.txt"
- ],
- "name": "gideon",
- "path": "/library/PlateNumber/gideon",
- "run": "python3 gideon.py"
- }
- },
- "Token": {
- "AWS": {
- "grayhat2": {
- "name": "grayhat2",
- "path": "/library/Token/AWS/grayhat2"
- }
- },
- "Slack": {
- "SlackPirate": {
- "name": "SlackPirate",
- "path": "/library/Token/Slack/SlackPirate"
- }
- },
- "Telegram": {
- "telegram-bot-dumper": {
- "name": "telegram-bot-dumper",
- "path": "/library/Token/Telegram/telegram-bot-dumper"
- }
- }
- },
- "Traffic": {
- "Heimdall": {
- "name": "Heimdall",
- "path": "/library/Traffic/Heimdall"
- }
- },
- "URL": {
- "EyeWitness": {
- "name": "EyeWitness",
- "path": "/library/URL/EyeWitness"
- },
- "Gotanda": {
- "name": "Gotanda",
- "path": "/library/URL/Gotanda"
- },
- "apiosintDS": {
- "name": "apiosintDS",
- "path": "/library/URL/apiosintDS"
- },
- "wayback-maltego": {
- "name": "wayback-maltego",
- "path": "/library/URL/wayback-maltego"
- }
- },
- "Voice": {
- "deinvert": {
- "name": "deinvert",
- "path": "/library/Voice/deinvert"
- }
- },
- "Webpage": {
- "Asset_History": {
- "name": "Asset_History",
- "path": "/library/Webpage/Asset_History"
- },
- "CMSeeK": {
- "name": "CMSeeK",
- "path": "/library/Webpage/CMSeeK"
- },
- "Carbon14": {
- "name": "Carbon14",
- "path": "/library/Webpage/Carbon14"
- },
- "CarbonDate": {
- "name": "CarbonDate",
- "path": "/library/Webpage/CarbonDate"
- },
- "Magnifier": {
- "name": "Magnifier",
- "path": "/library/Webpage/Magnifier"
- },
- "Maryam": {
- "name": "Maryam",
- "path": "/library/Webpage/Maryam"
- },
- "OSINT-SAN": {
- "name": "OSINT-SAN",
- "path": "/library/Webpage/OSINT-SAN"
- },
- "OSINT-Search": {
- "name": "OSINT-Search",
- "path": "/library/Webpage/OSINT-Search"
- },
- "SingleFile": {
- "name": "SingleFile",
- "path": "/library/Webpage/SingleFile"
- },
- "TIDoS-Framework": {
- "name": "TIDoS-Framework",
- "path": "/library/Webpage/TIDoS-Framework"
- },
- "Th3inspector": {
- "name": "Th3inspector",
- "path": "/library/Webpage/Th3inspector"
- },
- "aquatone": {
- "name": "aquatone",
- "path": "/library/Webpage/aquatone"
- },
- "chat-downloader": {
- "name": "chat-downloader",
- "path": "/library/Webpage/chat-downloader"
- },
- "gallery-dl": {
- "name": "gallery-dl",
- "path": "/library/Webpage/gallery-dl"
- },
- "harpoon": {
- "name": "harpoon",
- "path": "/library/Webpage/harpoon"
- },
- "infoooze": {
- "name": "infoooze",
- "path": "/library/Webpage/infoooze"
- },
- "recon": {
- "name": "recon",
- "path": "/library/Webpage/recon"
- },
- "shift-ctrl-f": {
- "name": "shift-ctrl-f",
- "path": "/library/Webpage/shift-ctrl-f"
- },
- "social-media-profiles-regexs": {
- "name": "social-media-profiles-regexs",
- "path": "/library/Webpage/social-media-profiles-regexs"
- },
- "socid_extractor": {
- "name": "socid_extractor",
- "path": "/library/Webpage/socid_extractor"
- },
- "unfurl": {
- "name": "unfurl",
- "path": "/library/Webpage/unfurl"
- },
- "waybackpack": {
- "name": "waybackpack",
- "path": "/library/Webpage/waybackpack"
- },
- "youtube-comment-downloader": {
- "name": "youtube-comment-downloader",
- "path": "/library/Webpage/youtube-comment-downloader"
- }
- }
-}
\ No newline at end of file
diff --git a/flowsint-web/src/app/dashboard/keys/page.tsx b/flowsint-web/src/app/dashboard/keys/page.tsx
index 5e45c547..43fe2342 100644
--- a/flowsint-web/src/app/dashboard/keys/page.tsx
+++ b/flowsint-web/src/app/dashboard/keys/page.tsx
@@ -16,7 +16,7 @@ export default function TokensPage() {
])
return (
- <>
+ <div className="space-y-12">
<div>
<div className="flex justify-between items-start mb-4">
<div>
@@ -87,7 +87,7 @@ export default function TokensPage() {
<div>
<div className="flex justify-between items-start mb-4">
<div>
- <h1 className="text-3xl font-bold">Vos clés de services tiers</h1>
+ <h1 className="text-2xl font-bold">Vos clés de services tiers</h1>
<p className="text-muted-foreground mt-1">
Gérez vos clés de services tiers pour votre espace de travail actuel
</p>
@@ -144,7 +144,7 @@ export default function TokensPage() {
</TabsContent>
</Tabs>
</div>
- </>
+ </div>
)
}
diff --git a/flowsint-web/src/app/dashboard/layout.tsx b/flowsint-web/src/app/dashboard/layout.tsx
index ad293876..388fadbb 100644
--- a/flowsint-web/src/app/dashboard/layout.tsx
+++ b/flowsint-web/src/app/dashboard/layout.tsx
@@ -6,6 +6,7 @@ import {
SidebarTrigger,
} from "@/components/ui/sidebar"
import { redirect } from "next/navigation";
+import { Button } from "@/components/ui/button";
const DashboardLayout = async ({
children,
@@ -21,9 +22,9 @@ const DashboardLayout = async ({
<SidebarProvider>
<AppSidebar user={data?.user} />
<SidebarInset>
- <header className="flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12">
+ <header className="flex h-14 sticky top-0 bg-background/60 backdrop-blur border-b border-border justify-end shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12">
<div className="flex items-center gap-2 px-4">
- <SidebarTrigger className="-ml-1" />
+ <Button variant={"outline"}>Feedback</Button>
</div>
</header>
<div className="flex flex-1 flex-col gap-4 container mx-auto py-12 px-8">
diff --git a/flowsint-web/src/app/dashboard/page.tsx b/flowsint-web/src/app/dashboard/page.tsx
index 030b79fb..483984eb 100644
--- a/flowsint-web/src/app/dashboard/page.tsx
+++ b/flowsint-web/src/app/dashboard/page.tsx
@@ -1,207 +1,147 @@
"use client"
-import { useState, useEffect } from "react"
-import Investigation from "@/components/dashboard/investigation"
-import InvestigationList from "@/components/dashboard/investigation-list"
+import { useState } from "react"
import { Button } from "@/components/ui/button"
-import { Badge } from "@/components/ui/badge"
-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
-import { AlertCircle, ChevronDown, Clock, Filter, Lock, Plus, Search, Target } from "lucide-react"
-import NewCase from "@/components/dashboard/new-case"
-import { supabase } from "@/lib/supabase/client"
import { Input } from "@/components/ui/input"
-import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
-import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@/components/ui/command"
-import ViewToggle from "@/components/dashboard/view-toggle"
-import { useQueryState } from "nuqs"
+import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
+import { ChevronLeft, MoreHorizontal, PlusIcon, Search, SlidersHorizontal } from "lucide-react"
+import { useQuery } from "@tanstack/react-query"
+import { notFound } from "next/navigation"
import Loader from "@/components/loader"
-
-type ViewMode = "grid" | "list"
+import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
+import { format, formatDistanceToNow } from "date-fns"
+import { Folder } from "lucide-react"
+import Link from "next/link"
+import { Project } from "@/types/project"
+import RecentSketches from "@/components/dashboard/recent-sketches"
+import NewProject from "@/components/dashboard/new-project"
const DashboardPage = () => {
- const [viewMode, setViewMode] = useQueryState<ViewMode>("view", {
- defaultValue: "grid",
- parse: (value) => (value === "grid" || value === "list" ? value : "grid")
- })
- const [investigations, setInvestigations] = useState<any[]>([])
- const [loading, setLoading] = useState(true)
- const activeCount = investigations.filter((inv) => inv.status === "active").length || 0
- const pendingCount = investigations.filter((inv) => inv.status === "pending").length || 0
- const archivedCount = investigations.filter((inv) => inv.status === "archived").length || 0
- const totalCount = investigations.length
- useEffect(() => {
- const fetchInvestigations = async () => {
- setLoading(true)
- const { data, error } = await supabase
- .from("investigations")
- .select("*, relations_count:relationships!inner(count), individuals_counts:individuals!inner(count)")
- if (error) {
- console.error("Erreur lors de la récupération des investigations:", error)
- } else {
- setInvestigations(data || [])
+ const [searchQuery, setSearchQuery] = useState("")
+
+ const { data, isLoading } = useQuery({
+ queryKey: ["dashboard", "projects"],
+ queryFn: async () => {
+ const res = await fetch(`/api/projects`)
+ if (!res.ok) {
+ notFound()
}
- setLoading(false)
- }
- fetchInvestigations()
- }, [])
- const getGridClasses = () => {
- return viewMode === "grid" ? "grid gap-4 sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3" : "grid gap-2 grid-cols-1"
- }
+ return res.json()
+ },
+ refetchOnWindowFocus: true,
+ })
+ const projects = data?.projects || []
+ const filteredProjects = projects.filter(
+ (project: Project) => searchQuery === "" || project.name?.toLowerCase().includes(searchQuery.toLowerCase()),
+ )
return (
- <div className="space-y-6 w-full">
- <div className="flex flex-col gap-4 md:gap-8">
- <div className="flex flex-col gap-2 md:flex-row md:items-center md:justify-between">
- <div>
- <h1 className="text-3xl font-bold tracking-tight">Investigations</h1>
- <p className="text-muted-foreground">Gérez et suivez vos investigations OSINT en cours.</p>
- </div>
- <div className="flex items-center gap-2">
- <NewCase>
- <Button size="sm" className="h-8 gap-1">
- <Plus className="h-3.5 w-3.5" />
- <span>Nouvelle investigation</span>
- </Button>
- </NewCase>
- </div>
+ <div className="w-full space-y-8">
+ <div>
+ <h1 className="text-3xl font-bold">Welcome back, Eliott</h1>
+ </div>
+ <div>
+ <RecentSketches />
+ </div>
+ <div className="flex items-center justify-between mb-6">
+ <div className="relative w-full max-w-md">
+ <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ type="search"
+ placeholder="Search projects..."
+ className="pl-8 w-full"
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ />
</div>
- <div className="flex flex-col md:flex-row gap-4 md:items-center">
- <div className="relative flex-1 md:max-w-sm">
- <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
- <Input
- type="search"
- placeholder="Rechercher..."
- className="w-full rounded-lg bg-background pl-8 md:max-w-sm"
- />
- </div>
- <div className="flex items-center gap-2">
- <Popover>
- <PopoverTrigger asChild>
- <Button variant="outline" size="sm" className="h-8 gap-1">
- <Filter className="h-3.5 w-3.5" />
- <span>Filtres</span>
- </Button>
- </PopoverTrigger>
- <PopoverContent className="w-72">
- <Command>
- <CommandInput placeholder="Rechercher un filtre..." />
- <CommandList>
- <CommandEmpty>Aucun filtre trouvé.</CommandEmpty>
- <CommandGroup heading="Statut">
- <CommandItem>Actif</CommandItem>
- <CommandItem>En cours</CommandItem>
- <CommandItem>Archivé</CommandItem>
- </CommandGroup>
- <CommandGroup heading="Priorité">
- <CommandItem>Critique</CommandItem>
- <CommandItem>Haute</CommandItem>
- <CommandItem>Moyenne</CommandItem>
- <CommandItem>Basse</CommandItem>
- </CommandGroup>
- <CommandGroup heading="Tags">
- <CommandItem>Financial</CommandItem>
- <CommandItem>Corporate</CommandItem>
- <CommandItem>Cyber</CommandItem>
- <CommandItem>International</CommandItem>
- </CommandGroup>
- </CommandList>
- </Command>
- </PopoverContent>
- </Popover>
- <ViewToggle currentView={viewMode} onViewChange={setViewMode} />
- </div>
+ <div className="flex items-center gap-2">
+ <NewProject>
+ <Button size="sm" className="gap-2">
+ <PlusIcon className="h-4 w-4" /> Add
+ </Button>
+ </NewProject>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline" size="sm" className="gap-2">
+ <SlidersHorizontal className="h-4 w-4 opacity-60" />
+ <span className="hidden sm:inline">Sort by</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem>Name</DropdownMenuItem>
+ <DropdownMenuItem>Date created</DropdownMenuItem>
+ <DropdownMenuItem>Date modified</DropdownMenuItem>
+ <DropdownMenuItem>Size</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
</div>
- <Tabs defaultValue="active" className="w-full">
- <TabsList>
- <TabsTrigger value="active" className="gap-1.5">
- <AlertCircle className="h-4 w-4" />
- <span>Actives</span>
- <Badge className="ml-1" variant={"outline"}>
- {activeCount}
- </Badge>
- </TabsTrigger>
- <TabsTrigger value="pending" className="gap-1.5">
- <Clock className="h-4 w-4" />
- <span>En cours</span>
- <Badge className="ml-1" variant={"outline"}>
- {pendingCount}
- </Badge>
- </TabsTrigger>
- <TabsTrigger value="archived" className="gap-1.5">
- <Lock className="h-4 w-4" />
- <span>Archivées</span>
- <Badge className="ml-1" variant={"outline"}>
- {archivedCount}
- </Badge>
- </TabsTrigger>
- <TabsTrigger value="all" className="gap-1.5">
- <Target className="h-4 w-4" />
- <span>Toutes</span>
- <Badge className="ml-1" variant={"outline"}>
- {totalCount}
- </Badge>
- </TabsTrigger>
- </TabsList>
- {loading ? (
- <div className="mt-6 flex justify-center">
- <p><Loader /> Chargement des investigations...</p>
- </div>
- ) : (
- <>
- <TabsContent value="all" className="mt-6">
- <div className={getGridClasses()}>
- {investigations.map((investigation) =>
- viewMode === "grid" ? (
- <Investigation key={investigation.id} investigation={investigation} />
- ) : (
- <InvestigationList key={investigation.id} investigation={investigation} />
- ),
- )}
- </div>
- </TabsContent>
- <TabsContent value="active" className="mt-6">
- <div className={getGridClasses()}>
- {investigations
- .filter((inv) => inv.status === "active")
- .map((investigation) =>
- viewMode === "grid" ? (
- <Investigation key={investigation.id} investigation={investigation} />
- ) : (
- <InvestigationList key={investigation.id} investigation={investigation} />
- ),
- )}
- </div>
- </TabsContent>
- <TabsContent value="pending" className="mt-6">
- <div className={getGridClasses()}>
- {investigations
- .filter((inv) => inv.status === "pending")
- .map((investigation) =>
- viewMode === "grid" ? (
- <Investigation key={investigation.id} investigation={investigation} />
- ) : (
- <InvestigationList key={investigation.id} investigation={investigation} />
- ),
- )}
- </div>
- </TabsContent>
- <TabsContent value="archived" className="mt-6">
- <div className={getGridClasses()}>
- {investigations
- .filter((inv) => inv.status === "archived")
- .map((investigation) =>
- viewMode === "grid" ? (
- <Investigation key={investigation.id} investigation={investigation} />
- ) : (
- <InvestigationList key={investigation.id} investigation={investigation} />
- ),
- )}
- </div>
- </TabsContent>
- </>
- )}
- </Tabs>
</div>
+ {isLoading ? (
+ <div className="flex justify-center items-center py-12">
+ <Loader />
+ </div>
+ ) : (
+ <div className="border rounded-md">
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Name</TableHead>
+ <TableHead>Owner</TableHead>
+ <TableHead className="hidden md:table-cell">Size</TableHead>
+ <TableHead className="hidden sm:table-cell">Last modified</TableHead>
+ <TableHead className="hidden sm:table-cell">Creation</TableHead>
+ <TableHead className="w-[50px]"></TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {filteredProjects.length === 0 ? (
+ <TableRow>
+ <TableCell colSpan={5} className="text-center py-8 text-muted-foreground">
+ No projects found
+ </TableCell>
+ </TableRow>
+ ) : (
+ filteredProjects.map((project: Project) => (
+ <TableRow key={project.id}>
+ <TableCell>
+ <Link href={`dashboard/projects/${project.id}`} className="flex items-center gap-2 hover:underline">
+ <Folder className="h-5 w-5 text-primary" />
+ <span>{project.name}</span>
+ </Link>
+ </TableCell>
+ <TableCell className="text-muted-foreground">{`${project?.owner?.first_name} ${project?.owner?.last_name}` || "You"}</TableCell>
+ <TableCell className="hidden md:table-cell text-muted-foreground">
+ {(project.investigations?.length || 0) > 0 ? `${project.investigations.length} items` : "Empty"}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {formatDistanceToNow(new Date(project.last_updated_at), { addSuffix: true })}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {format(new Date(project.created_at), "dd.MM.yyyy")}
+ </TableCell>
+ <TableCell>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" size="icon" className="h-8 w-8">
+ <MoreHorizontal className="h-4 w-4" />
+ <span className="sr-only">Actions</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem>Open</DropdownMenuItem>
+ <DropdownMenuItem>Rename</DropdownMenuItem>
+ <DropdownMenuItem>Share</DropdownMenuItem>
+ <DropdownMenuItem className="text-destructive">Delete</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </TableCell>
+ </TableRow>
+ ))
+ )}
+ </TableBody>
+ </Table>
+ </div>
+ )}
</div>
)
}
diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/layout.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/layout.tsx
new file mode 100644
index 00000000..a563aa0f
--- /dev/null
+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/layout.tsx
@@ -0,0 +1,15 @@
+import FileUploadDialog from "@/components/projects/file-upload";
+
+const DashboardLayout = async ({
+ children,
+}: {
+ children: React.ReactNode;
+}) => {
+ return (
+ <>
+ {children}
+ <FileUploadDialog />
+ </>
+ )
+}
+export default DashboardLayout
\ No newline at end of file
diff --git a/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx b/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx
new file mode 100644
index 00000000..0de696a0
--- /dev/null
+++ b/flowsint-web/src/app/dashboard/projects/[project_id]/page.tsx
@@ -0,0 +1,164 @@
+"use client"
+
+import { useState } from "react"
+import { Button } from "@/components/ui/button"
+import { Input } from "@/components/ui/input"
+import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
+import { MoreHorizontal, PlusIcon, Search, SlidersHorizontal, Waypoints } from "lucide-react"
+import { useQuery } from "@tanstack/react-query"
+import { notFound, useParams } from "next/navigation"
+import Loader from "@/components/loader"
+import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
+import { format, formatDistanceToNow } from "date-fns"
+import Link from "next/link"
+import {
+ Breadcrumb,
+ BreadcrumbItem,
+ BreadcrumbLink,
+ BreadcrumbList,
+ BreadcrumbPage,
+ BreadcrumbSeparator,
+} from "@/components/ui/breadcrumb"
+import { Investigation } from "@/types/investigation"
+import NewCase from "@/components/dashboard/new-sketch"
+import { DocumentList } from "@/components/projects/documents-list"
+
+const DashboardPage = () => {
+ const { project_id } = useParams()
+ const [searchQuery, setSearchQuery] = useState("")
+
+ const { data: project, isLoading } = useQuery({
+ queryKey: ["dashboard", "projects", project_id],
+ queryFn: async () => {
+ const res = await fetch(`/api/projects/${project_id}`)
+ if (!res.ok) {
+ notFound()
+ }
+ return res.json()
+ },
+ refetchOnWindowFocus: true,
+ })
+
+ return (
+ <div className="w-full space-y-8">
+ <Breadcrumb>
+ <BreadcrumbList>
+ <BreadcrumbItem>
+ <BreadcrumbLink asChild>
+ <Link href="/dashboard">Projects</Link></BreadcrumbLink>
+ </BreadcrumbItem>
+ <BreadcrumbSeparator />
+ <BreadcrumbItem>
+ <BreadcrumbPage>{project?.name}</BreadcrumbPage>
+ </BreadcrumbItem>
+ </BreadcrumbList>
+ </Breadcrumb>
+ <div className="flex items-center justify-between mb-6">
+ <div className="relative w-full max-w-md">
+ <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
+ <Input
+ type="search"
+ placeholder="Search items..."
+ className="pl-8 w-full"
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ />
+ </div>
+ <div className="flex items-center gap-2">
+ <NewCase>
+ <Button size="sm" className="gap-2">
+ <PlusIcon className="h-4 w-4" /> Add
+ </Button>
+ </NewCase>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline" size="sm" className="gap-2">
+ <SlidersHorizontal className="h-4 w-4" />
+ <span className="hidden sm:inline">Sort by</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem>Name</DropdownMenuItem>
+ <DropdownMenuItem>Type</DropdownMenuItem>
+ <DropdownMenuItem>Date created</DropdownMenuItem>
+ <DropdownMenuItem>Date modified</DropdownMenuItem>
+ <DropdownMenuItem>Size</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
+ </div>
+ {isLoading ? (
+ <div className="flex justify-center items-center py-12">
+ <Loader />
+ </div>
+ ) : (
+ <div className="border rounded-md">
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Name</TableHead>
+ <TableHead>Type</TableHead>
+ <TableHead>Owner</TableHead>
+ <TableHead className="hidden md:table-cell">Size</TableHead>
+ <TableHead className="hidden sm:table-cell">Last modified</TableHead>
+ <TableHead className="hidden sm:table-cell">Creation</TableHead>
+ <TableHead className="w-[50px]"></TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {project.investigations.length === 0 ? (
+ <TableRow>
+ <TableCell colSpan={6} className="text-center w-full py-2 text-muted-foreground">
+ No sketch yet.
+ </TableCell>
+ </TableRow>
+ ) : (
+ project?.investigations?.map((investigation: Investigation) => (
+ <TableRow key={investigation.id}>
+ <TableCell>
+ <Link href={`/investigations/${investigation.id}`} className="flex items-center gap-2 hover:underline">
+ <Waypoints className="h-5 w-5 text-primary" />
+ <span>{investigation.title}</span>
+ </Link>
+ </TableCell>
+ <TableCell className="text-muted-foreground">{"Sketch"}</TableCell>
+ <TableCell className="text-muted-foreground">{`${investigation?.owner?.first_name} ${project?.owner?.last_name}` || "You"}</TableCell>
+ <TableCell className="hidden md:table-cell text-muted-foreground">
+ {(investigation?.individuals?.length || 0) > 0 ? `${investigation?.individuals?.length} items` : "Empty"}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {formatDistanceToNow(new Date(investigation.last_updated_at), { addSuffix: true })}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {format(new Date(project.created_at), "dd/MM/yyyy")}
+ </TableCell>
+ <TableCell>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" size="icon" className="h-8 w-8">
+ <MoreHorizontal className="h-4 w-4" />
+ <span className="sr-only">Actions</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem>Open</DropdownMenuItem>
+ <DropdownMenuItem>Rename</DropdownMenuItem>
+ <DropdownMenuItem>Share</DropdownMenuItem>
+ <DropdownMenuItem className="text-destructive">Delete</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </TableCell>
+ </TableRow>
+ ))
+ )}
+ <DocumentList />
+ </TableBody>
+ </Table>
+ </div>
+ )}
+ </div>
+ )
+}
+
+export default DashboardPage
+
diff --git a/flowsint-web/src/app/investigations/[investigation_id]/left.tsx b/flowsint-web/src/app/investigations/[investigation_id]/left.tsx
index 0002b55f..2f357f01 100644
--- a/flowsint-web/src/app/investigations/[investigation_id]/left.tsx
+++ b/flowsint-web/src/app/investigations/[investigation_id]/left.tsx
@@ -47,10 +47,10 @@ const Left = ({ investigation_id }: { investigation_id: string }) => {
// Composant réutilisable pour le skeleton loader
const LoadingSkeleton = () => (
- <div className="flex flex-col gap-1">
- <Skeleton className="w-full h-[20px] bg-foreground/10 rounded-none" />
- <Skeleton className="w-full h-[20px] bg-foreground/10 rounded-none" />
- <Skeleton className="w-full h-[20px] bg-foreground/10 rounded-none" />
+ <div className="flex flex-col gap-1 px-2">
+ <Skeleton className="w-[90%] h-[14px] bg-foreground/5 rounded-xl" />
+ <Skeleton className="w-[80%] h-[14px] bg-foreground/5 rounded-xl" />
+ <Skeleton className="w-[70%] h-[14px] bg-foreground/5 rounded-xl" />
</div>
)
return (
diff --git a/flowsint-web/src/components/app-sidebar.tsx b/flowsint-web/src/components/app-sidebar.tsx
index 6ee858a9..236a0f34 100644
--- a/flowsint-web/src/components/app-sidebar.tsx
+++ b/flowsint-web/src/components/app-sidebar.tsx
@@ -18,6 +18,7 @@ import {
SidebarMenuItem,
SidebarRail,
SidebarSeparator,
+ SidebarTrigger,
} from "@/components/ui/sidebar"
import { TeamSwitcher } from "./team-switcher"
// Define navigation item type
@@ -102,11 +103,11 @@ export function AppSidebar({ user, ...props }: AppSidebarProps) {
}
return (
- <Sidebar collapsible="icon" {...props}>
+ <Sidebar collapsible="icon" {...props} >
<SidebarHeader>
<TeamSwitcher />
</SidebarHeader>
- <SidebarContent className="p-0 overflow-hidden">
+ <SidebarContent className="p-0">
<SidebarGroup className="group-data-[collapsible=icon]:p-auto">
<SidebarGroupLabel>NAVIGATION</SidebarGroupLabel>
<SidebarMenu>
diff --git a/flowsint-web/src/components/dashboard/investigation-list.tsx b/flowsint-web/src/components/dashboard/investigation-list.tsx
deleted file mode 100644
index 89e3db5b..00000000
--- a/flowsint-web/src/components/dashboard/investigation-list.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-import { Badge } from "@/components/ui/badge"
-import { Card, CardDescription, CardTitle } from "@/components/ui/card"
-import { AlertCircle, Calendar, Users } from "lucide-react"
-import Link from "next/link"
-
-interface Investigation {
- id: string
- title: string
- description: string
- status: string
- priority: string
- created_at: string
- relations_count: { count: number }
- individuals_counts: { count: number }
-}
-
-export default function InvestigationList({ investigation }: { investigation: Investigation }) {
- const priorityColors = {
- high: "text-red-500",
- medium: "text-amber-500",
- low: "text-green-500",
- }
-
- const statusColors = {
- active: "bg-green-500/10 text-green-500 border-green-500/20",
- pending: "bg-amber-500/10 text-amber-500 border-amber-500/20",
- archived: "bg-slate-500/10 text-slate-500 border-slate-500/20",
- }
-
- const statusText = {
- active: "Actif",
- pending: "En cours",
- archived: "Archivé",
- }
-
- const formattedDate = new Date(investigation.created_at).toLocaleDateString("fr-FR", {
- day: "numeric",
- month: "short",
- year: "numeric",
- })
-
- return (
- <Card className="overflow-hidden border shadow-none bg-background">
- <div className="flex items-center p-4 gap-4">
- <div className="flex-1">
- <div className="flex items-center gap-2 mb-1">
- <Link href={`/investigations/${investigation.id}`} className="hover:underline">
- <CardTitle className="text-lg">{investigation.title}</CardTitle>
- </Link>
- <Badge variant="outline" className={statusColors[investigation.status as keyof typeof statusColors]}>
- {statusText[investigation.status as keyof typeof statusText]}
- </Badge>
- </div>
- <CardDescription className="line-clamp-1">{investigation.description}</CardDescription>
-
- <div className="flex items-center gap-4 mt-2 text-sm text-muted-foreground">
- <div className="flex items-center gap-1">
- <Calendar className="h-3.5 w-3.5" />
- <span>{formattedDate}</span>
- </div>
- <div className="flex items-center gap-1">
- <Users className="h-3.5 w-3.5" />
- <span>{investigation.individuals_counts.count} individus</span>
- </div>
- <div className="flex items-center gap-1">
- <AlertCircle
- className={`h-3.5 w-3.5 ${priorityColors[investigation.priority as keyof typeof priorityColors]}`}
- />
- <span className={priorityColors[investigation.priority as keyof typeof priorityColors]}>
- Priorité {investigation.priority}
- </span>
- </div>
- </div>
- </div>
- </div>
- </Card>
- )
-}
-
diff --git a/flowsint-web/src/components/dashboard/new-project.tsx b/flowsint-web/src/components/dashboard/new-project.tsx
new file mode 100644
index 00000000..2730bd56
--- /dev/null
+++ b/flowsint-web/src/components/dashboard/new-project.tsx
@@ -0,0 +1,93 @@
+"use client"
+
+import type React from "react"
+
+import { useState } from "react"
+import { useRouter } from "next/navigation"
+import { createNewProject } from "@/lib/actions/projects"
+import { Button } from "@/components/ui/button"
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog"
+import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
+import { Input } from "@/components/ui/input"
+import { Label } from "@/components/ui/label"
+import { Badge } from "@/components/ui/badge"
+import { useFormStatus } from "react-dom"
+import { toast } from "sonner"
+
+function SubmitButton() {
+ const { pending } = useFormStatus()
+
+ return (
+ <Button type="submit" disabled={pending}>
+ {pending ? "Saving..." : "Save"}
+ </Button>
+ )
+}
+
+export default function NewProject({ children }: { children: React.ReactNode }) {
+ const [open, setOpen] = useState(false)
+ const router = useRouter()
+
+ async function handleNewProject(formData: FormData) {
+ const result = await createNewProject(formData)
+ if (result.success) {
+ toast.success("New project created.")
+ router.push(`/dashboard/projects/${result.id}`)
+ setOpen(false)
+ } else {
+ toast.error("Could not create new project.")
+ }
+ }
+
+ return (
+ <>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>{children}</DropdownMenuTrigger>
+ <DropdownMenuContent>
+ <DropdownMenuItem onSelect={() => setOpen(true)}>
+ New project
+ <span className="ml-auto text-xs text-muted-foreground">⌘ E</span>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogContent className="sm:max-w-[425px]">
+ <DialogHeader>
+ <DialogTitle>New project</DialogTitle>
+ <DialogDescription>Create a new blank project.</DialogDescription>
+ </DialogHeader>
+ <form action={handleNewProject}>
+ <div className="grid gap-4 py-4">
+ <div className="grid gap-2">
+ <Label htmlFor="name">Project name</Label>
+ <Input id="name" name="name" placeholder="Suspicion de fraude" required />
+ </div>
+ <div className="grid gap-2">
+ <Label htmlFor="description">Description</Label>
+ <Input
+ id="description"
+ name="description"
+ placeholder="Investigation sur une campagne de phishing via LinkedIn."
+ />
+ </div>
+ </div>
+ <DialogFooter>
+ <Button type="button" variant="outline" onClick={() => setOpen(false)}>
+ Cancel
+ </Button>
+ <SubmitButton />
+ </DialogFooter>
+ </form>
+ </DialogContent>
+ </Dialog>
+ </>
+ )
+}
+
diff --git a/flowsint-web/src/components/dashboard/new-case.tsx b/flowsint-web/src/components/dashboard/new-sketch.tsx
similarity index 81%
rename from flowsint-web/src/components/dashboard/new-case.tsx
rename to flowsint-web/src/components/dashboard/new-sketch.tsx
index 0e3091c5..857ad62a 100644
--- a/flowsint-web/src/components/dashboard/new-case.tsx
+++ b/flowsint-web/src/components/dashboard/new-sketch.tsx
@@ -3,7 +3,7 @@
import type React from "react"
import { useState } from "react"
-import { useRouter } from "next/navigation"
+import { useParams, useRouter } from "next/navigation"
import { createNewCase } from "@/lib/actions/investigations"
import { Button } from "@/components/ui/button"
import {
@@ -19,10 +19,13 @@ import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { Badge } from "@/components/ui/badge"
import { useFormStatus } from "react-dom"
+import { toast } from "sonner"
+import { useProjectStore } from "@/store/project-store"
function SubmitButton() {
const { pending } = useFormStatus()
+
return (
<Button type="submit" disabled={pending}>
{pending ? "Saving..." : "Save"}
@@ -32,16 +35,20 @@ function SubmitButton() {
export default function NewCase({ children }: { children: React.ReactNode }) {
const [open, setOpen] = useState(false)
+ const { setOpenUploadModal } = useProjectStore()
+
const router = useRouter()
+ const { project_id } = useParams()
+
async function handleNewCase(formData: FormData) {
- const result = await createNewCase(formData)
+ const result = await createNewCase(formData, project_id as string)
if (result.success) {
+ toast.success("New sketch created.")
router.push(`/investigations/${result.id}`)
setOpen(false)
} else {
- console.error(result.error)
- // You might want to show an error message to the user here
+ toast.error("Could not create new sketch.")
}
}
@@ -51,14 +58,11 @@ export default function NewCase({ children }: { children: React.ReactNode }) {
<DropdownMenuTrigger asChild>{children}</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem onSelect={() => setOpen(true)}>
- New case
+ New sketch
<span className="ml-auto text-xs text-muted-foreground">⌘ E</span>
</DropdownMenuItem>
- <DropdownMenuItem disabled>
- New organization
- <Badge variant="outline" className="ml-2">
- Soon
- </Badge>
+ <DropdownMenuItem onSelect={() => setOpenUploadModal(true)}>
+ New document
<span className="ml-auto text-xs text-muted-foreground">⌘ D</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -66,8 +70,8 @@ export default function NewCase({ children }: { children: React.ReactNode }) {
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
- <DialogTitle>New case</DialogTitle>
- <DialogDescription>Create a new blank case.</DialogDescription>
+ <DialogTitle>New sketch</DialogTitle>
+ <DialogDescription>Create a new blank sketch.</DialogDescription>
</DialogHeader>
<form action={handleNewCase}>
<div className="grid gap-4 py-4">
diff --git a/flowsint-web/src/components/dashboard/recent-sketches.tsx b/flowsint-web/src/components/dashboard/recent-sketches.tsx
new file mode 100644
index 00000000..5c530456
--- /dev/null
+++ b/flowsint-web/src/components/dashboard/recent-sketches.tsx
@@ -0,0 +1,85 @@
+"use client"
+
+import type { Investigation } from "@/types/investigation"
+import { useQuery } from "@tanstack/react-query"
+import Link from "next/link"
+import { FileText, Folder, Layers, Search, Waypoints } from "lucide-react"
+
+import { Card, CardContent, CardFooter } from "@/components/ui/card"
+import { Skeleton } from "@/components/ui/skeleton"
+import { formatDistanceToNow } from "date-fns"
+
+const RecentSketches = () => {
+ const {
+ data: investigations,
+ isLoading,
+ error,
+ } = useQuery({
+ queryKey: ["dashboard", "investigations"],
+ queryFn: async () => {
+ const res = await fetch(`/api/investigations`)
+ return res.json()
+ },
+ refetchOnWindowFocus: true,
+ })
+
+ if (error) {
+ return (
+ <div className="flex flex-col items-center justify-center p-8 text-center rounded-lg border border-dashed">
+ <Search className="h-10 w-10 text-muted-foreground mb-2" />
+ <h3 className="text-lg font-semibold">Error loading investigations</h3>
+ <p className="text-sm text-muted-foreground">
+ There was a problem loading your investigations. Please try again.
+ </p>
+ </div>
+ )
+ }
+
+ if (isLoading) {
+ return (
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
+ {Array.from({ length: 4 }).map((_, i) => (
+ <Card key={i} className="overflow-hidden shadow-none bg-transparent border-none">
+ <Skeleton className="h-40 w-full bg-foreground/5" />
+ <CardContent className="p-4">
+ <Skeleton className="h-4 w-3/4 mb-2 bg-foreground/5" />
+ <Skeleton className="h-3 w-1/2 bg-foreground/5" />
+ </CardContent>
+ </Card>
+ ))}
+ </div>
+ )
+ }
+
+ // SVG placeholder icons to use randomly
+ const placeholderIcons = [
+ <Waypoints key="folder" strokeWidth={.60} className="h-18 w-18 opacity-40 group-hover:opacity-100 group-hover:text-primary" />,
+ ]
+
+ return (
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
+ {investigations?.map((investigation: Investigation) => {
+ const randomIcon = placeholderIcons[Math.floor(Math.random() * placeholderIcons.length)]
+
+ return (
+ <Link href={`/investigations/${investigation.id}`} key={investigation.id} className="group">
+ <Card className="bg-transparent shadow-none h-full transition-all duration-200 border-none">
+ <div className={`flex items-center justify-center bg-foreground/5 h-40 border group-hover:border-primary/80 group-hover:border-2 rounded-md`}>
+ <div className="transform transition-transform group-hover:scale-105">{randomIcon}</div>
+ </div>
+ <CardContent className="p-4 relative">
+ <h3 className="font-medium line-clamp-1 group-hover:text-primary transition-colors">
+ {investigation.title}
+ </h3>
+ <span className="text-xs opacity-60">Last updated {formatDistanceToNow(investigation.last_updated_at, { addSuffix: true })}</span>
+ </CardContent>
+ </Card>
+ </Link>
+ )
+ })}
+ </div>
+ )
+}
+
+export default RecentSketches
+
diff --git a/flowsint-web/src/components/investigations/add-node-modal.tsx b/flowsint-web/src/components/investigations/add-node-modal.tsx
index 94419e82..6310d9dc 100644
--- a/flowsint-web/src/components/investigations/add-node-modal.tsx
+++ b/flowsint-web/src/components/investigations/add-node-modal.tsx
@@ -8,6 +8,7 @@ import { Avatar, AvatarFallback } from "@/components/ui/avatar"
import { Input } from "@/components/ui/input"
import type React from "react" // Added import for React
import { DialogDescription, DialogTitle } from "@radix-ui/react-dialog"
+import { toast } from "sonner"
export default function AddNodeModal({ addNodes }: { addNodes: any }) {
const { investigation_id } = useParams()
@@ -29,8 +30,11 @@ export default function AddNodeModal({ addNodes }: { addNodes: any }) {
data: { ...node, label: data.full_name },
position: { x: -100, y: -100 },
})
+ toast.success("New node created.")
+
} catch (error) {
- console.error("Error adding individual:", error)
+ toast.error("Could not create new node:" + JSON.stringify(error))
+
}
}
diff --git a/flowsint-web/src/components/investigations/graph.tsx b/flowsint-web/src/components/investigations/graph.tsx
index 938f15c2..06686740 100644
--- a/flowsint-web/src/components/investigations/graph.tsx
+++ b/flowsint-web/src/components/investigations/graph.tsx
@@ -329,11 +329,12 @@ const LayoutFlow = ({ refetch, theme }: LayoutFlowProps) => {
// Handle node context menu
const handleNodeContextMenu: NodeMouseHandler = useCallback((event, node) => {
+ console.log(node, event)
// Prevent default context menu
event.preventDefault()
setNodeContextMenu({
- x: event.clientX - 300,
- y: event.clientY - 40,
+ x: event.screenX - 200,
+ y: event.screenY - 150,
nodeId: node.id,
nodeType: node.type || "default",
})
diff --git a/flowsint-web/src/components/investigations/layout.tsx b/flowsint-web/src/components/investigations/layout.tsx
index 2fb41f92..9bbbdb7a 100644
--- a/flowsint-web/src/components/investigations/layout.tsx
+++ b/flowsint-web/src/components/investigations/layout.tsx
@@ -2,7 +2,7 @@
import React from 'react'
import MoreMenu from './more-menu';
import CaseSelector from './case-selector';
-import NewCase from '@/components/dashboard/new-case';
+import NewCase from '@/components/dashboard/new-sketch';
import SearchModal from '@/components/dashboard/search-palette';
import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels';
import { PanelRightIcon, PlusIcon, RotateCwIcon } from 'lucide-react';
diff --git a/flowsint-web/src/components/logo.tsx b/flowsint-web/src/components/logo.tsx
index 2a92a9e9..2edb9731 100644
--- a/flowsint-web/src/components/logo.tsx
+++ b/flowsint-web/src/components/logo.tsx
@@ -1,8 +1,9 @@
import React from 'react'
import { HomeIcon } from 'lucide-react'
+import Image from 'next/image'
const Logo = () => {
return (
- <HomeIcon className='h-4 w-4' />
+ <Image src="/logo.webp" height={50} width={50} alt="logo" className='w-full rounded-full max-w-[35px] max-h-[35px]' />
)
}
diff --git a/flowsint-web/src/components/projects/documents-list.tsx b/flowsint-web/src/components/projects/documents-list.tsx
new file mode 100644
index 00000000..bc8b76bb
--- /dev/null
+++ b/flowsint-web/src/components/projects/documents-list.tsx
@@ -0,0 +1,187 @@
+"use client"
+
+import { useState } from "react"
+import { useQuery } from "@tanstack/react-query"
+import { format, formatDistanceToNow } from "date-fns"
+import { FileIcon, MoreHorizontal } from "lucide-react"
+import { useParams } from "next/navigation"
+
+import { Button } from "@/components/ui/button"
+import { TableCell, TableRow } from "@/components/ui/table"
+import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
+import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog"
+import { Skeleton } from "../ui/skeleton"
+
+interface Document {
+ id: string
+ name: string
+ type: string
+ size: number
+ created_at: string
+ last_updated_at: string
+ url: string
+ owner: {
+ first_name: string
+ last_name: string
+ }
+}
+
+export function DocumentList() {
+ const { project_id } = useParams<{ project_id: string }>()
+ const [searchQuery, setSearchQuery] = useState("")
+ const [previewUrl, setPreviewUrl] = useState<string | null>(null)
+ const [previewType, setPreviewType] = useState<string | null>(null)
+
+ const {
+ data: documents,
+ isLoading,
+ refetch,
+ } = useQuery({
+ queryKey: ["project", project_id, "documents"],
+ queryFn: async () => {
+ const res = await fetch(`/api/projects/${project_id}/documents`)
+ if (!res.ok) {
+ throw new Error("Failed to fetch documents")
+ }
+ return res.json() as Promise<Document[]>
+ },
+ refetchOnWindowFocus: true,
+ enabled: !!project_id,
+ })
+
+ const filteredDocuments = documents?.filter((doc) => doc.name.toLowerCase().includes(searchQuery.toLowerCase())) || []
+
+ const formatFileSize = (bytes: number) => {
+ if (bytes < 1024) return bytes + " B"
+ else if (bytes < 1048576) return (bytes / 1024).toFixed(1) + " KB"
+ else return (bytes / 1048576).toFixed(1) + " MB"
+ }
+
+ const isPreviewable = (mimeType: string) => {
+ return (
+ mimeType.startsWith("image/") ||
+ mimeType === "application/pdf" ||
+ mimeType.startsWith("text/") ||
+ mimeType.startsWith("video/")
+ )
+ }
+
+ const previewFile = (url: string, type: string) => {
+ setPreviewUrl(url)
+ setPreviewType(type)
+ }
+
+ const downloadFile = async (url: string, fileName: string) => {
+ try {
+ const a = document.createElement("a")
+ a.href = url
+ a.download = fileName
+ document.body.appendChild(a)
+ a.click()
+ document.body.removeChild(a)
+ } catch (error) {
+ console.error("Error downloading file:", error)
+ }
+ }
+
+ if (isLoading) return (
+ <>
+ {Array.from({ length: 3 }).map((_, index) => (
+ <TableRow key={index}>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ <TableCell>
+ <Skeleton className="h-4 w-full bg-foreground/5 rounded-md" />
+ </TableCell>
+ </TableRow>))}
+ </>)
+ return (
+ <>
+ {filteredDocuments.map((doc) => (
+ <TableRow key={doc.id}>
+ <TableCell>
+ <button
+ onClick={() => isPreviewable(doc.type) && previewFile(doc.url, doc.type)}
+ className="flex items-center gap-2 hover:underline"
+ >
+ <FileIcon className="h-5 w-5 text-primary" />
+ <span>{doc.name}</span>
+ </button>
+ </TableCell>
+ <TableCell className="text-muted-foreground">
+ {doc.type.split("/")[1]?.toUpperCase() || doc.type}
+ </TableCell>
+ <TableCell className="text-muted-foreground">{`${doc.owner.first_name} ${doc.owner.last_name}`}</TableCell>
+ <TableCell className="hidden md:table-cell text-muted-foreground">
+ {formatFileSize(doc.size)}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {formatDistanceToNow(new Date(doc.last_updated_at), { addSuffix: true })}
+ </TableCell>
+ <TableCell className="hidden sm:table-cell text-muted-foreground">
+ {format(new Date(doc.created_at), "dd/MM/yyyy")}
+ </TableCell>
+ <TableCell>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" size="icon" className="h-8 w-8">
+ <MoreHorizontal className="h-4 w-4" />
+ <span className="sr-only">Actions</span>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ {isPreviewable(doc.type) && (
+ <DropdownMenuItem onClick={() => previewFile(doc.url, doc.type)}>Preview</DropdownMenuItem>
+ )}
+ <DropdownMenuItem onClick={() => downloadFile(doc.url, doc.name)}>Download</DropdownMenuItem>
+ <DropdownMenuItem className="text-destructive" disabled>
+ Delete
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </TableCell>
+ </TableRow>
+ ))}
+ <Dialog open={!!previewUrl} onOpenChange={(open) => !open && setPreviewUrl(null)}>
+ <DialogContent className="max-w-8xl w-[90vw]">
+ <DialogHeader>
+ <DialogTitle>File Preview</DialogTitle>
+ <DialogDescription>Preview of your document</DialogDescription>
+ </DialogHeader>
+ <div className="mt-4 max-h-[70vh] overflow-auto">
+ {previewUrl && previewType?.startsWith("image/") && (
+ <img
+ src={previewUrl || "/placeholder.svg"}
+ alt="Preview"
+ className="max-w-full h-auto mx-auto rounded-md"
+ />
+ )}
+ {previewUrl && previewType === "application/pdf" && (
+ <iframe src={`${previewUrl}#view=FitH`} className="w-full h-[60vh] rounded-md border" />
+ )}
+ {previewUrl && previewType?.startsWith("text/") && (
+ <iframe src={previewUrl} className="w-full h-[60vh] rounded-md border" />
+ )}
+ {previewUrl && previewType?.startsWith("video/") && (
+ <video src={previewUrl} controls className="max-w-full h-auto mx-auto rounded-md" />
+ )}
+ </div>
+ </DialogContent>
+ </Dialog>
+ </>
+ )
+}
+
diff --git a/flowsint-web/src/components/projects/file-upload.tsx b/flowsint-web/src/components/projects/file-upload.tsx
new file mode 100644
index 00000000..98df6d03
--- /dev/null
+++ b/flowsint-web/src/components/projects/file-upload.tsx
@@ -0,0 +1,211 @@
+"use client"
+
+import type React from "react"
+
+import { useState, useRef } from "react"
+import { supabase } from "@/lib/supabase/client"
+import { Upload, X, FileText, CheckCircle, AlertCircle } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+import { Button } from "@/components/ui/button"
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/components/ui/dialog"
+import { Progress } from "@/components/ui/progress"
+import { useProjectStore } from "@/store/project-store"
+import { toast } from "sonner"
+import { useParams } from "next/navigation"
+
+type FileStatus = "idle" | "uploading" | "success" | "error"
+
+interface FileWithStatus {
+ file: File
+ status: FileStatus
+ progress: number
+ error?: string
+}
+
+export default function FileUploadDialog() {
+ const { project_id } = useParams()
+ const { openUploadModal: open, setOpenUploadModal: setOpen } = useProjectStore()
+ const [files, setFiles] = useState<FileWithStatus[]>([])
+ const [isDragging, setIsDragging] = useState(false)
+ const fileInputRef = useRef<HTMLInputElement>(null)
+
+ const handleDragOver = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ e.stopPropagation()
+ setIsDragging(true)
+ }
+
+ const handleDragLeave = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ e.stopPropagation()
+ setIsDragging(false)
+ }
+
+ const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {
+ e.preventDefault()
+ e.stopPropagation()
+ setIsDragging(false)
+
+ if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
+ const newFiles = Array.from(e.dataTransfer.files).map((file) => ({
+ file,
+ status: "idle" as FileStatus,
+ progress: 0,
+ }))
+ setFiles((prev) => [...prev, ...newFiles])
+ }
+ }
+
+ const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ if (e.target.files && e.target.files.length > 0) {
+ const newFiles = Array.from(e.target.files).map((file) => ({
+ file,
+ status: "idle" as FileStatus,
+ progress: 0,
+ }))
+ setFiles((prev) => [...prev, ...newFiles])
+ }
+ }
+
+ const removeFile = (index: number) => {
+ setFiles((prev) => prev.filter((_, i) => i !== index))
+ }
+
+ const uploadFiles = async () => {
+ for (let i = 0; i < files.length; i++) {
+ if (files[i].status !== "idle") continue
+
+ // Update status to uploading
+ setFiles((prev) => prev.map((file, idx) => (idx === i ? { ...file, status: "uploading" } : file)))
+ try {
+ const file = files[i].file
+ const filePath = `${project_id}/${file.name}`
+ // Upload file to Supabase
+ const { error } = await supabase.storage.from("documents").upload(filePath, file)
+ // Simulate progress tracking (if needed)
+ setFiles((prev) => prev.map((file, idx) => (idx === i ? { ...file, progress: 100 } : file)))
+ if (error) throw toast.error("Error uploading file: " + error.message)
+ // Update status to success
+ setFiles((prev) => prev.map((file, idx) => (idx === i ? { ...file, status: "success", progress: 100 } : file)))
+ } catch (error) {
+ toast.error("Error uploading file: " + JSON.stringify(error))
+ setFiles((prev) =>
+ prev.map((file, idx) =>
+ idx === i
+ ? {
+ ...file,
+ status: "error",
+ error: error instanceof Error ? error.message : "Unknown error",
+ }
+ : file,
+ ),
+ )
+ }
+ }
+ }
+
+ const handleButtonClick = () => {
+ fileInputRef.current?.click()
+ }
+
+ const allFilesProcessed =
+ files.length > 0 && files.every((file) => file.status === "success" || file.status === "error")
+ const resetDialog = () => {
+ setFiles([])
+ }
+ const closeDialog = () => {
+ setOpen(false)
+ setTimeout(resetDialog, 300) // Reset after dialog close animation
+ }
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogContent className="sm:max-w-[900px] overflow-y-auto max-h-[80vh]">
+ <DialogHeader>
+ <DialogTitle>Upload Files</DialogTitle>
+ <DialogDescription>Drag and drop files to upload to the documents bucket.</DialogDescription>
+ </DialogHeader>
+ <div
+ className={cn(
+ "mt-4 border-2 border-dashed rounded-lg p-6 transition-colors",
+ isDragging ? "border-primary bg-primary/5" : "border-muted-foreground/25",
+ files.length > 0 ? "h-auto" : "h-40",
+ )}
+ onDragOver={handleDragOver}
+ onDragLeave={handleDragLeave}
+ onDrop={handleDrop}
+ >
+ {files.length === 0 ? (
+ <div className="h-full flex flex-col items-center justify-center gap-2 text-center">
+ <Upload className="h-10 w-10 text-muted-foreground" />
+ <p className="text-sm text-muted-foreground">Drag and drop files here or click to browse</p>
+ <Button variant="secondary" size="sm" className="mt-2" onClick={handleButtonClick}>
+ Select Files
+ </Button>
+ <input type="file" ref={fileInputRef} className="hidden" onChange={handleFileChange} multiple />
+ </div>
+ ) : (
+ <div className="space-y-4">
+ {files.map((fileItem, index) => (
+ <div key={index} className="flex items-start gap-3 bg-muted/50 p-3 rounded-md">
+ <FileText className="h-5 w-5 flex-shrink-0 text-muted-foreground" />
+ <div className="flex-1 min-w-0">
+ <p className="text-sm font-medium truncate">{fileItem.file.name}</p>
+ <p className="text-xs text-muted-foreground">{(fileItem.file.size / 1024).toFixed(1)} KB</p>
+
+ {fileItem.status === "uploading" && <Progress value={fileItem.progress} className="h-1 mt-2" />}
+
+ {fileItem.status === "error" && <p className="text-xs text-destructive mt-1">{fileItem.error}</p>}
+ </div>
+
+ <div className="flex-shrink-0">
+ {fileItem.status === "idle" && (
+ <Button variant="ghost" size="icon" className="h-6 w-6" onClick={() => removeFile(index)}>
+ <X className="h-4 w-4" />
+ <span className="sr-only">Remove file</span>
+ </Button>
+ )}
+
+ {fileItem.status === "success" && <CheckCircle className="h-5 w-5 text-green-500" />}
+
+ {fileItem.status === "error" && <AlertCircle className="h-5 w-5 text-destructive" />}
+ </div>
+ </div>
+ ))}
+
+ {!allFilesProcessed && (
+ <Button variant="secondary" size="sm" className="mt-2" onClick={handleButtonClick}>
+ Add More Files
+ </Button>
+ )}
+ </div>
+ )}
+ </div>
+
+ <DialogFooter className="mt-4">
+ {allFilesProcessed ? (
+ <Button onClick={closeDialog}>Done</Button>
+ ) : (
+ <>
+ <Button variant="outline" onClick={closeDialog}>
+ Cancel
+ </Button>
+ <Button onClick={uploadFiles} disabled={files.length === 0 || files.every((f) => f.status !== "idle")}>
+ Upload
+ </Button>
+ </>
+ )}
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+ )
+}
+
diff --git a/flowsint-web/src/components/team-switcher.tsx b/flowsint-web/src/components/team-switcher.tsx
index 4ca40ca0..c71490e9 100644
--- a/flowsint-web/src/components/team-switcher.tsx
+++ b/flowsint-web/src/components/team-switcher.tsx
@@ -24,14 +24,8 @@ import Link from "next/link"
export function TeamSwitcher() {
return (
- <Link href="/dashboard">
- <div
- className="data-[state=open]:text-sidebar-accent-foreground"
- >
- <div className="bg-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
- <Logo />
- </div>
- </div>
+ <Link className="w-full rounded-full overflow-hidden" href="/dashboard">
+ <Logo />
</Link>
)
}
diff --git a/flowsint-web/src/lib/actions/investigations.ts b/flowsint-web/src/lib/actions/investigations.ts
index 24bcb99f..dde18981 100644
--- a/flowsint-web/src/lib/actions/investigations.ts
+++ b/flowsint-web/src/lib/actions/investigations.ts
@@ -3,7 +3,7 @@ import { createClient } from "../supabase/server"
import { redirect } from "next/navigation"
import { revalidatePath } from "next/cache"
-export async function createNewCase(formData: FormData) {
+export async function createNewCase(formData: FormData, project_id: string) {
const supabase = await createClient()
const { data: session, error: userError } = await supabase.auth.getUser()
if (userError || !session?.user) {
@@ -14,7 +14,7 @@ export async function createNewCase(formData: FormData) {
description: formData.get("description"),
}
try {
- const { data: investigation, error } = await supabase.from("investigations").insert({ ...data, owner_id: session?.user?.id }).select("id").single()
+ const { data: investigation, error } = await supabase.from("investigations").insert({ ...data, owner_id: session?.user?.id, project_id }).select("id").single()
if (error) throw error
revalidatePath("/")
return { success: true, id: investigation.id }
diff --git a/flowsint-web/src/store/project-store.ts b/flowsint-web/src/store/project-store.ts
new file mode 100644
index 00000000..40e2b4ce
--- /dev/null
+++ b/flowsint-web/src/store/project-store.ts
@@ -0,0 +1,11 @@
+import { create } from "zustand";
+
+interface ProjectState {
+ openUploadModal: boolean;
+ setOpenUploadModal: (isOpen: boolean) => void;
+}
+
+export const useProjectStore = create<ProjectState>((set) => ({
+ openUploadModal: false,
+ setOpenUploadModal: (isOpen) => set({ openUploadModal: isOpen }),
+}));
diff --git a/flowsint-web/src/types/investigation.ts b/flowsint-web/src/types/investigation.ts
index 22d479ca..f87759f0 100644
--- a/flowsint-web/src/types/investigation.ts
+++ b/flowsint-web/src/types/investigation.ts
@@ -2,6 +2,13 @@ export interface Investigation {
id: string
title: string
description: string
+ status?: string
+ priority?: string
+ created_at: string
+ last_updated_at: string
+ owner: any
+ relations?: any[]
+ individuals?: any[]
}
export interface Individual {
id: string
diff --git a/flowsint-web/src/types/project.ts b/flowsint-web/src/types/project.ts
new file mode 100644
index 00000000..60d7f488
--- /dev/null
+++ b/flowsint-web/src/types/project.ts
@@ -0,0 +1,11 @@
+import { Investigation } from "./investigation"
+
+export interface Project {
+ id: string
+ name: string
+ description: string
+ investigations: Investigation[]
+ created_at: string
+ last_updated_at: string
+ owner: any
+}
\ No newline at end of file