Skip to content

Commit 3ec5de2

Browse files
authored
Refactor pobfusStart function and improve error handling
1 parent 231ea55 commit 3ec5de2

1 file changed

Lines changed: 93 additions & 54 deletions

File tree

script.js

Lines changed: 93 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,115 @@
1+
/* 🛡️ POBFUS v1.0 | CORE ENGINE
2+
DEVELOPED BY: tenringsofdoom1x
3+
STATUS: STABLE_RELEASE
4+
*/
5+
6+
// THE HEART: This logo is the Key. Touching it breaks the math.
7+
const SYNC_HEADER = `ooooooooo. .o8 .o88o.
8+
\`888 \`Y88. "888 888 \`"
9+
888 .d88' .ooooo. 888oooo. o888oo oooo oooo .oooo.o
10+
888ooo88P' d88' \`88b d88' \`88b 888 \`888 \`888 d88( "8
11+
888 888 888 888 888 888 888 888 \`"Y88b.
12+
888 888 888 888 888 888 888 888 o. )88b
13+
o888o \`Y8bod8P' \`Y8bod8P' o888o \`V88V"V8P' 8""888P'
14+
[ POBFUS 1.0 | CAMBUSCATE 0.1.1 ]`;
15+
16+
document.addEventListener('DOMContentLoaded', () => {
17+
const display = document.getElementById('logoDisplay');
18+
if (display) display.innerText = SYNC_HEADER;
19+
});
20+
21+
function _0xErr(m) {
22+
const t = document.getElementById('errorToast');
23+
t.innerText = "⚠️ " + m;
24+
t.style.display = 'block';
25+
setTimeout(() => t.style.display = 'none', 3500);
26+
}
27+
128
async function pobfusStart() {
2-
const _in = document.getElementById('inputCode').value;
29+
const _input = document.getElementById('inputCode').value;
330
const _btn = document.getElementById('protectBtn');
431

5-
if (!_in) return _0xErr("Buffer Empty.");
32+
if (!_input || _input.trim().length === 0) return _0xErr("Buffer Empty.");
633

734
_btn.disabled = true;
8-
_btn.innerText = "🏗️ Constructing Hell...";
35+
_btn.innerText = "🏗️ VIRTUALIZING...";
936

1037
await new Promise(r => setTimeout(r, 800));
1138

1239
try {
1340
const _sig = SYNC_HEADER.length % 255;
1441
const _seed = 0x6C;
15-
const _key = _seed ^ _sig;
16-
17-
// The "Brick Wall" string
18-
const _wall = _in.split('').map(c => {
19-
const h = (c.charCodeAt(0) ^ _key).toString(16).padStart(2, '0');
20-
const j = Math.random().toString(36).substring(2, 6);
21-
return h + j;
22-
}).join('').toUpperCase();
23-
24-
// New: "Nice Try" Watermark injection
25-
const watermark = "--- NICE TRY SKID | PROTECTED BY TENRINGSOFDOOM1X ---";
26-
const v_data = "_0x" + Math.random().toString(36).substring(7);
27-
const v_vm = "_0x" + Math.random().toString(36).substring(7);
28-
29-
// Randomly picked roasts
30-
const roasts = [
31-
"Nice try, stay mad.",
32-
"tenringsofdoom1x owns you.",
33-
"Grok failed, you will too.",
34-
"Is your Ctrl+C broken yet?",
35-
"Imagine thinking this is readable."
42+
const _k = _seed ^ _sig;
43+
44+
// "Brick Wall" Byte Mapping
45+
const _payload = _input.split('').map(c => {
46+
const hex = (c.charCodeAt(0) ^ _k).toString(16).toUpperCase().padStart(2, '0');
47+
return "0x" + hex + Math.random().toString(36).substring(2, 5);
48+
});
49+
50+
// Roast Selection (Hex-Encoded for "Hell" look)
51+
const _roasts = [
52+
"Nice try, tenringsofdoom1x owns you.",
53+
"Stay mad, skid.",
54+
"Decompiler crashed. Try again?",
55+
"Imagine trying to read this wall."
3656
];
37-
const r1 = roasts[Math.floor(Math.random() * roasts.length)];
57+
const _chosen = _roasts[Math.floor(Math.random() * _roasts.length)];
58+
const _trap = _chosen.split('').map(c => "0x" + (c.charCodeAt(0) ^ _k).toString(16).toUpperCase().padStart(2, '0')).join(',');
3859

39-
const _out = `--[[
60+
// Chunking the payload for the "Fat" look
61+
let _wall = "";
62+
for (let i = 0; i < _payload.length; i++) {
63+
_wall += _payload[i] + (i === _payload.length - 1 ? "" : ", ");
64+
if ((i + 1) % 8 === 0) _wall += "\n ";
65+
}
66+
67+
// OUTPUT CONSTRUCTION
68+
const _output = `--[[
4069
${SYNC_HEADER}
4170
]]
42-
-- ${watermark}
43-
local _0xNICETRY = "${watermark}"
44-
local ${v_data} = "${_wall}"
45-
46-
local ${v_vm} = function()
47-
local _s = #debug.getinfo(1).source % 255
48-
local _k = ${_seed} ~ _s
49-
-- Integrity verification of the 'Nice Try' anchor
50-
if _0xNICETRY ~= "${watermark}" or not _0xNICETRY:find("TENRINGSOFDOOM1X") then
51-
while true do end
52-
end
53-
local _r = ""
54-
for i = 1, #${v_data}, 6 do
55-
local _b = tonumber(${v_data}:sub(i, i+1), 16)
56-
if _b then _r = _r .. string.char(_b ~ _k) end
57-
end
58-
local _f = loadstring or load
59-
local _ok, _e = pcall(_f(_r))
60-
if not _ok then
61-
print("${r1}")
62-
warn("POBFUS: FATAL_TAMPER_DETECTED")
63-
while true do end
64-
end
71+
local Eb,ob,La,e_,Za,bb=type,bit32.bxor,getmetatable,pairs,nil,nil
72+
local G,lb,Yb,L,Zc,gc,Dc,K,Nc,x,Xa,ea,h,zc,Pc,Hc,O,Ka,E,F,_c,ec,ab,Bc,Ub,Ua,qb,sa,fb,Sa,nc,ca,rb,nb,jb,fa_,vc,Ya,zb,a_
73+
74+
gc,Sa,L = (string.char),(string.byte),(bit32.bxor);
75+
local _D = {
76+
${_wall}
77+
}
78+
local _T = {${_trap}}
79+
80+
local _VM = function(_o, _key)
81+
local _r, _st = "", 100
82+
repeat
83+
if _st == 100 then
84+
for _, _v in pairs(_o) do
85+
local _b = tonumber(tostring(_v):sub(1,4), 16)
86+
if _b then _r = _r .. gc(L(_b, _key)) end
87+
end
88+
_st = 0
89+
end
90+
until _st == 0
91+
return _r
6592
end
6693
67-
pcall(${v_vm})`;
94+
local _RUN = function()
95+
local _key = ${_seed} ~ (#debug.getinfo(1).source % 255)
96+
local _ok, _res = pcall(function() return (loadstring or load)(_VM(_D, _key)) end)
97+
if _ok and _res then pcall(_res) else print(_VM(_T, _key)) while true do end end
98+
end
99+
_RUN()`;
68100

69-
document.getElementById('outputCode').value = _out;
70-
_btn.innerText = "Deploy CamBuscate 0.1.1";
71-
} catch (err) {
72-
_0xErr("Engine Fault.");
101+
document.getElementById('outputCode').value = _output;
102+
} catch (e) {
103+
_0xErr("Engine Collapse.");
73104
} finally {
74105
_btn.disabled = false;
106+
_btn.innerText = "Deploy v1.0";
75107
}
76108
}
109+
110+
function copyCode() {
111+
const o = document.getElementById('outputCode');
112+
o.select();
113+
document.execCommand('copy');
114+
_0xErr("Build Copied to Clipboard!");
115+
}

0 commit comments

Comments
 (0)