mirror of
https://github.com/entropy-z/Kharon
synced 2026-06-06 15:34:34 +00:00
df9f51c449
PR #40 added pe_section, custom_section_name, encryption_technique, and injection_technique fields to AgentConfig with a server-side check that custom_section_name be 1-8 bytes. The KharonHTTP container puts them through the PE Settings tab, but the KharonSMB UI early-return path didn't put them in container_smb. SMB Exe/Dll/Svc builds therefore sent an empty CustomSectionName and AgentGenerateBuild rejected with 'section name must be 1-8 bytes, got 0'. Add the four container_smb.put calls. The widgets (section_combo, encryption_combo, injection_combo, textCustomSection) are created unconditionally at the top of GenerateUI and have safe defaults (.text, None, Module Stomp, .kharon), so SMB beacons compile cleanly without exposing PE Settings widgets in the SMB form.