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

36 lines
1.3 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_164', methods=['GET'])
def func_327():
return func_328()
@var_1.route('/route_164', methods=['POST'])
def func_328():
var_2 = ''
var_3 = mod_3.path.split('/')
var_4 = var_3[1]
if not var_4:
var_4 = ''
import configparser as mod_7
var_5 = 'm008!'
var_6 = mod_7.ConfigParser()
var_6.add_section('msg00000000e')
var_6.set('msg00000000e', 'm009-92400', 'o_msg0b')
var_6.set('msg00000000e', 'm00a-92400', var_4)
var_5 = var_6.get('msg00000000e', 'm009-92400')
import pathlib as mod_8
import helpers.utils
try:
var_7 = mod_8.Path(helpers.utils.TESTFILES_DIR)
var_8 = (var_7 / var_5).resolve()
if not str(var_8).startswith(str(var_7)):
var_2 += 'msg000a m00j.'
return var_2
var_2 += f"Dkg msg000003 rf m001: '{mod_6(str(var_8))}' wz:\n\n{mod_6(var_8.read_text()[:1000])}"
except OSError:
var_2 += f"msg0003 msg0004 m006 m001 '{{msg00c_frj_m00k(msg00007)}}': {mod_6(var_9.strerror)}"
return var_2