home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / AVOID_GW.ZIP / avoid_gw.txt
Text File  |  1995-01-09  |  3KB  |  72 lines

  1.  
  2.  
  3.                 A  SIMPLE  WAY  TO  DETECT  GAME  WIZARD
  4.                ------------------------------------------
  5.  
  6.  
  7.         Hi! there.
  8.  
  9.         First,  I must mention it that i'm not good at english.
  10.         so, there is very high possibilty of using dull expression.
  11.         namely  faulty grammer and so on...
  12.         please forgive me.
  13.  
  14.  
  15.         You know game wizard?.
  16.         like it's name game wizard is wonderful one.
  17.         but, for game producer especially Role style game maker.
  18.         game wizard is an ultra-power enemy to defeat. isn't it?
  19.  
  20.         Here is a simple C source code to detect game wizard.
  21.         this is for you who make game program.
  22.  
  23.  
  24.                 unsigned get_int_seg(int Intnum)
  25.                 {
  26.                         unsigned *IntVec=(unsigned *)0x0;
  27.  
  28.                         return(IntVec[Intnum*2+1]);
  29.                 }
  30.  
  31.                 check_wizard()
  32.                 {
  33.                         unsigned Intnum70;
  34.  
  35.                         Intnum70 = get_int_seg(0x70);
  36.                         if(intnum70==get_int_seg(0x21))return(1);
  37.                         if(Intnum70==get_int_seg(0x10))return(1);
  38.                         if(Intnum70==get_int_seg(0x13))return(1);
  39.                         if(Intnum70==get_int_seg(0x28))return(1);
  40.                         return(0);
  41.                 }
  42.  
  43.         The idea is simple.
  44.         when game wizard is installing in memoryal interrupt vector table.
  45.         so all we have to is just check special interrupt vector
  46.         table's address. especially, interrupt Segment address.
  47.         game wizard changes interrupt number 10h,13h,21h,28h,70h and
  48.         command line option dependent interrupt numbers.
  49.         command line option dependent interrupt numbers are varied by option.
  50.         but, interrupt number 10h,13h,21h,28h,70h is always changed.
  51.         so if check interrupt number 10h,13h,21h,28h,70h segment address
  52.         we can determine whether game wizard is in memory.
  53.         notice interrupt number 70h.
  54.         intercepting interrupt number 70h is characteristic.
  55.  
  56.         This is simple way to detect game wizard.
  57.         Usually this routine works right.
  58.         but, After game wizard is excuted and When intercepting interrupt
  59.         number 10h,13h,21h,28h program is staying in memory
  60.         this routine fails!.
  61.  
  62.         Thanks for read!.
  63.         if you have any questions or need more info,
  64.         then email me at easthill@nowcom.co.kr
  65.  
  66.         Written by Yonghee Lee ( From Kwangju , Korea ) 1995.
  67.  
  68.  
  69.  
  70.  
  71.         
  72.