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

10-21-2010, 12:35 AM
|
|
Newcomer
|
|
Join Date: Sep 2010
Location: Toronto, ON, CAN
Posts: 5
|
|
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 
|

10-21-2010, 12:49 AM
|
 |
an cat
|
|
Join Date: Jan 2007
Location: [+]
Posts: 3,286
|
|
Re: 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.
__________________
Do you like bitcoins? Do you want to buy or sell bitcoins? PM me or check out this thread.
Ex-programming mod, Ex-market mod, Ex-Head User Educator, Ex-Global Mod
|

10-21-2010, 01:24 AM
|
|
Guru
|
|
Join Date: Jun 2005
Location: Canada
Posts: 1,844
|
|
Re: 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
Quote:
Originally Posted by cp
"I want to know how to cause damage to other computers, I just want to learn! Really!"
Fuck off.
|
Or he actually just wants to know for the sake of knowing...
|

10-21-2010, 01:46 AM
|
 |
an cat
|
|
Join Date: Jan 2007
Location: [+]
Posts: 3,286
|
|
Re: This one might be a little harder, but I'm sure someone out there can help.
Quote:
Originally Posted by blindkilla
Or he actually just wants to know for the sake of knowing...
|
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."
__________________
Do you like bitcoins? Do you want to buy or sell bitcoins? PM me or check out this thread.
Ex-programming mod, Ex-market mod, Ex-Head User Educator, Ex-Global Mod
|

10-21-2010, 09:23 AM
|
|
Newcomer
|
|
Join Date: Dec 2009
Posts: 13
|
|
Re: 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
Last edited by Ashken : 10-21-2010 at 09:24 AM.
|

10-21-2010, 01:01 PM
|
 |
Hero
|
|
Join Date: Apr 2005
Posts: 7,068
|
|
Re: This one might be a little harder, but I'm sure someone out there can help.
Quote:
Originally Posted by Ashken
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
|
You could do it through a kernel-mode driver in a Windows NT operating system, too.
|

10-21-2010, 11:22 PM
|
|
Newcomer
|
|
Join Date: Sep 2010
Location: Toronto, ON, CAN
Posts: 5
|
|
Re: 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.
|

12-10-2010, 06:52 PM
|
|
Member
BANNED
|
|
Join Date: May 2006
Posts: 45
|
|
Re: This one might be a little harder, but I'm sure someone out there can help.
Quote:
Originally Posted by SMR
You could do it through a kernel-mode driver in a Windows NT operating system, too.
|
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 
|
 |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|