• 0

C++ Program physically destroys computer


Question

I've been searching the internet for a while trying to find out how this is possible. My friend was programming in C++ and somehow messed with pointers or something like that.

Some of the stuff that happened after she ran her program (it was a programming project)

All her keys were randomized, some spouted the ABCs, some spouted out the less often used characters

Her computer immediately started overheating. Her computer literally started smoking within 5 minutes i believe.

My question is, how is it possible for a program to physically destroy a computer. Aren't the controls for the cooling fan, etc. protected or just plain simply built right into the motherboard or BIOS?

Thanks

P.S. I never managed to get a copy of the program from my friend seeing as how they're computer got destroyed.

22 answers to this question

Recommended Posts

  • 0

I suppose that software was not run under WinXP or any kind of protected environment... I've done same kind of software once in C++ in DOS environment.

What I did was basicly send random data to random ports (outp function).. Screen started flickering, then eventually blanked and computer shutted down.. When I started it BIOS was totaly ****ed up, password was gone, settings were all wrong and computer worked at 70% of it's previous speed. Lucky for me it was school computer... :p

Function which you ask about (fan speed etc.) I think are not protected in any matter by OS, but rather controlled by some registers in CPU.

  • 0

Look, your friend lies. It is impossible our days to destroy physically a computer with a C++ software (in the way you describe it). However, it was possible long ago (before 1992), when a virus spreaded and destroyed some bioses that weren't protected at this time.

Our days, it is absolutely impossible. The motherboard controls how much power is sent on every parts of the machine (the miracle of ATX). The mother board even controls when the power supply powers on or off. Even Windows can't bypass this protection.

There are some motherboards manufacturers that distributes overclocking softwares. These, often, can control how much voltage is given to the CPU or the Memory. The way they do this is by using assembly call to the

bios with a key to unprotect. The protection is different for every type of motherboard, and is closed source

most of the time. When it is released publicly, you must know, that the BIOS makes a validation everytime you

adjust the voltage, so you can't give more then 10 % to 20 % more power to a part (depending on the manufacturer), the bios will not accept it and the change will not occur if it is not in this range.

So, is a C++ program able to destroy one piece of hardware ? I would say it is possible if you play too much with the voltages. BUT, it is absolutely impossible to make it explode or even make it smoke. The BIOS protection prevents going over a certain temperature (it would power off the computer). If the computer started smoking, the problem comes from elsewhere. Maybe the motherboard was directly screwed on the case (you must always use little pins that prevent the motherboard from touching directly to the case).

  • 0
  Jayzee said:
I suppose that software was not run under WinXP or any kind of protected environment... I've done same kind of software once in C++ in DOS environment.

What I did was basicly send random data to random ports (outp function).. Screen started flickering, then eventually blanked and computer shutted down.. When I started it BIOS was totaly ****ed up, password was gone, settings were all wrong and computer worked at 70% of it's previous speed. Lucky for me it was school computer...  :p

Function which you ask about (fan speed etc.) I think are not protected in any matter by OS, but rather controlled by some registers in CPU.

585972690[/snapback]

yes, i think that too

in the past, i saw some program do this

but it can't do anything on Windows XP and other

  • 0

Found these simple for-printf code that can give you a nice blue screen of dread a few years back. Used to work in Win95, and surprisingly enough - XP. Works for most (if not all) 32-bit compilers in windows (tried on borland, ms, and gcc)

Yeah, i bsod-ed my own comp a few times... just for the sake of curiosity. :unsure: I've yet to see code that could affect hardware functions directly lately (At least not since my assembly days in DOS). But i remember a friend had a toshiba laptop a couple years ago that had this software to change the bios password, and some other bios stuff...

#include <stdio.h>
int main(void) {
  for (;;) {
  printf(" \t\b\b\b\b\b\b");
  }
  return 0;
}

PS: Seems harmless enough? Go ahead. You've been warned. :devil:

  • 0

SpeedFan is an example of a software where you can directly manipulate fan speeds, or turn them off if you wish, and it runs just fine under Windows XP. So if you support the motherboards you can clearly turn off all/most fans in the computer automatically without the user having to know anything. However, as others have said, your BIOS should kick in later, or even the CPU shutting down itself if it gets bad enough and you haven't configured CPU throttling/warnings in the BIOS (this isn't something that's always done).

  ThunderRiver said:
I didn't think it was possible because it is quite a high level language anyway. Who could have thought a high level language could do so much damages?

C++ isn't that high level, and you can even program assembler in it with asm {} clauses. But even without doing that, C++ is fully usable to write e.g. device drivers with and in these cases bad pointers or other things can really mess things up. :)

Edited by Jugalator
  • 0
  tx83 said:
Look, your friend lies. It is impossible our days to destroy physically a computer with a C++ software (in the way you describe it). However, it was possible long ago (before 1992), when a virus spreaded and destroyed some bioses that weren't protected at this time.

Our days, it is absolutely impossible. The motherboard controls how much power is sent on every parts of the machine (the miracle of ATX). The mother board even controls when the power supply powers on or off. Even Windows can't bypass this protection.

There are some motherboards manufacturers that distributes overclocking softwares. These, often, can control how much voltage is given to the CPU or the Memory. The way they do this is by using assembly call to the

bios with a key to unprotect. The protection is different for every type of motherboard, and is closed source

most of the time. When it is released publicly, you must know, that the BIOS makes a validation everytime you

adjust the voltage, so you can't give more then 10 % to 20 % more power to a part (depending on the manufacturer), the bios will not accept it and the change will not occur if it is not in this range.

So, is a C++ program able to destroy one piece of hardware ? I would say it is possible if you play too much with the voltages. BUT, it is absolutely impossible to make it explode or even make it smoke. The BIOS protection prevents going over a certain temperature (it would power off the computer). If the computer started smoking, the problem comes from elsewhere. Maybe the motherboard was directly screwed on the case (you must always use little pins that prevent the motherboard from touching directly to the case).

585972735[/snapback]

my friend wasn't lying. I saw the computer after it was destroyed. Plus they have no reason whatsoever to lie. Lie for an interesting story, no, she had more than enough interesting stories. She ran the program on Windows XP, by the way. The maker of the computer was Sony, it was a laptop.

Like I said before, this is what really baffles me. How does a computer overheat from a program? (And don't try to work off the lieing angle) My friend still has the destroyed computer. One of these days, I'm going to get that hard drive and get the contents off it. In the mean time, I'm hoping some of you could provide a definitive answer.

Perhaps there is a problem with the BIOS on that particular motherboard that Sony failed to detect and she accidentally stumbled across it.

  • 0

Now that I think about it, BIOSs can be updated to a certain extent, right? I'm not sure how far you're allowed to edit the BIOS before you need to send it to a manufacturer to update. Maybe her program edited the BIOS but still stayed in the bounds.

Just a theory.

Just to answer any extra questions. The computer merely smoked, it didn't explode. She never tampered with the hardware of the computer. I mean it's a laptop, you can't really do all that much if you open it up.

  • 0

If the computer was destroyed from heat, it probably had a heat problem to begin with. The program or wahtever it was just caused high CPU usage, which in turn caused more heat, and if the heatsink was unable to cope with the heat the computer either shut off or died.

  • 0

Some motherboards allow you to overclock from within windows. It could've been one of two things. Either the program she was making caused her laptop to just overheat at stock temps, or the program could've somehow actually overclocked the CPU to the point of no return. I'm not sure what intel boards can do this, I am familiar with nvidia-based chipsets having such features.

  • 0
  nomis_nehc said:
heh, i think your friend is bs'ing too. from what i know of c++, it doesn't seem possible today.

585974791[/snapback]

may seem impossible but think about computers. The stupidest retard (no offense to them) is still smarter than the world's smartest computer, even that Honda robot. Do you know why? Because a computer lacks any common sense and doesn't assume what you want. It's quite possible that in programming the BIOS, the programmers overlooked a special case scenario which normally doesn't happen.

Before we start saying that all these programmers have master's in yada yada, they're still human and by nature, they will naturally assume the computer knows what they want and will do that.

When I go off to college, my friend will be relatively close so I'll see if I can grab the laptop's hard drive supposing it wasn't damaged too badly. But rest assured, my friend is no BSing and neither am I.

  • 0
  bubbleboys said:
may seem impossible but think about computers.  The stupidest retard (no offense to them) is still smarter than the world's smartest computer, even that Honda robot.  Do you know why?  Because a computer lacks any common sense and doesn't assume what you want.  It's quite possible that in programming the BIOS, the programmers overlooked a special case scenario which normally doesn't happen.

Before we start saying that all these programmers have master's in yada yada, they're still human and by nature, they will naturally assume the computer knows what they want and will do that.

When I go off to college, my friend will be relatively close so I'll see if I can grab the laptop's hard drive supposing it wasn't damaged too badly.  But rest assured, my friend is no BSing and neither am I.

585975135[/snapback]

You have a somewhat simplistic view of modern day computers. In the past there have been design flaws (or simply insufficient safeguards) that allowed physical damage (prime example.... setting the refresh rate of a monitor too high) but those days are long past unless you're talking about some very old or some very esoteric computer equipment.

In this case, either your friend is BS'ing YOU, YOU are BS'ing US or, as Weenur pointed out, it's coincidence.

  • 0

Well it's entirely possible to access registers on your chipset (and just about any other device). For example, on VIA KT266A and KT333 systems you can enable two flip-flops that enable the "halt" instruction for the CPU. This is disabled by the bios on boot probably because this feature wasn't bug-free. Depending on the quality of the hardware it could be possible to make things burn and fry. For example, if two pins are connected and they both try to drive a signal (let's say pin a is a 1 and pin b is a 0) then we could have some problems.

It is highly unlikely though. Safeguards are built into standards and other safeguards are are put in place without even thinking any more. Engineers do get lazy though especially when managers are bitching about product releases.

  • 0
  Andareed said:
You can write a kernel driver to do anything windows does. So the question should be if the processor allows such action.

585974781[/snapback]

You can only write a kernel mode application by getting a special SDK from microsoft, which you have to sign a license agreement in writing, in Redmond. The DDK that you can get for free can only make device drivers, in which case still cannot damage the system even if malprogramed because Windows still has total control over the system.

In NT (NT, 2000, XP, 2003, Longhorn), you cannot do such, as the OS is in protected mode which means that you cannot access physical memory thru your apps, and there is not bug in this. You cannot access any of the stuff that the OS can (BIOS, chipset, raw hardware access), unless you have a kernel mode application. It is much more complicated than I can explain to someone who thinks C++ on WinXP can destroy a computer, so I will leave it at that.

  • 0
  b0b said:
You can only write a kernel mode application by getting a special SDK from microsoft, which you have to sign a license agreement in writing, in Redmond. The DDK that you can get for free can only make device drivers, in which case still cannot damage the system even if malprogramed because Windows still has total control over the system.

In NT (NT, 2000, XP, 2003, Longhorn), you cannot do such, as the OS is in protected mode which means that you cannot access physical memory thru your apps, and there is not bug in this. You cannot access any of the stuff that the OS can (BIOS, chipset, raw hardware access), unless you have a kernel mode application. It is much more complicated than I can explain to someone who thinks C++ on WinXP can destroy a computer, so I will leave it at that.

585981996[/snapback]

But AFAIK, windows device drivers (made using the DDK) run in ring 0, just like the kernel and so you can do many stupid things like change the PDBR or IDT entries.

  • 0
  bubbleboys said:
may seem impossible but think about computers.  The stupidest retard (no offense to them) is still smarter than the world's smartest computer, even that Honda robot.  Do you know why?  Because a computer lacks any common sense and doesn't assume what you want.

retards have common sense?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Stylish Samsung Galaxy S25 Edge gets 20% discount sending it to lowest price by Paul Hill If you’re in the market for a powerful, stylish phone, then you may be interested in the Galaxy S25 Edge, which is now reduced to $969.99, down 20% from the $1,219.99 list price. This is the lowest price that the device has been at on Amazon. You can get the device at this price if you go for the Titanium Icyblue or Titanium Silver editions. These models are the top-end S25 Edge variants with 512GB of storage. While this Samsung device may be about as thick as a pencil, it’s constructed from titanium and uses Corning Gorilla Glass Ceramic 2 on the display. This should ensure durability, despite its thin design. The thickness of this phone is just 5.8mm, and it weighs 163g. Camera capabilities and AI enhancements The Galaxy S25 Edge's camera system is impressive. It has a 200MP main camera with optical image stabilization and a 2x optical quality zoom. This feature magnifies the image using optical mechanisms in the camera lens so that the zoomed image retains its original clarity, detail, and resolution of the scene. On the back, there is also a 12MP ultrawide camera with autofocus and on the front, there’s a 12MP camera. Like many phones coming out now, there are AI-powered camera features such as Night Video, Best Face for group shots, Portrait Selfie, and Gallery Search by description. Notably, there is no dedicated telephoto lens like in the S25+ and S25 Ultra. This is a tradeoff that the company decided to make to achieve its ultrathin design. Telephoto lenses are camera lenses that are designed to make distant objects appear closer and larger in your photos and videos. The absence of this telephoto lens may be a deal breaker for those looking to use this camera for professional shots; otherwise, it’s still very impressive, especially with that 200MP main camera. Performance, display, and integrated AI features The S25 Edge is powered by the Snapdragon 8 Elite chipset, specifically the 3-nanometer Qualcomm SM8750-AB. It has an octa-core CPU (2x4.47 GHz Oryon V Phoenix L + 6x3.53 GHz Oryon V2 Phoenix M) and an Adreno 830 GPU. This model's display is a 6.7-inch QHD+ Dynamic AMOLED 2X with a 120Hz adaptive refresh rate and high brightness. This device has plenty of other AI features too, outside of the camera, including Cross App Action, Audio Eraser for videos, Now Brief/Now Bar for personalized information, and of course, Google Gemini. With 12GB of RAM, the specs on this phone are really very good. It should be capable of doing most tasks you throw at it, including gaming. You may wonder if it will handle games well, given that the thin design means it could overheat. Samsung has already thought about this and included a reconfigured vapor chamber that helps to keep the phone cool. Battery life and charging speed: The main compromise Aside from the removal of the telephoto lens, this phone also has a drawback in terms of battery life. Its 3,900 mAh battery capacity means it’s smaller than many other devices, even compared to budget phones. Another disappointing aspect is the charging, where the wired charging speed is limited to 25W—that’s lower than what you find on very affordable Xiaomi POCO devices. This battery limitation might make this device a bad choice if you’re away from a charger for long periods. One affordable way to mitigate this downside is by carrying a portable charger, but still, it’s ironic that you buy a thin phone to be lighter and then end up carrying a brick-sized charger around with you. You could also just bring your charger and plug it into an outlet. Is the Galaxy S25 Edge the smart buy for you? If you’re someone who wants a sleek, lightweight phone that has a premium build and can easily slice through tasks you throw at it, then the Galaxy S25 Edge is very likely for you. It’s also great for anyone looking for a standout camera that doesn’t need a telephoto lens. However, if you need a device with all-day battery life because you’re going camping or to the middle of nowhere, then you could probably find a better fit with a longer battery life. If this device is for you, check out the links below. Samsung Galaxy S25 Edge (Titanium Icyblue): $969.99 (Amazon US) / MSRP $1,219.99 Samsung Galaxy S25 Edge (Titanium Silver): $969.99 (Amazon US) / MSRP $1,219.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • I got too many apps I use actively. Theres been too often I completely blank on the name of the application and had to manually look through the list for it. Now I'm using Start11 and got my apps sorted in the Start menu by categories so that if I'm looking for Krita i can find it under "Art editors". If MS are going to change it, they should consider making automated categories. Seen some Linux distros do that. But if they do, theres probably gonna be a lot of wrongly categorized apps though, unfortunately.
    • LAV Filters 0.80.0 by Razvan Serea LAVFSplitter is a multi-format media splitter that uses libavformat (the demuxing library from ffmpeg) to demux all sorts of media files. LAV Splitter is a Souce Filter/Splitter required to demux the files into their separate elementary streams. LAV Audio and Video Decoder are powerful decoders with a focus on quality and performance, without any compromises. Supported Formats: MKV/WebM, AVI, MP4/MOV, MPEG-TS/PS (including basic EVO support), FLV, OGG, and many more that are supported by ffmpeg! LAV Filters are based on ffmpeg and libbluray and is aimed to offer a all-around solution to perfect playback of file-based Media as well as Blu-rays. LAV Filters 0.80.0 changelog: LAV Splitter NEW: Introduced the IURLSourceFilterLAV interface to allow opening URLs with custom user agent and referrer NEW: Added support for WebP images Changed: Increased the length of the advanced subtitle selection field, so its no longer cut off after 255 characters Changed: Improved buffering behavior on badly interleaved video files Fixed: Audio streams with an unknown/unsupported codec are no longer selected for playback, as long as others are present Fixed: Improved accuracy of reported FPS from AviSynth scripts LAV Video NEW: D3D11 support for HEVC 4:2:2 and 4:4:4 hardware decoding NEW: Dolby Vision extension metadata is exported for renderers to use Changed: Added additional media types to support more video streams Changed: Updated dav1d for significant AV1 decoding improvements Fixed: Improved handling of H.264 4:4:4 files encoded by certain versions of x264 Fixed: VP9 DXVA2/D3D11 decoding could result in artifacts on some clips Fixed: Decoding ProRes reports more accurate color details LAV Audio Changed: Added support for additional ADPCM audio codecs Download: LAV Filters 0.80.0 | 15.5 MB (Open Source) View: LAV Filters Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Haven't really used it much for years, not specific to Windows 11.. it's there but I mostly ignore it. I do install StartAllBack though bust mostly for the other bits that it brings. I prefer the "alt-space" type launchers (KRunner in Plasma, Flow in Windows or the like), a lot less clutter and more smarts like bookmark/history searches and other useful plugins.
  • Recent Achievements

    • First Post
      emptyother earned a badge
      First Post
    • Week One Done
      Crunchy6 earned a badge
      Week One Done
    • One Month Later
      KynanSEIT earned a badge
      One Month Later
    • One Month Later
      gowtham07 earned a badge
      One Month Later
    • Collaborator
      lethalman went up a rank
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      674
    2. 2
      ATLien_0
      277
    3. 3
      Michael Scrip
      220
    4. 4
      +FloatingFatMan
      168
    5. 5
      Steven P.
      160
  • Tell a friend

    Love Neowin? Tell a friend!