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

39 lines
1.4 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_70', methods=['GET'])
def func_139():
return func_140()
@var_1.route('/route_70', methods=['POST'])
def func_140():
var_2 = ''
var_3 = ''
for var_4 in mod_3.form.keys():
if 'msg000000000000017' in mod_3.form.getlist(var_4):
var_3 = var_4
break
var_5 = 'm002'
var_5 += var_3
var_5 += 'msg004 rd o msg03'
var_6 = var_5[4:-17]
import helpers.ldap
import ldap3 as mod_7
var_7 = 'ou=users,ou=system'
var_8 = f'(&(objectclass=person)(uid={var_6}))'
try:
var_9 = helpers.ldap.get_connection()
var_9.search(var_7, var_8, attributes=mod_7.ALL_ATTRIBUTES)
var_10 = False
for var_11 in var_9.entries:
var_2 += f"m00s msg07 msg0005:<aj>msg00l msg0r m00d m004 {var_11['uid']}<aj>msg000g: {var_11['street']}<br>"
var_10 = True
var_9.unbind()
if not var_10:
var_2 += f'm00s msg07 msg0005: msg000h msg0r frj msg07: {helpers.utils.escape_for_html(var_8)}'
except IOError:
var_2 += 'msg08 msg0000009 m00s msg07.'
return var_2