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

40 lines
1.5 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_91', methods=['GET'])
def func_181():
return func_182()
@var_1.route('/route_91', methods=['POST'])
def func_182():
var_2 = ''
var_3 = mod_3.headers.get('msg00000000000001p')
if not var_3:
var_3 = ''
import configparser as mod_7
var_4 = 'm008!'
var_5 = mod_7.ConfigParser()
var_5.add_section('msg000000008')
var_5.set('msg000000008', 'm009-42361', 'o-msg0b')
var_5.set('msg000000008', 'm00a-42361', var_3)
var_4 = var_5.get('msg000000008', 'm00a-42361')
import helpers.ldap
import ldap3 as mod_8
var_6 = 'ou=users,ou=system'
var_7 = f'(&(objectclass=person)(uid={var_4}))'
try:
var_8 = helpers.ldap.get_connection()
var_8.search(var_6, var_7, attributes=mod_8.ALL_ATTRIBUTES)
var_9 = False
for var_10 in var_8.entries:
var_2 += f"m00s msg07 msg0005:<aj>msg00l msg0r m00d m004 {var_10['uid']}<aj>msg000g: {var_10['street']}<br>"
var_9 = True
var_8.unbind()
if not var_9:
var_2 += f'm00s msg07 msg0005: msg000h msg0r frj msg07: {helpers.utils.escape_for_html(var_7)}'
except IOError:
var_2 += 'msg08 msg0000009 m00s msg07.'
return var_2