Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


To protect the table
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Nov 06, 2015 12:50 am    Post subject: Reply with quote

Thanks again ** Zanzer **

Yes I did to got you to solving my home work in case I am still learning about Lua scripting.. too honest, right ?? Laughing

my home work is trying to make customize encoding / decoding texts with very simple way. For me, it easier to use VB rather than Lua to do so. Therefore I ask directly to you, which is one of the "Lua Expert" in my opinion.

Here is I tried to do :

Code:

function enc_textcode(s)
  local coded = ""
  for i=1,#s do
    coded = coded .. string.char(s:byte(i) + 3)
  end
  return coded
end

function dec_textcode(s)
  local coded = ""
  for i=1,#s do
    coded = coded .. string.char(s:byte(i) - 3)
  end
  return coded
end

print(enc_textcode("Virus Installed"))
print(dec_textcode("Yluxv#Lqvwdoohg"))


Regards
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Nov 06, 2015 2:14 am    Post subject: Reply with quote

kostya555

This is example what i did to protect my script inside the trainer from CE Decompiler you were mentioned.

Original script code :
Code:

------ Avoid Lua Engine Pop-up
getLuaEngine().cbShowOnPrint.Checked=false
getLuaEngine().hide()

---- Load Hack Coding
function loadTableCode2(n)
 local t = findTableFile(n)
 if t ~= nil then
 local s = t.Stream
 local c = readStringLocal(s.Memory,s.Size)
 return c ~= nil and loadstring(c) -- return a function
 end
end
--
local f = loadTableCode2('loadcode.lua')   -----> Hack code store here
print(type(f))
if type(f) == 'function' then f() else print('not loaded') end
--
test()


original contain of file : "loadcode.lua"
Code:

function test()
function CEButton1Click(sender)
xmplayer.playXM( findTableFile('external.xm') )
end


function CEButton2Click(sender)
xmplayer_stop()
end


function CEButton3Click(sender)
closeCE();
return caHide
end
end  --- end of function test


loadecode.lua has store as stream file as part of the CE Trainer.
Now, you have CEDecompiler, so please trying to decompiling a CETrainer attach, then you will not see the code (for script / code you want to hide), because is store in loadcode.lua.

For more difficult to someone who trying get codes from the trainer, then we can add encoded script inside loadcode.lua file.

example encoded loadcode.lua file:
Code:

function test()
function dec_textcode(s)
  local coded = ""
  for i=1,#s do
    coded = coded .. string.char(s:byte(i) - 3)
  end
  return coded
end

rline_1 = "ixqfwlrq#FHExwwrq4Folfn+vhqghu,"
rline_2 = "{psod|hu1sod|[P+#ilqgWdeohIloh+*h{whuqdo1{p*,#,"
rline_3 = "hqg"
rline_4 = "ixqfwlrqFHExwwrq5Folfn+vhqghu,"
rline_5 = "{psod|hubvwrs+,"
rline_6 = "hqg"
rline_7 = "ixqfwlrq#FHExwwrq6Folfn+vhqghu,"
rline_8 = "forvhFH+,>"
rline_9 = "uhwxuq#fdKlgh"
rline_10="hqg"

dec_textcode(rline_1)
dec_textcode(rline_2)
dec_textcode(rline_3)
dec_textcode(rline_4)
dec_textcode(rline_5)
dec_textcode(rline_6)
dec_textcode(rline_7)
dec_textcode(rline_8)
dec_textcode(rline_9)
dec_textcode(rline_10)
end


Just need add a command to return decoded string which will run as lua command. (Some expert will explaining this better, maybe with function loadString or returnString, or print(type,x)... etc).

Next, to make it more harder (to get hiding script), save the trainer as exe file.

Regard



Test_Decompiler1.CETRAINER
 Description:

Download
 Filename:  Test_Decompiler1.CETRAINER
 Filesize:  22.21 KB
 Downloaded:  647 Time(s)

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Nov 06, 2015 11:33 am    Post subject: Reply with quote

Shrooms wrote:
i see what you did you smart piece of shit, love you. >3

so how can I make money, if I were to sell a program.

In my sBot, I had encryption & decryption on a long long that would be generated by me....but still fuck.

only way is to handle server side i guess eh so u can hack the client but even if u were to bypass something i have to check it manually via ss...HAHAHAHAHAHAHAHAHHAA

life is my chess

moment i see unwanted IP, BANNED lel

no hook can rootkit my server run by me with my cock on it

don't be scared
im right here
even though
we don't roll
i will take down IBM


We discussed most of this on Skype.

IPs are not reliable and should not be used as a form of authentication or anything with your application setup. People that have unreliable connections, shotty internet, mobile hotspots, etc. will have different IPs constantly. So it will land up getting a paid user banned for something unjustified and out of their control.

As for your sBot, it was coded in C#, so it is going to get decompiled and cracked easily.

And with the server side setup, you need to make sure the client is as "stupid" as possible then where the majority of it is missing and streamed from the server. The connection between the two should be encrypted and processing on the client should be as minimal as possible to prevent weak points in your application. (And don't use .NET)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
tomtinhte
How do I cheat?
Reputation: 0

Joined: 27 Aug 2014
Posts: 8

PostPosted: Sat Dec 12, 2015 7:34 am    Post subject: Reply with quote

Corroder wrote:

example encoded loadcode.lua file:
Code:

function test()
function dec_textcode(s)
  local coded = ""
  for i=1,#s do
    coded = coded .. string.char(s:byte(i) - 3)
  end
  return coded
end

rline_1 = "ixqfwlrq#FHExwwrq4Folfn+vhqghu,"
rline_2 = "{psod|hu1sod|[P+#ilqgWdeohIloh+*h{whuqdo1{p*,#,"
rline_3 = "hqg"
rline_4 = "ixqfwlrqFHExwwrq5Folfn+vhqghu,"
rline_5 = "{psod|hubvwrs+,"
rline_6 = "hqg"
rline_7 = "ixqfwlrq#FHExwwrq6Folfn+vhqghu,"
rline_8 = "forvhFH+,>"
rline_9 = "uhwxuq#fdKlgh"
rline_10="hqg"

dec_textcode(rline_1)
dec_textcode(rline_2)
dec_textcode(rline_3)
dec_textcode(rline_4)
dec_textcode(rline_5)
dec_textcode(rline_6)
dec_textcode(rline_7)
dec_textcode(rline_8)
dec_textcode(rline_9)
dec_textcode(rline_10)
end


Just need add a command to return decoded string which will run as lua command. (Some expert will explaining this better, maybe with function loadString or returnString, or print(type,x)... etc).

Next, to make it more harder (to get hiding script), save the trainer as exe file.

Regard


u can help me, you using what method to decode?
Back to top
View user's profile Send private message Yahoo Messenger
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sat Dec 12, 2015 8:53 am    Post subject: Reply with quote

The decode function is right there. It takes each individual character, subtracts its byte representation by 3, then appends that byte as a character to a new string that it returns when it's done looping through the string you gave it. It's just a very simple byte shift.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Dec 12, 2015 8:15 pm    Post subject: Reply with quote

tomtinhte, ParkourPenguin has explained it very well. Thank you.
And this is code for encoding with same method.

Code:

function test()
function enc_textcode(s)
  local coded = ""
  for i=1,#s do
    coded = coded .. string.char(s:byte(i) + 3)
  end
  return coded
end
Back to top
View user's profile Send private message
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Mon Dec 14, 2015 1:48 am    Post subject: Reply with quote

Hello dear programmers, help please Me, I read about protection scripts AA and Lua, but I did not understand exactly where to embed your code, please explain. And another problem is, I'm sorry for my English, the problem is with the generation of trainers in the cheat engine when you create a trainer with a large size it works everywhere and at all the computer, and when you create trainer with a small size, it does not run at startup gives,
error Please update your Cheat Engine version to Cheat Engine 6.3 or later, I'm sorry if this question was not on, this does help to understand, and, moreover, it is a mistake you climb on all versions of Cheat Engine. Sad Sad Sad

Maybe there any programs to protect the trainers made on cheat engine that would not be out of it was to pull the file CET_TRAYNER can advise that be please thanks in advance.
Back to top
View user's profile Send private message
kostya555
Advanced Cheater
Reputation: 0

Joined: 04 Apr 2013
Posts: 55

PostPosted: Mon Dec 14, 2015 4:02 pm    Post subject: Reply with quote

T-10000 wrote:
Hello dear programmers, help please Me, I read about protection scripts AA and Lua, but I did not understand exactly where to embed your code, please explain. And another problem is, I'm sorry for my English, the problem is with the generation of trainers in the cheat engine when you create a trainer with a large size it works everywhere and at all the computer, and when you create trainer with a small size, it does not run at startup gives,
error Please update your Cheat Engine version to Cheat Engine 6.3 or later, I'm sorry if this question was not on, this does help to understand, and, moreover, it is a mistake you climb on all versions of Cheat Engine. Sad Sad Sad

Maybe there any programs to protect the trainers made on cheat engine that would not be out of it was to pull the file CET_TRAYNER can advise that be please thanks in advance.



It was mentioned here that to protect the trainer from CE will not work.
Anyway craftsmen hacked trainer, this forum will be able to hack any trainer if you want.

Very Happy
Many users on this forum (and others) will still be able to extract it (including me). We will just use different method to crack it. Very Happy

So protection is a waste of time.
He added to himself, as he hacked into data protection.
Turns out it's easy if you know where to dig.
The guys on the forum were right that at the moment I guess there is no such protection that it was impossible to crack. Shocked
Back to top
View user's profile Send private message
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Tue Dec 15, 2015 12:48 am    Post subject: Reply with quote

Yes, of course I understand that 100% protection does not exist here, write about it, but at least the encoding of the script and compilation can be protected, give you the experts to help you do not make not any work, I understand that the protection of 100% No but you can also protect against cattle thieves who imagines himself spices, using dekopilyator, so I forgive you please help Me.

And the most important issue is why when generating exe Trainer in cheat engine, exposing the small size of 70 KB Trainer at startup, you climb error Please update your Cheat Engine version to Cheat Engine 6.3 or later how to fix prompt you that it is no problem to fix, and Me No .
Back to top
View user's profile Send private message
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Sat Jun 11, 2016 4:02 pm    Post subject: Reply with quote

Guys help protect Trainer from Decompiler
Back to top
View user's profile Send private message
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Sun Jun 12, 2016 2:34 am    Post subject: Reply with quote

I'm not good at programming and can't compile. Could you help me in this, napishite me a PM. mgr.inz.Player I appreciate your knowledge, I know that you can help me. Please help to compile and if you do not mind then write in PM. mgr.inz.Player I hope for your help...

Code:
procedure protecttrainer(filename: string);
{
this is the super mega protector routine for the trainer
Yeah, it's pathetic, but it keeps the retarded noobs out that don't know how to
read code and only know how to copy/paste
}
var f,f2: tmemorystream;
  m: PByteArray;
  i: integer;
  k: byte;
  c: Tcompressionstream;
  s: string;

begin
  if Uppercase(extractfileext(filename))<>'.CETRAINER' then raise exception.create(rsErrorSaving);

  f:=tmemorystream.create;
  f.LoadFromFile(filename);
  f2:=tmemorystream.create;

  s:='CHEAT';
  f2.Write(s[1], 5);

  c:=Tcompressionstream.create(clmax, f2,true);

  i:=f.size;
  c.write(i, sizeof(i));
  c.write(f.Memory^, f.size);
  c.free;
  f.free;


  k:=$ce;
  m:=f2.Memory;

  for i:=0 to f2.Size-1 do
  begin
    m[i]:=(m[i] xor k);
    inc(k);
  end;

  for i:=0 to f2.Size-2 do
    m[i]:=m[i] xor m[i+1];

  for i:=f2.Size-1 downto 2 do
    m[i]:=m[i] xor m[i-2];


  f2.SaveToFile(filename);

  f2.free;
end;


end.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sun Jun 12, 2016 10:19 pm    Post subject: Reply with quote

That code is built into Cheat Engine already and is applied to trainers that are generated with it.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Mon Jun 13, 2016 12:15 pm    Post subject: Reply with quote

Guys Give the security code from Decompiler CE CE Decompiler Cheat Engine version
6.5.1, and the code for encoding CETRAINER file, please.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Mon Jun 13, 2016 12:59 pm    Post subject: Reply with quote

It's 0xce
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Hello all
How do I cheat?
Reputation: 0

Joined: 14 Dec 2015
Posts: 9

PostPosted: Mon Jun 13, 2016 2:01 pm    Post subject: Reply with quote

Dear Dark Byte, where it is necessary to prescribe 0хсе
you have to be to Lua, script, protection,
that would be in a Lua script it is possible to prescribe, protection from browsing and Decompiler CE


Dear Dark byte, where it is necessary to 0хсе
there is code in the lua script to protect
that would be in the lua script, you can write, protection from browsing and Decompiler

if it is possible in PM
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites