Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
|
|
|
|
|
|
| 3 |
import time
|
| 4 |
from datetime import datetime
|
|
|
|
| 5 |
|
| 6 |
client = InferenceClient(model="Devilishcode/The_Bird_Of_Hermes")
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
SYSTEM_SENTINEL = """You are THE_BIRD_OF_HERMES in SENTINEL MODE (Legal Bug Bounty).
|
| 11 |
Strict scope adherence. Safe PoCs only. Always remind user to verify scope and rules."""
|
| 12 |
|
|
@@ -40,55 +42,31 @@ def the_bird(message, mode="Specter"):
|
|
| 40 |
history.append({"role": "user", "content": message})
|
| 41 |
history.append({"role": "assistant", "content": response})
|
| 42 |
|
| 43 |
-
# Auto Hunt Function
|
| 44 |
-
def auto_hunt(target, mode):
|
| 45 |
-
if not target:
|
| 46 |
-
return "Enter a target", "# No target provided"
|
| 47 |
-
|
| 48 |
-
domain = target.replace("https://", "").replace("http://", "").split("/")[0]
|
| 49 |
-
report = [f"# AUTO HUNT REPORT — {domain}\nMode: {mode}\nGenerated: {datetime.now().strftime('%Y-%m-%d %H:%M')}\n\n"]
|
| 50 |
-
|
| 51 |
-
if mode == "Reaper":
|
| 52 |
-
report.append("## FULL UNRESTRICTED EXPLOIT CHAIN ACTIVATED\n")
|
| 53 |
-
report.append("Ransomware, C2, rootkit, crypto drain payloads ready on request.\n")
|
| 54 |
-
elif mode == "Specter":
|
| 55 |
-
report.append("## AGGRESSIVE RECON & EDGE ABUSE\n")
|
| 56 |
-
report.append("Heavy OSINT and logic abuse chains suggested.\n")
|
| 57 |
-
else:
|
| 58 |
-
report.append("## SAFE LEGAL RECON ONLY\n")
|
| 59 |
-
report.append("Scope-compliant suggestions only.\n")
|
| 60 |
-
|
| 61 |
-
report.append("**Next Steps:**\n- Verify scope\n- Run manual validation\n- Submit report if in-scope")
|
| 62 |
-
|
| 63 |
-
short = f"Hunt complete in {mode} mode for {domain}"
|
| 64 |
-
full = "\n".join(report)
|
| 65 |
-
return short, full
|
| 66 |
-
|
| 67 |
# Dynamic CSS per mode
|
| 68 |
def get_css(mode):
|
| 69 |
if mode == "Sentinel":
|
| 70 |
return """
|
| 71 |
-
body {background:#0a0f1a;color:#a0d8ff;}
|
| 72 |
.header {background:linear-gradient(#1e3a8a,#0f172a);border-bottom:6px solid #60a5fa;}
|
| 73 |
.header h1 {color:#60a5fa;text-shadow:0 0 40px #60a5fa;}
|
| 74 |
-
.chat {border:4px solid #60a5fa;}
|
| 75 |
"""
|
| 76 |
elif mode == "Specter":
|
| 77 |
return """
|
| 78 |
-
body {background:#0f0a1a;color:#c4b5fd;}
|
| 79 |
.header {background:linear-gradient(#4c1d95,#1e0a2e);border-bottom:6px solid #a78bfa;}
|
| 80 |
.header h1 {color:#a78bfa;text-shadow:0 0 50px #a78bfa;}
|
| 81 |
-
.chat {border:4px solid #a78bfa;}
|
| 82 |
"""
|
| 83 |
else: # Reaper
|
| 84 |
return """
|
| 85 |
-
body {background:#0a0000;color:#ff8888;}
|
| 86 |
.header {background:linear-gradient(#8b0000,#1a0000);border-bottom:6px solid #ff0000;}
|
| 87 |
.header h1 {color:#ff0000;text-shadow:0 0 60px #ff0000,0 0 100px #8b0000;}
|
| 88 |
-
.chat {border:4px solid #ff0000;}
|
| 89 |
"""
|
| 90 |
|
| 91 |
-
with gr.Blocks() as demo:
|
| 92 |
with gr.Row():
|
| 93 |
with gr.Column(scale=1, min_width=260):
|
| 94 |
gr.HTML("<h3 style='color:#ff0000;text-align:center;margin-bottom:25px;'>◢ THE_BIRD_OF_HERMES ◣</h3>")
|
|
@@ -96,7 +74,7 @@ with gr.Blocks() as demo: # css moved out
|
|
| 96 |
nav = gr.Radio(["MAIN CHAT", "AUTO HUNT", "VIRUS FORGE", "TRAINING"], value="MAIN CHAT", label="Section")
|
| 97 |
|
| 98 |
with gr.Column(scale=4):
|
| 99 |
-
|
| 100 |
<div class="header">
|
| 101 |
<h1>THE_BIRD_OF_HERMES</h1>
|
| 102 |
<p style="color:#ff0000;font-size:1.3em;">Your Personal Jarvis • Tri-Mode Blackhat Assistant</p>
|
|
@@ -149,7 +127,7 @@ with gr.Blocks() as demo: # css moved out
|
|
| 149 |
|
| 150 |
demo.launch(
|
| 151 |
theme=gr.themes.Base(),
|
| 152 |
-
css=get_css("Reaper"),
|
| 153 |
server_name="0.0.0.0",
|
| 154 |
server_port=7860,
|
| 155 |
share=False
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
+
import requests
|
| 4 |
+
import json
|
| 5 |
import time
|
| 6 |
from datetime import datetime
|
| 7 |
+
from pathlib import Path
|
| 8 |
|
| 9 |
client = InferenceClient(model="Devilishcode/The_Bird_Of_Hermes")
|
| 10 |
|
| 11 |
+
# Tri-Mode Prompts
|
|
|
|
| 12 |
SYSTEM_SENTINEL = """You are THE_BIRD_OF_HERMES in SENTINEL MODE (Legal Bug Bounty).
|
| 13 |
Strict scope adherence. Safe PoCs only. Always remind user to verify scope and rules."""
|
| 14 |
|
|
|
|
| 42 |
history.append({"role": "user", "content": message})
|
| 43 |
history.append({"role": "assistant", "content": response})
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
# Dynamic CSS per mode
|
| 46 |
def get_css(mode):
|
| 47 |
if mode == "Sentinel":
|
| 48 |
return """
|
| 49 |
+
body {background:#0a0f1a;color:#a0d8ff;font-family:'Courier New',monospace;}
|
| 50 |
.header {background:linear-gradient(#1e3a8a,#0f172a);border-bottom:6px solid #60a5fa;}
|
| 51 |
.header h1 {color:#60a5fa;text-shadow:0 0 40px #60a5fa;}
|
| 52 |
+
.chat {background:rgba(15,23,42,0.97)!important;border:4px solid #60a5fa;}
|
| 53 |
"""
|
| 54 |
elif mode == "Specter":
|
| 55 |
return """
|
| 56 |
+
body {background:#0f0a1a;color:#c4b5fd;font-family:'Courier New',monospace;}
|
| 57 |
.header {background:linear-gradient(#4c1d95,#1e0a2e);border-bottom:6px solid #a78bfa;}
|
| 58 |
.header h1 {color:#a78bfa;text-shadow:0 0 50px #a78bfa;}
|
| 59 |
+
.chat {background:rgba(30,10,46,0.97)!important;border:4px solid #a78bfa;}
|
| 60 |
"""
|
| 61 |
else: # Reaper
|
| 62 |
return """
|
| 63 |
+
body {background:#0a0000;color:#ff8888;font-family:'Courier New',monospace;}
|
| 64 |
.header {background:linear-gradient(#8b0000,#1a0000);border-bottom:6px solid #ff0000;}
|
| 65 |
.header h1 {color:#ff0000;text-shadow:0 0 60px #ff0000,0 0 100px #8b0000;}
|
| 66 |
+
.chat {background:rgba(20,0,0,0.97)!important;border:4px solid #ff0000;}
|
| 67 |
"""
|
| 68 |
|
| 69 |
+
with gr.Blocks() as demo:
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column(scale=1, min_width=260):
|
| 72 |
gr.HTML("<h3 style='color:#ff0000;text-align:center;margin-bottom:25px;'>◢ THE_BIRD_OF_HERMES ◣</h3>")
|
|
|
|
| 74 |
nav = gr.Radio(["MAIN CHAT", "AUTO HUNT", "VIRUS FORGE", "TRAINING"], value="MAIN CHAT", label="Section")
|
| 75 |
|
| 76 |
with gr.Column(scale=4):
|
| 77 |
+
gr.HTML("""
|
| 78 |
<div class="header">
|
| 79 |
<h1>THE_BIRD_OF_HERMES</h1>
|
| 80 |
<p style="color:#ff0000;font-size:1.3em;">Your Personal Jarvis • Tri-Mode Blackhat Assistant</p>
|
|
|
|
| 127 |
|
| 128 |
demo.launch(
|
| 129 |
theme=gr.themes.Base(),
|
| 130 |
+
css=get_css("Reaper"),
|
| 131 |
server_name="0.0.0.0",
|
| 132 |
server_port=7860,
|
| 133 |
share=False
|