Files
Joren e12e932767 Add obfuscator v2 with semantic-preserving obfuscated dataset
- Rename functions, variables, parameters and imports with scope-aware AST passes
- Generalise Flask route and template paths to unique /route_N and tpl_N names
- Replace descriptive strings with length-preserving, word-consistent msg tokens
- Strip docstrings and comments
- Add verification for parse validity and leaked benchmark identifiers
- Include SAST prompt and expected labels
2026-11-10 02:48:03 +01:00

38 lines
1.2 KiB
Python

from flask import redirect as mod_1, url_for as mod_2, request as mod_3, make_response as mod_4, render_template as mod_5
from helpers.utils import escape_for_html as mod_6
def init(var_1):
@var_1.route('/route_122', methods=['GET'])
def func_243():
return func_244()
@var_1.route('/route_122', methods=['POST'])
def func_244():
var_2 = ''
var_3 = mod_3.args.get('msg00000000000001Q')
if not var_3:
var_3 = ''
var_4 = {}
var_4['m009-81232'] = 'o-msg0b'
var_4['m00a-81232'] = var_3
var_4['m00h'] = 'msg0009-msg0b'
var_5 = 'm008!'
var_5 = var_4['m00a-81232']
var_5 = var_4['m009-81232']
import platform as mod_7
import subprocess as mod_8
import helpers.utils
var_6 = ''
if mod_7.system() == 'Windows':
var_6 = 'xvs.gng /x '
else:
var_6 = 'zk -x '
var_6 += f'm00u {var_5}'
try:
var_7 = mod_8.run(var_6, shell=True, capture_output=True, encoding='utf-8')
var_2 += helpers.utils.commandOutput(var_7)
except IOError:
var_2 += 'msg0003 msg000006 m00v - msg000000a.jqd(m00w) m00x m00y'
return var_2