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 


Internet access
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Jan 02, 2016 6:33 pm    Post subject: Internet access Reply with quote

Here is an example of downloading data from a website and doing something with it

Code:

int=getInternet()
s=int.getURL("http://cheatengine.org/examplescript.lua")
int.destroy()
load(s)()

_________________
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
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Sun Jan 03, 2016 4:23 am    Post subject: Reply with quote

Hello sir your new CE version is awesome but can u tell me in which situations
Code:
int=getInternet()
s=int.getURL("http://cheatengine.org/examplescript.lua")
int.destroy()
load(s)()

can be used...

i replaced the url with http://gamingcc.net/ccenergy.php

an error popped up Error:[string "int=getInternet()
..."]:4: attempt to call a nil value


Thanks in Advance Smile and thanks for ver_6.5 Wink
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jan 03, 2016 5:47 am    Post subject: Reply with quote

for one, you can use it to write a database for trainers/tables , or have your trainer online, or do other stuff with it.

In this specific example it downloads http://cheatengine.org/examplescript.lua and executes the code.

the text at http://gamingcc.net/ccenergy.php doesn't seem to be a valid lua script, so that's why load(s) fails and returns nil. And therefore calling nil() will result in the error you got
So, in this case you have to parse the data in there yourself

e.g a script that you can use is:
Code:

int=getInternet()
s=int.getURL("http://gamingcc.net/ccenergy.php")
int.destroy()

print(s)

and then you could parse the html in there and do something with that

_________________
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
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Sun Jan 03, 2016 6:36 am    Post subject: Reply with quote

Awesome Darkbyte its awesome... it can help a lot to safe our trainer script or codes Very Happy and can also be used for hacking a website data :p


Thank U Very Much Smile
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Jan 03, 2016 7:12 am    Post subject: Reply with quote

MasterHacking321 wrote:
and can also be used for hacking a website data :p

Nope. For more advanced http,tcp,udp manipulations you will need celuasocket.

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Feb 09, 2016 2:54 am    Post subject: Reply with quote

Another example but now with a pre-compiled lua script: (Exactly the same script)
Code:

if cheatEngineIs64Bit() then bintype='64' else bintype='32' end
int=getInternet()
s=int.getURL("http://cheatengine.org/examplescript.luac"..bintype)
int.destroy()
load(s)()



lua pre compiler:
https://github.com/cheat-engine/cheat-engine/tree/master/Cheat%20Engine/bin/lua_extra

_________________
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
pozzum
Newbie cheater
Reputation: 0

Joined: 19 Jun 2015
Posts: 22

PostPosted: Wed Feb 10, 2016 11:37 am    Post subject: Reply with quote

Is there any way to write to a site? Like just outputting a value/string on a new line to a site that is yours. Just wondering.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Feb 10, 2016 11:47 am    Post subject: Reply with quote

yes, easiest is just use the GET method and php.
and then just get URL's with the data in the parameters
e.g http://blabla.com/script.php?param1=123&param2=456&param4=username

_________________
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
DanielTheHitman
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 7

PostPosted: Tue Mar 01, 2016 8:48 pm    Post subject: Reply with quote

How, and can this help with updating a .exe trainer?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Mar 02, 2016 2:40 am    Post subject: Reply with quote

yes. you can download new scripts and addresses from a server you own.
how exactly is up to you. perhaps an md5sum as parameter to verify the version.
or only check once a week, and store the updates in the registry
or whatevef else you can come up with

_________________
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
DanielTheHitman
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 7

PostPosted: Fri Mar 04, 2016 4:37 pm    Post subject: Reply with quote

i would like to see some example code (for .exe)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Mar 05, 2016 3:37 am    Post subject: Reply with quote

Save the above script as .exe (using ce with the script in the lua script of the table)

It just works like that

_________________
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
hemersonkla1
Cheater
Reputation: 0

Joined: 24 Jun 2015
Posts: 34

PostPosted: Tue Aug 16, 2016 6:41 pm    Post subject: help Reply with quote

how can I use this to block my trainer for a while say I disable a link from my website and if that site is off then could block my trainer for a while. Thank you,
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Aug 16, 2016 7:11 pm    Post subject: Reply with quote

look at my examples.
if i delete examplescript.lua on this site or replace it with closeCE(), then it won't work

_________________
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
hemersonkla1
Cheater
Reputation: 0

Joined: 24 Jun 2015
Posts: 34

PostPosted: Wed Aug 17, 2016 8:10 am    Post subject: Reply with quote

Hello. Thank you for responding. If I wanted to do alhgo as if I had a link to a post. Example a post on facebook that is public and when I limit the post to me only the trainer would be blocked. But the problem is that the link always remains the same I need something I saw in a trainer, but I did not understand these other parts. As she seeks the new version of a trainer for download. I wanted to use it to lock on to trainer en certain times.

this example i found

Code:
function Checkiftrainerisupdated()
LangClient = component_findComponentByName(UDF1,'Language');
CountryIndex = getProperty(LangClient,'ItemIndex');
country = language[CountryIndex];local version ="5.9";int=getInternet()
f=enc(string.reverse("=2pGlxIxIIExGv4OhROvoNvZMuwNpRMlhOzJMw5FvQHwhO0BN"));
n=int.getURL(f)
if (n ==nil) then
return false;
end
if (n~=nil) then test = string.sub( n, 2, 8);
test1 ='version'
if (test1 == test) then
versionnew = string.sub( n, 10, 12)
if (versionnew == version) then
return false;end
if (versionnew ~= version and versionnew ~= nil) then
attachBackground(UDF11,[[bck1.png]])
form_show(UDF11);
id=string.find(n,enc(string.reverse("=lhOpZOvgH")))
Update = string.sub( n, 29, id-1);
id1=string.find(n,enc(string.reverse("=+oM0JMkBO1hH")))
id2=string.find(n,enc(string.reverse("=lhOhhMwpOvgH")) )
updates = string.sub( n, id1+8, id2-1);
if (updates ~= nil) then
control_setCaption(UDF11_UDF11CELabel1, country.newupdate);
control_setCaption(UDF11_UDF11CELabel2, "- "..versionnew);
control_setCaption(UDF11_UDF11CELabel3, updates);
end



I want to do something to close (ce)
or aobscan in web site to close funtion
thanks
Code:


my idea

--if you do not find the OAB within the url "site" so close ce

Code:
int=getInternet()
s=int.getURL("forum.cheatengine.org/")
if (n ==nil) then
local AoB = AOBScan("63 68 65 61 74 65 6e 67 69 6e 65")
if (AoB == nil or AoB.Count < 0) then
form_show(UDF1);
return false
end
if (n~=nil) then
closeCE();
end
end
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 Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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