| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Sat Jan 02, 2016 6:33 pm    Post subject: Internet access | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		lolAnonymous Expert Cheater
  Reputation: 1
  Joined: 19 Jul 2015 Posts: 154
 
  | 
		
			
				 Posted: Sun Jan 03, 2016 4:23 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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   and thanks for ver_6.5  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Sun Jan 03, 2016 5:47 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		lolAnonymous Expert Cheater
  Reputation: 1
  Joined: 19 Jul 2015 Posts: 154
 
  | 
		
			
				 Posted: Sun Jan 03, 2016 6:36 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Awesome Darkbyte its awesome... it can help a lot to safe our trainer script or codes   and can also be used for hacking a website data :p 
 
 
 
Thank U Very Much  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		mgr.inz.Player I post too much
  Reputation: 222
  Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
  | 
		
			
				 Posted: Sun Jan 03, 2016 7:12 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Tue Feb 09, 2016 2:54 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		pozzum Newbie cheater
  Reputation: 0
  Joined: 19 Jun 2015 Posts: 22
 
  | 
		
			
				 Posted: Wed Feb 10, 2016 11:37 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| 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 | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Wed Feb 10, 2016 11:47 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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¶m2=456¶m4=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 | 
		 | 
	
	
		  | 
	
	
		DanielTheHitman How do I cheat?
  Reputation: 0
  Joined: 28 Feb 2016 Posts: 7
 
  | 
		
			
				 Posted: Tue Mar 01, 2016 8:48 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| How, and can this help with updating a .exe trainer?
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Wed Mar 02, 2016 2:40 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		DanielTheHitman How do I cheat?
  Reputation: 0
  Joined: 28 Feb 2016 Posts: 7
 
  | 
		
			
				 Posted: Fri Mar 04, 2016 4:37 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				| i would like to see some example code (for .exe)
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Sat Mar 05, 2016 3:37 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		hemersonkla1 Cheater
  Reputation: 0
  Joined: 24 Jun 2015 Posts: 34
 
  | 
		
			
				 Posted: Tue Aug 16, 2016 6:41 pm    Post subject: help | 
				       | 
			 
			
				
  | 
			 
			
				| 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 | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Tue Aug 16, 2016 7:11 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		hemersonkla1 Cheater
  Reputation: 0
  Joined: 24 Jun 2015 Posts: 34
 
  | 
		
			
				 Posted: Wed Aug 17, 2016 8:10 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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
 
 
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 | 
		 | 
	
	
		  | 
	
	
		 |