Weird...

This is a discussion on Weird... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Purely in the interest of science, I conducted an interesting experiment today. I wrote a very simple XOR encryption program. ...

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Weird...

    Purely in the interest of science, I conducted an interesting experiment today.

    I wrote a very simple XOR encryption program.

    I then proceeded to encrypt windows notepad (c:\windows\notepad.exe) to see what would happen.

    I encrypted another executable i wrote a while ago and it became unusable until it was decrypted, but this is not what happened to notepad, oh no...

    After it was encrypted, it's icon changed to the infamous 'misc program' icon (the plain white window). Then, about 3 seconds later, it changed back to the notepad icon, as if windows had somehow detected and reversed my encryption...

    I'm thinking of doing it to my kernel32.dll file, but I haven't got the guts. I reckon windows will stop me anyway, but you never know.

    Any comments on the anomaly?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You have spyware. It's called "windows"... it is self-healing and self-replicating.

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    So how would it detect something like that? Does it constantly monitor all of it's system files?

    Ahh however it does it I guess it's pretty cool.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    I seem to remember that windows scans certain files and restores them if they have been tampered with

    Windows File Protection?

  5. #5
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Well it certainly seems like a novel idea; seems to work too.

    Microsoft products working? Doesn't that break like all the laws of everything?


    (Joke)

    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  6. #6
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    Wanna see something really funny? Go into your windows directory and delete solitare (sol.exe). Seriously, go ahead (XP users only... unless you really hate solitare or something...).

    I fail to see how solitare is a critical file.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  7. #7
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,903
    Surely, without solitaire, the system would become completely unstable and more than likely not boot anymore

  8. #8
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Don't want your computer getting bored while you're away, now do you?
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  9. #9
    Banned
    Join Date
    Jun 2005
    Posts
    594
    Solitare is a very important file!!
    2/3rd of all people who own a computer
    would not need a computer if it wasnt for solitare!!

  10. #10
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735

    However, this applies to anything in system32, not just solitare.

  11. #11
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Riiiight. I suck at solitaire anyhows, and my poor computer? She prefers a good game of Half Life while I'm away
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  12. #12
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    I have to disagree... delete half-life and what happens? HL just dissapears... windows has no love for it :*(
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  13. #13
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Noooooooooo. HL Rocks. Soon I'll have a system good enough to rape *ahem* i mean play HL2..

    Excellent *evil mr. burns thinking face*
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  14. #14
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Notepad and lots of the other standard Windows executables and DLL's have a copy in the System32\DllCache (I believe) folder. When you stuff around with these files, Windows detects it and restores the version from the DLLCache folder. Try and replace notepad.exe with another executable - it'll be restored. Delete it - it'll be restored.

    To get around it I believe you have to replace the version in DLLCache first, then replace the file you want.

  15. #15
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Quote Originally Posted by ahluka
    Microsoft products working? Doesn't that break like all the laws of everything?
    "The day Microsoft make a product that doesn't suck is the day they bring out a vaccuum cleaner". But see my previous posts on why Microsoft doesn't "sux0rz".

    To those joking about how solitare isn't a critical system file - seriously, imagine the huge number of support calls made because Aunt Edna can't play solitaire after her 10 year old nephew decided to "clean up" her computer.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. weird things with my linked list of queue
    By -EquinoX- in forum C Programming
    Replies: 3
    Last Post: 11-22-2008, 10:23 PM
  2. weird
    By kiz in forum C Programming
    Replies: 8
    Last Post: 09-24-2007, 01:16 AM
  3. Weird Characters With GetDlgItemText
    By execute in forum Windows Programming
    Replies: 4
    Last Post: 05-04-2006, 04:53 PM
  4. weird error
    By gandalf_bar in forum Linux Programming
    Replies: 2
    Last Post: 07-17-2005, 07:32 AM
  5. Getting weird characters in Strings
    By steve8820 in forum C Programming
    Replies: 3
    Last Post: 09-18-2001, 02:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21