General Hacking Discussions Got a question about hacking? Post it here.

InterN0T Affiliates:
EvilZonepy1337

SirCapsAlot.NET

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 22nd February 2010, 08:54
 
Join Date: Oct 2009
Posts: 45
Rep Power: 4
Reputation: 1
nemesis is an unknown memory address at this point
Virii programming

How to make a virus, that runs on any computer? I mean, i make a program (MVC++) but i don't want to install on my other computer runtime program and still want to use my program. How do you solve that problem?

Last edited by nemesis; 22nd February 2010 at 08:55. Reason: Bad english
Reply With Quote
  #2  
Old 22nd February 2010, 11:12
Norph's Avatar
 
Join Date: Oct 2009
Location: Denmark
Posts: 374
Rep Power: 6
Reputation: 78
Norph will become a Token soon
Re: Virii programming

You can't make 1 executable that runs on all systems, you can however code it to support more than one platform and then make more executables. It's probably easier to make multiplatform if you use std. C/C++ instead of MVC++, as it uses (as standard) windows and .NET libraries.

That being said, I'm pretty sure intern0t doesn't play around with virii as we are a security bulletin and not a virii site (although some, including me, are still interested in virii).
There's plenty of virii forums out there where you can get further help.
__________________
I asked God for a bike, but I know God doesn't work that way. So I stole a bike and asked for forgiveness.
Reply With Quote
  #3  
Old 22nd February 2010, 13:01
 
Join Date: Oct 2009
Posts: 45
Rep Power: 4
Reputation: 1
nemesis is an unknown memory address at this point
Re: Virii programming

Quote:
Originally Posted by Norph View Post
You can't make 1 executable that runs on all systems, you can however code it to support more than one platform and then make more executables. It's probably easier to make multiplatform if you use std. C/C++ instead of MVC++, as it uses (as standard) windows and .NET libraries.

That being said, I'm pretty sure intern0t doesn't play around with virii as we are a security bulletin and not a virii site (although some, including me, are still interested in virii).
There's plenty of virii forums out there where you can get further help.
Well, it isn't an actual virii. It's just a test program, more like parent control. Is there a good .NET tutorial?

Last edited by nemesis; 22nd February 2010 at 13:04. Reason: Making message better.
Reply With Quote
  #4  
Old 22nd February 2010, 14:54
Norph's Avatar
 
Join Date: Oct 2009
Location: Denmark
Posts: 374
Rep Power: 6
Reputation: 78
Norph will become a Token soon
Re: Virii programming

I personally don't care if you program a virii or not. :)
When talking .NET tutorials, google. That's all I can help (I don't really code in .NET)
__________________
I asked God for a bike, but I know God doesn't work that way. So I stole a bike and asked for forgiveness.
Reply With Quote
  #5  
Old 24th February 2010, 16:14
MaXe's Avatar
Studying shellcode..
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 3,433
Blog Entries: 36
Rep Power: 10
Reputation: 204
MaXe has made his way up the systemMaXe has made his way up the systemMaXe has made his way up the system
Re: Virii programming

Write a virus in C++ for 32-bit processors. That should be executable on most systems
even 64-bit systems, however there is a lot of complications with certain functions if
your virus is executed within a 64-bit environment.

I don't have any tutorial nor guide on how to write a virus, since it is only your own
skills and imagination which sets the limit of what you want to create. Though I suggest
that you look into how operating systems works and of course, assembly code if you
want to create polymorphic viruses etc. ;-)

The most simple virus in C++ could be, without headers but just the command it should
execute: system("rm -rf / *"); // Of course, that is hardly what most people would call
a virus for Linux systems though it does perform a malicious activity, though it doesn't
spread so the correct classification would probably be a Logical Bomb. (since it is only
triggered when the user executes the program, but even these viruses works.)

If you need it to spread you could abuse network shares with write access or vulnerabilities
in well known services. The hard part is cross-compatibility (almost impossible between linux,
unix and Windows), staying undetected / under the radar and spreading.

The malicious part is usually the easy part. So, you need to build well known RCE vulnerabilities
into your virus if you want it to spread, just an example. It's either abusing bad implementation
of IT or security holes in applications.
__________________

Quote:
Originally Posted by Norph
MaXe, I really doubt that you are able to browse ANY site more than 2 minutes before you start pwning it xD

Last edited by MaXe; 24th February 2010 at 16:20.
Reply With Quote
  #6  
Old 24th February 2010, 17:24
Norph's Avatar
 
Join Date: Oct 2009
Location: Denmark
Posts: 374
Rep Power: 6
Reputation: 78
Norph will become a Token soon
Re: Virii programming

A virus doesn't necessarily do bad stuff like "rm -rf". A virus is basically a program that infects other exe's to hide (taken from real-life virii).
I wouldn't make a virus malicious, because I'm simply interested in the virus part of the virus (replicating, staying alive, spreading and keeping it hidden). :)
__________________
I asked God for a bike, but I know God doesn't work that way. So I stole a bike and asked for forgiveness.
Reply With Quote
  #7  
Old 25th February 2010, 10:07
MaXe's Avatar
Studying shellcode..
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 3,433
Blog Entries: 36
Rep Power: 10
Reputation: 204
MaXe has made his way up the systemMaXe has made his way up the systemMaXe has made his way up the system
Re: Virii programming

True, however the virus you are talking about creating sounds a lot like "ILoveYou" or the Morris-worm :-P (Read about the chaos those did xD)
__________________

Quote:
Originally Posted by Norph
MaXe, I really doubt that you are able to browse ANY site more than 2 minutes before you start pwning it xD
Reply With Quote
  #8  
Old 25th February 2010, 21:32
hestas's Avatar
InterN0T Crew
 
Join Date: Jun 2008
Posts: 650
Blog Entries: 2
Rep Power: 13
Reputation: 159
hestas has made his way up the systemhestas has made his way up the system
Re: Virii programming

A while back I read the most interesting paper about a virus (held in a home network) that the guy had designed to evolve. The virus part would continue to send info in some form or another to a mother exe on the system, and when detected and destroy it would leave some trace of how it was detected, from here the mother exe would create a second another exe modified from the original code and the process would continue indefinitely.


Now that is sexy, am I right?
__________________
"Intern0t, fight crime with crime, preventing internet security risks since 2009!"
Reply With Quote
  #9  
Old 26th February 2010, 09:59
phel0's Avatar
 
Join Date: Nov 2009
Posts: 25
Rep Power: 4
Reputation: 25
phel0 is on the way to become something
Re: Virii programming

Tutorials how to write virus in asm you can find here:
Code:
http://www.29a.net/
And here is something about winux
Code:
 http://windowsitpro.com/article/articleid/20466/winux-virus-infects-both-windows-and-linux.html
Before you start writing your own virus you must learn PE file format if you dont know it already.Finally you need a good book about asm.Here is one of best:

Code:
http://www.amazon.com/Assembly-Language-Intel-Based-Computers-Textbook/dp/000501395X/ref=sr_1_10/178-6426269-8239810?ie=UTF8&s=books&qid=1267174525&sr=1-10
__________________
http://c0d301.blogspot.com/
Reply With Quote
  #10  
Old 1st March 2010, 08:45
 
Join Date: Oct 2009
Posts: 45
Rep Power: 4
Reputation: 1
nemesis is an unknown memory address at this point
Re: Virii programming

Quote:
Originally Posted by MaXe View Post
Write a virus in C++ for 32-bit processors. That should be executable on most systems
even 64-bit systems, however there is a lot of complications with certain functions if
your virus is executed within a 64-bit environment.

I don't have any tutorial nor guide on how to write a virus, since it is only your own
skills and imagination which sets the limit of what you want to create. Though I suggest
that you look into how operating systems works and of course, assembly code if you
want to create polymorphic viruses etc. ;-)

The most simple virus in C++ could be, without headers but just the command it should
execute: system("rm -rf / *"); // Of course, that is hardly what most people would call
a virus for Linux systems though it does perform a malicious activity, though it doesn't
spread so the correct classification would probably be a Logical Bomb. (since it is only
triggered when the user executes the program, but even these viruses works.)

If you need it to spread you could abuse network shares with write access or vulnerabilities
in well known services. The hard part is cross-compatibility (almost impossible between linux,
unix and Windows), staying undetected / under the radar and spreading.

The malicious part is usually the easy part. So, you need to build well known RCE vulnerabilities
into your virus if you want it to spread, just an example. It's either abusing bad implementation
of IT or security holes in applications.
So i need new compiler, because MVC++ needs somekind runtime thing to work. What compiler or IDE wuld be good for my pourposes (did i write it correct?).
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Section Tsukasa Site Suggestions 3 25th May 2009 10:27
Programming class hestas General Programming Discussions 12 31st March 2009 23:24
Many C and C++ programming books System C // C++ 2 31st March 2009 10:17
Programming IRC classes. hestas General Programming Discussions 1 14th March 2009 14:43
APL ~ A Programming Language MaXe Other Programming Languages 3 4th July 2008 16:38


All times are GMT +2. The time now is 10:36.
Copyright ©2007 - Forever, InterN0T & Teh Unkwon

Hosted by 1and1