i have a string containing the data for a file, how can i execute this string?
i could use CreateProcessEx by Aphex, but that requires a pointer
i have seen this code by KripplerCode:procedure ResourceToMem; var ResInfo: HRSRC; ResSize: LongWord; Handle: THandle; ResData: Pointer; begin //Locate our resource information from within the resource data ResInfo := FindResource(SysInit.HInstance, pchar('a01'), RT_RCDATA); if ResInfo <> 0 then begin //Get the size of our resource information ResSize := SizeofResource(SysInit.HInstance, ResInfo); if ResSize <> 0 then begin //Get the handle to our resource information Handle := LoadResource(SysInit.HInstance, ResInfo); if Handle <> 0 then begin //Store our data into the resource ResData := LockResource(Handle); //Execute it! createprocessex(ResData); end; end; end;
i could use this except, i need to decrypt the ResData before executing it
his code doesnt give a chance :0
help?


LinkBack URL
About LinkBacks
Reply With Quote

