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 


Avoiding speed hack detection?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Tue Apr 02, 2013 12:24 pm    Post subject: Avoiding speed hack detection? Reply with quote

Theres lots of puzzles, time-based, MMOs and what not,
That avoiding speed hack by checking OS time.
I wonder,
Is it possible to enable speed hack in a game AND at the same time enable speed hack to the OS time? (I wonder in generally if it possible to speedhack OS time, or just spoof it..).

Scripts that being used in AS3, to compare with OS time..
(URL: http://www.bjoernacker.de/flash/detecting-the-cheat-engines-speedhack-in-as3/)
Code:
package
{
 import flash.events.Event;
 import flash.events.EventDispatcher;
 import flash.events.SecurityErrorEvent;
 import flash.utils.clearInterval;
 import flash.utils.getTimer;
 import flash.utils.setInterval;

 public class SpeedWatchDog extends EventDispatcher
 {
 protected var _tolerance:Number;
 protected var _prevDate:Number;
 protected var _prevTimer:int;
 protected var _interval:uint;
 
 [Event(name="securityError",type="flash.events.SecurityErrorEvent")]
 
 public function init(interval:int = 1000, tolerance:Number = 0.35):void
 {
 _tolerance = tolerance;
 _prevTimer = getTimer();
 _prevDate = new Date().time;
 this.interval = interval;
 }
 
 public function stop():void
 {
 clearInterval(_interval);
 }
 
 public function get tolerance():Number
 {
 return _tolerance;
 }
 
 public function set tolerance(value:Number):void
 {
 _tolerance = value;
 }
 
 public function get interval():uint
 {
 return _interval;
 }
 
 public function set interval(value:uint):void
 {
 clearInterval(_interval);
 _interval = setInterval(check, value);
 }
 
 protected function check():void
 {
 var date:Number = new Date().time - _prevDate;
 var timer:Number = getTimer() - _prevTimer;
 var t:Number = date * _tolerance;
 if (timer > date + t || timer < date - t)
 {
 dispatchEvent(new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR));
 }
 _prevTimer = getTimer();
 _prevDate = new Date().time;
 }
 }

Its usage
Code:
var wd:SpeedWatchDog = new SpeedWatchDog();
//Check every 2 seconds with a tolerance of 40%
wd.init(2000, 0.4);
wd.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSpeedHack;
 
function onSpeedHack(e:Event):void
{
   trace("speedhack detected");
}

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
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