MCPcopy Create free account
hub / github.com/Tylous/SourcePoint / GeneratePostProcessName

Function GeneratePostProcessName

Loader/Loader.go:221–247  ·  view source on GitHub ↗
(Post_EX_Process_Name, Keylogger string, ThreadSpoof bool)

Source from the content-addressed store, hash-verified

219}
220
221func GeneratePostProcessName(Post_EX_Process_Name, Keylogger string, ThreadSpoof bool) map[string]string {
222 Beacon_PostEX := &Beacon_PostEX{}
223 Beacon_PostEX.Variables = make(map[string]string)
224 if Post_EX_Process_Name != "" {
225 num_PSPN, _ := strconv.Atoi(Post_EX_Process_Name)
226 Beacon_PostEX.Variables["Post_EX_Process_Name"] = Struct.Post_EX_Process_Name[(num_PSPN - 1)]
227 }
228 if Post_EX_Process_Name == "" {
229 num_Post_EX_Process_Name, _ := strconv.Atoi(Utils.GenerateNumer(0, 14))
230 Beacon_PostEX.Variables["Post_EX_Process_Name"] = Struct.Post_EX_Process_Name[num_Post_EX_Process_Name]
231 }
232 if Keylogger == "GetAsyncKeyState" || Keylogger == "SetWindowsHookEx" {
233 Beacon_PostEX.Variables["Keylogger"] = Keylogger
234 } else if Keylogger == "" {
235 Beacon_PostEX.Variables["Keylogger"] = "SetWindowsHookEx"
236 } else {
237 }
238
239 if ThreadSpoof == true {
240 threadhint_num, _ := strconv.Atoi(Utils.GenerateNumer(0, 8))
241 Beacon_PostEX.Variables["thread_hint"] = "set thread_hint \"" + Struct.Thread_list[(threadhint_num)] + Utils.GenHex() + "\";"
242 } else {
243 Beacon_PostEX.Variables["thread_hint"] = ""
244 }
245
246 return Beacon_PostEX.Variables
247}
248
249func GenerateHTTPVaribles(Host, metadata, uri, customuri, customuriGET, customuriPOST, CDN, CDN_Value, Profile string, Forwarder bool) map[string]string {
250 Beacon_GETPOST := &Beacon_GETPOST{}

Callers 1

GenerateOptionsFunction · 0.85

Calls 2

GenerateNumerFunction · 0.92
GenHexFunction · 0.92

Tested by

no test coverage detected