[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum » General category » BASIC programming » Charles o2 embedder
Charles o2 embedder
ZlatkoDate: Thursday, 2021-01-28, 1:06 PM | Message # 1
Lieutenant
Group: Administrators
Messages: 62
Reputation: 0
Status: Offline
Code
'embedder
string memBuff1 = getfile ("o.exe")
string memBuff2 = getfile ("t.txt")
string outBuff = memBuff1 + memBuff2
putfile ("ot.exe",outBuff)
'putfile ("ot.exe",memBuff1 + memBuff2) 'also works

putfile ("ot.cfg",str(len(membuff1)) ) 'save length of t.exe
...
'recover embedded data from ot.exe
string s=getfile("ot.exe")
int lo=val(getfile("ot.cfg"))
string d=mid(s,lo+1,200)
print d
 
Forum » General category » BASIC programming » Charles o2 embedder
  • Page 1 of 1
  • 1
Search: