Adblock breaks this site

This one might be a little harder, but I'm sure someone out there can help.

Discussion in 'Programming General' started by Demonten, Oct 20, 2010.

  1. Demonten

    Demonten Newcomer

    Joined:
    Sep 14, 2010
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    Firstly, I need to know how to send a halt command to a computer. I do know that will permanently destroy the computer. I'm not sure if it's possible in c++. If it is, I'd like to know how and if, after you've halted it, if it will still boot in MSDOS or something and if it will turn off when it halts, or what. Just curious, I don't plan to really use it, I'm an information sponge :p
     
  2. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    "I want to know how to cause damage to other computers, I just want to learn! Really!"

    Fuck off.
     
  3. blindkilla

    blindkilla Guru
    $25 USD Donor New

    Joined:
    Jun 22, 2005
    Posts:
    1,896
    Referrals:
    0
    Sythe Gold:
    6
    Discord Unique ID:
    282000633404456960
    Discord Username:
    sogord
    This one might be a little harder, but I'm sure someone out there can help.

    If you don't find anyone with the answer to your question here, try asking on stackoverflow.com

    Or he actually just wants to know for the sake of knowing...
     
  4. cp

    cp an cat
    Banned

    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    Highly unlikely. Judging by his post, there are a ton of other things he should probably be figuring out first.

    Not to mention, he's only asking how to do it. Not how it works, how to stop it, etc.

    And don't even get me started about the "halt command."
     
  5. Ashken

    Ashken Newcomer

    Joined:
    Dec 18, 2009
    Posts:
    12
    Referrals:
    0
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    you can do that on a 16-bit real mode OS like DOS since it has no protection and allows you to directly access hardware and BIOS interrupts.In a 32 bit protected mode OS you can't unless the OS provides a system call for you to do so which i highly doubt.If you want to play around with such low level stuff get BOCHS emulator and an assembler.build a boot loader or 16-bit OS if you can and toy with it. or better yet get DOS.

    Code:
    ; bootloader ASM
    
    [bits 16]
    
    org 0x7C00
    
    start: jmp routine
     
    msg db "Hello world OS 0.1!",0
    
    display:
    			lodsb
    			or			al, al				
    			jz			end			
    			mov			ah,	0eh			
    			int			10h
    			jmp			display
    end:
    			ret
    routine:
    
    	xor	ax, ax										
          mov	si, msg
    	
    	call	display
    
    	cli			; Clear  Interrupts
    	hlt			; halt 
    	
    times 510 - ($-$$) db 0	
    
    
     
  6. 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
    This one might be a little harder, but I'm sure someone out there can help.

    You could do it through a kernel-mode driver in a Windows NT operating system, too.
     
  7. Demonten

    Demonten Newcomer

    Joined:
    Sep 14, 2010
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    I'm not planning to pwn someone's computer.
     
  8. Eduard

    Eduard Member
    Banned

    Joined:
    May 26, 2006
    Posts:
    45
    Referrals:
    1
    Sythe Gold:
    0
    This one might be a little harder, but I'm sure someone out there can help.

    Yeah but let him learn a language first. And writing a devicedriver is quite hard to write tbh. I love when i try to compile and I allocate a bad pointer :)
     
< Java could not create the virtual machine | New here, seeking advice >


 
 
Adblock breaks this site