Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-boney committed Nov 20, 2024
1 parent 4c93388 commit 9508793
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 83 deletions.
27 changes: 0 additions & 27 deletions app/api/search/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ body {
}

.search-container input {
width: 100%;
width: 40%;
padding: 12px;
border-radius: 8px;
border: 1px solid #ccc;
Expand Down
15 changes: 7 additions & 8 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// app/layout.tsx
import React from 'react';
import './globals.css'; // Import global styles (Tailwind, custom CSS)
import Link from 'next/link';
Expand All @@ -18,27 +17,27 @@ export default function Layout({
rel="stylesheet"
/>
</head>
<body className="font-sans bg-gray-100">
<body className="font-sans bg-gray-100 text-gray-900 flex flex-col min-h-screen">
<header className="bg-blue-600 text-white p-4 shadow-md">
<div className="container mx-auto flex justify-between items-center">
<h1 className="text-xl font-semibold">Google Dorks for Bug Bounty</h1>
<nav>
<ul className="flex space-x-4">
<li><Link href="/" className="hover:underline">Home</Link></li>
<li><Link href="/about" className="hover:underline">About</Link></li>
<ul className="flex space-x-6">
<li><Link href="/" className="hover:text-gray-200 transition-colors">Home</Link></li>
<li><Link href="/about" className="hover:text-gray-200 transition-colors">About</Link></li>
</ul>
</nav>
</div>
</header>

<main className="container mx-auto p-6">
<main className="flex-1 container mx-auto p-6">
{/* This is where the content of each individual page will be rendered */}
{children}
</main>

<footer className="bg-gray-800 text-white p-4">
<footer className="bg-gray-800 text-white py-6 mt-12">
<div className="container mx-auto text-center">
<p>&copy; 2024 Aswin krishna | <Link href="/privacy-policy" className="hover:underline">Privacy Policy</Link></p>
<p>&copy; 2024 <Link target='blank' href="https://www.linkedin.com/in/aswin-krishna-344064202/" className="hover:text-gray-400 transition-colors">Aswin Krishna</Link> | <Link href="/privacy-policy" className="hover:text-gray-400 transition-colors">Privacy Policy</Link></p>
</div>
</footer>
</body>
Expand Down
172 changes: 144 additions & 28 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// app/page.tsx
"use client"; // Mark this file as a client component since it uses React hooks

import { useState } from 'react';
Expand All @@ -19,26 +18,142 @@ const Home = () => {
'inurl:/backup/',
'inurl:/uploads/',
'inurl:/images/',
'intitle:"index of" inurl:ftp',
'intitle:"index of" inurl:files',
'intitle:"index of" "passwords"',
'intitle:"index of" "usernames"',
'intitle:"index of" inurl:docs',
'intitle:"index of" "logs"',
'intitle:"index of" "database"',
],
passwordLeaks: [
'filetype:log inurl:"password"',
'filetype:txt intext:"username: password:"',
'intitle:"index of" "passwd"',
'intitle:"index of" "shadow"',
sensitiveFiles: [
'intitle:"index of" ".env"',
'intitle:"index of" "config.php"',
'intitle:"index of" "dbdump"',
'intitle:"index of" "secrets"',
'intitle:"index of" "private"',
'intitle:"index of" "key.pem"',
'intitle:"index of" "id_rsa"',
'intitle:"index of" "access.log"',
'intitle:"index of" "error.log"',
'inurl:"/wp-config.php"',
'inurl:"/admin/config.php"',
'inurl:"/server-status"',
'inurl:"/cacti/graph.php"',
],
adminPages: [
'inurl:"/admin/login"',
'inurl:"/wp-login.php"',
'inurl:"/admin" intitle:"login"',
'inurl:"/admin/" intext:"admin"',
exposedDatabases: [
'intitle:"phpmyadmin" inurl:"index.php"',
'inurl:".sql" filetype:sql',
'inurl:"db_backup" filetype:sql',
'inurl:"backup" filetype:sql',
'intitle:"index of" "database" "dump"',
'intitle:"index of" "database" "sql"',
'inurl:"db" inurl:"backup"',
'intitle:"index of" "admin" "database"',
'intitle:"index of" "mongodb"',
'intitle:"index of" "mysql"',
],
loginPages: [
'inurl:/login',
'intitle:"login" inurl:/admin/',
'intitle:"login" inurl:/signin/',
'intitle:"login" inurl:/user/',
'inurl:/admin/login',
'inurl:/wp-login.php',
'inurl:/auth/login',
'intitle:"login" inurl:/account',
],
misconfigurations: [
'intitle:"Error 404" inurl:/phpinfo',
'inurl:/robots.txt',
'inurl:/sitemap.xml',
'inurl:"/.git/"',
'inurl:"/.git/config"',
'inurl:"/.git/HEAD"',
'inurl:"/.git/refs" "heads"',
'inurl:"/uploads" "error"',
'inurl:"/phpmyadmin/"',
'inurl:"/admin/" "index of"',
],
vulnerableEndpoints: [
'intitle:"index of" inurl:"/admin/ajax"',
'inurl:"/admin/config" inurl:"password"',
'inurl:"/admin/console" inurl:"login"',
'inurl:"/admin" "portal" "login"',
'intitle:"admin panel" "dashboard"',
'inurl:/api/ inurl:"login"',
'inurl:/wp-admin/admin-ajax.php',
],
sensitiveInfo: [
'inurl:"/credentials/" intext:"password"',
'inurl:"/files/" intext:"secret"',
'intitle:"Index of" "API_KEY"',
'inurl:"/uploads/" intext:"secret"',
'inurl:"/private/" intext:"password"',
'inurl:"/sensitive/" intext:"confidential"',
'intitle:"index of" "sensitive_data"',
'inurl:"/data/" intext:"credentials"',
'intitle:"index of" "admin_pass"',
'inurl:"/config/" intext:"secret"',
],
cloudMisconfigurations: [
'inurl:"s3.amazonaws.com" intitle:"index of"',
'inurl:"s3://" "private"',
'inurl:"/azure/" "blob"',
'inurl:"/public/" "cloud"',
'inurl:"/public/" "data"',
'inurl:"/gcs/" "storage"',
'inurl:"cloudfront.net" "file"',
'intitle:"index of" inurl:"bucket"',
'intitle:"index of" "AWS"',
'inurl:"/azureblob/" intext:"private"',
],
openSourceCode: [
'inurl:"/git/"',
'intitle:"index of" "GitHub"',
'inurl:"/repository" "public"',
'inurl:"/git/repository"',
'intitle:"index of" "git config"',
'intitle:"index of" ".git"',
'inurl:"/src" intext:"password"',
'inurl:"/docs" intext:"API Key"',
'intitle:"index of" "source code"',
'intitle:"index of" "gitlab"',
],
adminInterfaces: [
'intitle:"admin" "panel"',
'inurl:"/admin" inurl:"login"',
'inurl:"/admin" "dashboard"',
'inurl:"/admin" "index of"',
'intitle:"admin panel" "login"',
'intitle:"administrator" inurl:"login"',
'intitle:"login" "admin panel"',
'intitle:"admin console" inurl:"login"',
],
vulnerableFiles: [
'inurl:"/backup/" filetype:sql',
'inurl:"/backups/" filetype:sql',
'inurl:"/backups/" filetype:zip',
'intitle:"index of" "backup.zip"',
'intitle:"index of" "backup.tar"',
'inurl:"/database/backup" filetype:sql',
'inurl:"/backups/db/" filetype:sql',
'intitle:"index of" "config_backup"',
],
exposedAPIs: [
'inurl:"/api/v1" "password"',
'inurl:"/api/v1" "private"',
'inurl:"/api" "auth"',
'inurl:"/api/keys/"',
'inurl:"/api/" "auth_token"',
'inurl:"/api" "password" filetype:json',
'inurl:"/api" intext:"api_key"',
'intitle:"index of" inurl:"/api" "vulnerable"',
'inurl:"/api/" "client_secret"',
],
emailLeaks: [
'filetype:csv intext:"email"',
'filetype:csv "email address"',
'intext:"email" site:linkedin.com',
'intitle:"index of" "emails"',
]
};



// Handle category change
const handleCategoryChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
Expand All @@ -50,29 +165,30 @@ const Home = () => {
};

return (
<div className="container mx-auto p-6">
<h1 className="text-4xl font-bold mb-6">Google Dorks for Bug Bounty</h1>
<div className="container mx-auto p-6 space-y-8">
<h1 className="text-4xl font-bold mb-6 text-center">Google Dorks for Bug Bounty</h1>

{/* Category Dropdown */}
<div className="mb-4">
<label htmlFor="category" className="text-lg">Select a Dork Category:</label>
<div className="mb-6 max-w-md mx-auto">
<label htmlFor="category" className="text-lg font-medium text-gray-800 block mb-2">Select a Dork Category:</label>
<select
id="category"
className="w-full p-2 mt-2 border rounded-md"
className="w-full p-3 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
value={selectedCategory}
onChange={handleCategoryChange}
>
<option value="directoryLeaks">Directory Leaks</option>
<option value="passwordLeaks">Password Leaks</option>
<option value="adminPages">Admin Page Leaks</option>
<option value="emailLeaks">Email Leaks</option>
{Object.keys(dorksByCategory).map((category) => (
<option key={category} value={category}>
{category.replace(/([A-Z])/g, ' $1').replace(/^./, (str) => str.toUpperCase())}
</option>
))}
</select>
</div>

{/* Domain Search Bar */}
<SearchBar onDomainChange={handleDomainChange} />
<Tooltip />

{/* Display the selected category's dorks */}
{/* Dork List with Tooltip */}
<DorkList dorks={dorksByCategory[selectedCategory]} domain={domain} />
</div>
);
Expand Down
13 changes: 13 additions & 0 deletions app/search/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react'

const Search
= () => {
return (
<div>
Bro this page is under construction come back later

</div>
)
}

export default Search
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9508793

Please sign in to comment.