Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Writing a destructive trojan with C++...

Question posted by: Mad Programmer (Guest) on September 13th, 2005 12:45 AM
I'm writing a destructive trojan with C++ and I need to know how I can
destroy the target's monitor and format the target's harddisk before the
target can stop the program.

What do I need to do?


Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Clark S. Cox III's Avatar
Clark S. Cox III
Guest
n/a Posts
September 13th, 2005
12:45 AM
#2

Re: Writing a destructive trojan with C++...
On 2005-09-12 20:31:51 -0400, "Mad Programmer" <bug@spiderwebonmycpu.com> said:
[color=blue]
> I'm writing a destructive trojan with C++ and I need to know how I can
> destroy the target's monitor and format the target's harddisk before
> the target can stop the program.
>
> What do I need to do?[/color]

Well, this program might do it:

void main()
{
}

--
Clark S. Cox, III
Join Bytes!


Alf P. Steinbach's Avatar
Alf P. Steinbach
Guest
n/a Posts
September 13th, 2005
12:55 AM
#3

Re: Writing a destructive trojan with C++...
* Mad Programmer:[color=blue]
> I'm writing a destructive trojan with C++ and I need to know how I can
> destroy the target's monitor and format the target's harddisk before the
> target can stop the program.
>
> What do I need to do?[/color]

Ask your teacher.

The question is off-topic in this group.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Wolfgang Draxinger's Avatar
Wolfgang Draxinger
Guest
n/a Posts
September 13th, 2005
01:05 AM
#4

Re: Writing a destructive trojan with C++...
Mad Programmer wrote:
[color=blue]
> I'm writing a destructive trojan with C++ and I need to know
> how I can destroy the target's monitor[/color]

The program could hack into the electricity suppliers net and
give overvoltage to it. I see no other way to actually destroy
hardware. Ok it's possible to "brick" a BIOS Flash i.e.
overwriting it with garbage. But that is reversible with a
flasher.
[color=blue]
> and format the target's
> harddisk before the target can stop the program.[/color]

Hehe, nice try. If you format the harddisk on a *nix your
programm will probably immediately stop after the first bytes of
the FS have been nulled. However these can be revovered.

Really: Writing a destructive programm doesn't show skill but
immaturenes. Writing a virus for educational purposes can be
interesting, as it requires fiddling around on a low level. OTOH
on a sanely designed system you will hardly find executables you
can overwrite without root permission. And if $HOME is on a
parition mounted with the "noexec", option then it's almost
impossible to get malcode permanently on the system.

Unfortunately the widely used Windows OS is insecure by design.
Almost every of the "bad design points" described in
http://www.ranum.com/security/compu...ditorials/dumb/
apply to Windows.

Wolfgang Draxinger
--


Kai-Uwe Bux's Avatar
Kai-Uwe Bux
Guest
n/a Posts
September 13th, 2005
01:25 AM
#5

Re: Writing a destructive trojan with C++...
Mad Programmer wrote:
[color=blue]
> I'm writing a destructive trojan with C++ and I need to know how I can
> destroy the target's monitor and format the target's harddisk before the
> target can stop the program.
>
> What do I need to do?[/color]

Monitors and harddisks are platform specific. In order to obtain useful and
competent answers, you should ask this question in a forum dedicated to the
computers you are trying to destroy.


Best

Kai-Uwe Bux

Kev's Avatar
Kev
Guest
n/a Posts
September 13th, 2005
04:35 AM
#6

Re: Writing a destructive trojan with C++...
"Mad Programmer" <bug@spiderwebonmycpu.com> wrote in news:dg56lt$ko1$1
@domitilla.aioe.org:
[color=blue]
> What do I need to do?[/color]

Why bother writing one? Just go to your local drugstore. They have more
trojans than anyone will ever need. Well.... most everyone.

John Harrison's Avatar
John Harrison
Guest
n/a Posts
September 13th, 2005
07:15 AM
#7

Re: Writing a destructive trojan with C++...
Kai-Uwe Bux wrote:[color=blue]
> Mad Programmer wrote:
>
>[color=green]
>>I'm writing a destructive trojan with C++ and I need to know how I can
>>destroy the target's monitor and format the target's harddisk before the
>>target can stop the program.
>>
>>What do I need to do?[/color]
>
>
> Monitors and harddisks are platform specific. In order to obtain useful and
> competent answers, you should ask this question in a forum dedicated to the
> computers you are trying to destroy.
>
>
> Best
>
> Kai-Uwe Bux[/color]

Hilarious!

john

Zara's Avatar
Zara
Guest
n/a Posts
September 13th, 2005
07:25 AM
#8

Re: Writing a destructive trojan with C++...
Mad Programmer wrote:[color=blue]
> I'm writing a destructive trojan with C++ and I need to know how I can
> destroy the target's monitor and format the target's harddisk before the
> target can stop the program.
>
> What do I need to do?
>
>[/color]
Is it a troll? An imp?

Nah, it must be a joker! (Batman style, of course)

Christian Meier's Avatar
Christian Meier
Guest
n/a Posts
September 13th, 2005
08:05 AM
#9

Re: Writing a destructive trojan with C++...
"Clark S. Cox III" <clarkcox3@gmail.com> schrieb im Newsbeitrag
news:2005091220361116807%clarkcox3@gmailcom...[color=blue]
> On 2005-09-12 20:31:51 -0400, "Mad Programmer" <bug@spiderwebonmycpu.com>[/color]
said:[color=blue]
>[color=green]
> > I'm writing a destructive trojan with C++ and I need to know how I can
> > destroy the target's monitor and format the target's harddisk before
> > the target can stop the program.
> >
> > What do I need to do?[/color]
>
> Well, this program might do it:
>
> void main()[/color]

With int main() the virus is even better! :-)
[color=blue]
> {
> }
>
> --
> Clark S. Cox, III
> Join Bytes!
>[/color]



Salil's Avatar
Salil
Guest
n/a Posts
September 13th, 2005
09:45 AM
#10

Re: Writing a destructive trojan with C++...
if u are serious about this then u can try to mess with some Rom-Bios
Interrupts.. you might come across something useful..


Mogens Heller Jensen's Avatar
Mogens Heller Jensen
Guest
n/a Posts
September 13th, 2005
10:35 AM
#11

Re: Writing a destructive trojan with C++...

"Mad Programmer" <bug@spiderwebonmycpu.com> wrote in message
news:dg56lt$ko1$1@domitilla.aioe.org...[color=blue]
> I'm writing a destructive trojan with C++ and I need to know how I can
> destroy the target's monitor and format the target's harddisk before the
> target can stop the program.
>
> What do I need to do?
>[/color]

It's easy:
getMonitor()->destroy();
getHarddisk()->format();

Did you even look at your documentation at all? RTFM please :o)

-m



Jon Slaughter's Avatar
Jon Slaughter
Guest
n/a Posts
September 13th, 2005
10:45 AM
#12

Re: Writing a destructive trojan with C++...

"Kai-Uwe Bux" <jkherciueh@gmx.net> wrote in message
news:dg58bu$rq4$1@murdoch.acc.Virginia.EDU...[color=blue]
> Mad Programmer wrote:
>[color=green]
>> I'm writing a destructive trojan with C++ and I need to know how I can
>> destroy the target's monitor and format the target's harddisk before the
>> target can stop the program.
>>
>> What do I need to do?[/color]
>
> Monitors and harddisks are platform specific. In order to obtain useful
> and
> competent answers, you should ask this question in a forum dedicated to
> the
> computers you are trying to destroy.
>
>[/color]

Naw, I think the newsgroup he belongs in is "alt.I.am.a.dumbass.troll" ;)
[color=blue]
> Best
>
> Kai-Uwe Bux[/color]

Jon



Jon Slaughter's Avatar
Jon Slaughter
Guest
n/a Posts
September 13th, 2005
10:55 AM
#13

Re: Writing a destructive trojan with C++...

"Mogens Heller Jensen" <mogens@mookid.dk> wrote in message
news:4326a995$0$11673$ba624c82@nntp02.dk.telia.net ...[color=blue]
>
> "Mad Programmer" <bug@spiderwebonmycpu.com> wrote in message
> news:dg56lt$ko1$1@domitilla.aioe.org...[color=green]
>> I'm writing a destructive trojan with C++ and I need to know how I can
>> destroy the target's monitor and format the target's harddisk before the
>> target can stop the program.
>>
>> What do I need to do?
>>[/color]
>
> It's easy:
> getMonitor()->destroy();
> getHarddisk()->format();
>
> Did you even look at your documentation at all? RTFM please :o)
>
> -m
>[/color]

DX9.0b has made the first obsolete. The have been replaced with more
efficient functions
g_pD3D->InitializeMonitorDestruction(D3DPRESENT_PARAMETERS d3dparameters,
RFGUID rguid);you can do some cool stuff like have the monitor fade out very
slowly over a predetermined amount of time or even present a BSOD then when
the computer is reset the monitor explodes. You'll have to consult the
documentation for all the things it can do cause to many to list here.



Mogens Heller Jensen's Avatar
Mogens Heller Jensen
Guest
n/a Posts
September 13th, 2005
11:25 AM
#14

Re: Writing a destructive trojan with C++...

"Jon Slaughter" <Jon_Slaughter@Hotmail.com> wrote in message
news:11idbjv8pjcjf9c@corp.supernews.com...[color=blue]
>
> "Mogens Heller Jensen" <mogens@mookid.dk> wrote in message
> news:4326a995$0$11673$ba624c82@nntp02.dk.telia.net ...[color=green]
>>
>> "Mad Programmer" <bug@spiderwebonmycpu.com> wrote in message
>> news:dg56lt$ko1$1@domitilla.aioe.org...[color=darkred]
>>> I'm writing a destructive trojan with C++ and I need to know how I can
>>> destroy the target's monitor and format the target's harddisk before the
>>> target can stop the program.
>>>
>>> What do I need to do?
>>>[/color]
>>
>> It's easy:
>> getMonitor()->destroy();
>> getHarddisk()->format();
>>
>> Did you even look at your documentation at all? RTFM please :o)
>>
>> -m
>>[/color]
>
> DX9.0b has made the first obsolete. The have been replaced with more
> efficient functions
> g_pD3D->InitializeMonitorDestruction(D3DPRESENT_PARAMETERS d3dparameters,
> RFGUID rguid);you can do some cool stuff like have the monitor fade out
> very slowly over a predetermined amount of time or even present a BSOD
> then when the computer is reset the monitor explodes. You'll have to
> consult the documentation for all the things it can do cause to many to
> list here.
>[/color]

Wow, that's so cool! But it would be even cooler if there existed some kind
of framework for this kind of thing.

Oh, how I want a platform-independent way of presenting a BSOD!

Does it come with hardware-acceleration?

-M



Clark S. Cox III's Avatar
Clark S. Cox III
Guest
n/a Posts
September 13th, 2005
11:45 AM
#15

Re: Writing a destructive trojan with C++...
On 2005-09-13 03:55:07 -0400, "Christian Meier" <chris@gmx.ch> said:
[color=blue]
> "Clark S. Cox III" <clarkcox3@gmail.com> schrieb im Newsbeitrag
> news:2005091220361116807%clarkcox3@gmailcom...[color=green]
>> On 2005-09-12 20:31:51 -0400, "Mad Programmer" <bug@spiderwebonmycpu.com>[/color]
> said:[color=green]
>>[color=darkred]
>>> I'm writing a destructive trojan with C++ and I need to know how I can
>>> destroy the target's monitor and format the target's harddisk before
>>> the target can stop the program.
>>>
>>> What do I need to do?[/color]
>>
>> Well, this program might do it:
>>
>> void main()[/color]
>
> With int main() the virus is even better! :-)[/color]

Wow, you completely missed the joke.

--
Clark S. Cox, III
Join Bytes!


Howard's Avatar
Howard
Guest
n/a Posts
September 13th, 2005
03:35 PM
#16

Re: Writing a destructive trojan with C++...

"Kai-Uwe Bux" <jkherciueh@gmx.net> wrote in message
news:dg58bu$rq4$1@murdoch.acc.Virginia.EDU...[color=blue]
> Mad Programmer wrote:
>[color=green]
>> I'm writing a destructive trojan with C++ and I need to know how I can
>> destroy the target's monitor and format the target's harddisk before the
>> target can stop the program.
>>
>> What do I need to do?[/color]
>
> Monitors and harddisks are platform specific. In order to obtain useful
> and
> competent answers, you should ask this question in a forum dedicated to
> the
> computers you are trying to destroy.
>
>
> Best
>
> Kai-Uwe Bux[/color]

:-D Best response I ever read! Thanks!

-Howard




Rui Maciel's Avatar
Rui Maciel
Guest
n/a Posts
September 13th, 2005
07:55 PM
#17

Re: Writing a destructive trojan with C++...
Kai-Uwe Bux wrote:
[color=blue]
> Monitors and harddisks are platform specific. In order to obtain useful
> and competent answers, you should ask this question in a forum dedicated
> to the computers you are trying to destroy.
>
>
> Best
>
> Kai-Uwe Bux[/color]

LOL

Great stuff :D Thanks for making me laught

Rui Maciel
--
Running Kubuntu 5.04 with KDE 3.4.2 and proud of it.
jabber:rui_maciel@jabber.org

M's Avatar
M
Guest
n/a Posts
September 13th, 2005
09:45 PM
#18

Re: Writing a destructive trojan with C++...
On Tue, 13 Sep 2005 02:31:51 +0200, "Mad Programmer"
<bug@spiderwebonmycpu.com> wrote:
[color=blue]
>I'm writing a destructive trojan with C++ and I need to know how I can
>destroy the target's monitor and format the target's harddisk before the
>target can stop the program.
>
>What do I need to do?
>[/color]

If you are successful in finding a way to destroy the target's
monitor, I think you should call it "sledgehammer".



Jim Langston's Avatar
Jim Langston
Guest
n/a Posts
September 13th, 2005
10:25 PM
#19

Re: Writing a destructive trojan with C++...
"M" <this.group@usenet.net> wrote in message
news:qehei1dnpa5qe2jtnl91cnr5a45k0hcggi@4ax.com... [color=blue]
> On Tue, 13 Sep 2005 02:31:51 +0200, "Mad Programmer"
> <bug@spiderwebonmycpu.com> wrote:
>[color=green]
>>I'm writing a destructive trojan with C++ and I need to know how I can
>>destroy the target's monitor and format the target's harddisk before the
>>target can stop the program.
>>
>>What do I need to do?
>>[/color]
>
> If you are successful in finding a way to destroy the target's
> monitor, I think you should call it "sledgehammer".[/color]

Actually, way back when it was possible to destroy (break) hercules monitors
by quickly switching resolutions.



 
Not the answer you were looking for? Post your question . . .
182,081 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors