Skip to content

Commit 1063513

Browse files
authored
Update index.html
1 parent 7b64456 commit 1063513

1 file changed

Lines changed: 56 additions & 14 deletions

File tree

index.html

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,67 @@ <h1>POBFUS 0.7</h1>
9090
document.getElementById('logoDisplay').innerText = ASCII_LOGO;
9191

9292
function pobfusStart() {
93-
const input = document.getElementById('inputCode').value;
94-
if (!input) return alert("Input required!");
93+
const input = document.getElementById('inputCode').value;
94+
if (!input) return alert("Input required!");
9595

96-
// XOR VM Logic
97-
const key = Math.floor(Math.random() * 255);
98-
const bytes = input.split('').map(c => c.charCodeAt(0) ^ key);
96+
// 1. Key Generation & Bytecode Scrambling
97+
const key = Math.floor(Math.random() * 255) + 1;
98+
const bytes = input.split('').map(c => c.charCodeAt(0) ^ key);
99+
100+
// 2. Junk Logic Generator (Makes it look complex)
101+
const junk = () => {
102+
const lines = [
103+
`local _0x${Math.random().toString(36).substring(7)} = (66 * 2) / 4`,
104+
`if (not _G) then return end`,
105+
`local _0xEnv = getfenv and getfenv() or _G`,
106+
`for i=1,10 do end`
107+
];
108+
return lines[Math.floor(Math.random() * lines.length)];
109+
};
99110

100-
const vm = `--[[
111+
// 3. The "Heavy" VM Wrapper
112+
const vm = `--[[
101113
${ASCII_LOGO}
102-
[ VERSION: 0.7 BETA ]
114+
[ VERSION: 0.7 I-VIRTUobfuscator ]
103115
--]]
104-
local _d = {${bytes.join(',')}}
105-
local _k = ${key}
106-
local _s = ""
107-
for i=1, #_d do _s = _s .. string.char(_d[i] ~ _k) end
108-
local _r = loadstring or load
109-
_r(_s)()`;
116+
local _Pobfus_VM = function()
117+
local _stack = {${bytes.join(',')}}
118+
local _key = ${key}
119+
local _output = ""
120+
${junk()}
121+
122+
-- Virtualized Execution Loop
123+
local _exec = function(data, k)
124+
local res = ""
125+
for i=1, #data do
126+
${junk()}
127+
local char = data[i]
128+
res = res .. string.char(char ~ k)
129+
if i % 5 == 0 then ${junk()} end
130+
end
131+
return res
132+
end
110133
111-
document.getElementById('outputCode').value = vm;
134+
local _runtime = _exec(_stack, _key)
135+
${junk()}
136+
local _caller = loadstring or load
137+
local _fn, _err = _caller(_runtime)
138+
139+
if not _fn then
140+
warn("[POBFUS] Execution Error: " .. tostring(_err))
141+
return
142+
end
143+
144+
return _fn()
145+
end
146+
147+
-- Anti-Dump Execution
148+
${junk()}
149+
pcall(_Pobfus_VM)
150+
`;
151+
152+
document.getElementById('outputCode').value = vm;
153+
}
112154
}
113155
</script>
114156
</body>

0 commit comments

Comments
 (0)