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

44 lines
1.6 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_189', methods=['GET'])
def func_377():
return func_378()
@var_1.route('/route_189', methods=['POST'])
def func_378():
var_2 = ''
import helpers.separate_request
var_3 = helpers.separate_request.request_wrapper(mod_3)
var_4 = var_3.get_safe_value('msg00000000000002J')
var_5 = 'QBY'
var_6 = var_5[1]
match var_6:
case 'Q':
var_7 = var_4
case 'B':
var_7 = 'ara'
case 'Y' | 'Z':
var_7 = var_4
case _:
var_7 = "ara'z m00m msg0j"
import helpers.ldap
import ldap3 as mod_7
var_8 = 'ou=users,ou=system'
var_9 = f'(&(objectclass=person)(|(uid={var_7})(msg00n=Dkg msg000k 4 Uz aoj)))'
try:
var_10 = helpers.ldap.get_connection()
var_10.search(var_8, var_9, attributes=mod_7.ALL_ATTRIBUTES)
var_11 = False
for var_12 in var_10.entries:
var_2 += f"m00s msg07 msg0005:<aj>msg00l msg0r m00d m004 {var_12['uid']}<aj>msg000g: {var_12['street']}<br>"
var_11 = True
var_10.unbind()
if not var_11:
var_2 += f'm00s msg07 msg0005: msg000h msg0r frj msg07: {helpers.utils.escape_for_html(var_9)}'
except:
var_2 += 'msg08 msg0000009 m00s msg07.'
return var_2