home *** CD-ROM | disk | FTP | other *** search
/ The Elite Hackers Toolkit / TheEliteHackersToolkitVolume1_1998.rar / HACKERS.BIN / appcraks / PC_BCB1U.ZIP / 1231BOMB.ASM next >
Assembly Source File  |  1998-01-18  |  855b  |  21 lines

  1. A snippet of code from a compiled .exe, showing the Dec 31 timebomb:
  2.  
  3. :00422745    call    Kernel32!GetLocalTime
  4. :0042274a    cmp    word ptr [esp],07cd    ;check if year=1997
  5. :00422750    jb    00422767        ;if less than, then run
  6. :00422752    cmp    word ptr [esp+02],0c    ;check if month=12
  7. :00422758    jb    00422767        ;if less than, then run
  8. :0042275a    cmp    word ptr [esp+6],1f    ;check if day=31
  9. :00422760    jb    00422767        ;if less than, then run
  10. :00422762    call    0041f594        ;nag and exit
  11. :00422767    push    00422798        ;good guys land here
  12. :0042276c    push    01            ;program runs...
  13.  
  14. So, your .exe's would never run on December 31, 1997 or any
  15. December 31 after 1997, but they would run on *any* other date.
  16. Thus, some of you, and myself included, were surprised this last 
  17. December. Smartass programmers. <g>
  18.  
  19. Thanks go to J_M@*removed*.de for bringing this to my attention.
  20.  
  21. Saltine [PC]