Ritesh’s Technical Blog

Archive for the ‘scripting’ Category

save the below code as note.vbs and see wat hpns

it will not harm u

Set wshshell = wscript.CreateObject(“WScript.Shell”)
Wshshell.run “Notepad”
wscript.sleep 400
wshshell.sendkeys “H”
wscript.sleep 100
wshshell.sendkeys “i”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 200
wshshell.sendkeys “I”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “m”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “R”
wscript.sleep 100
wshshell.sendkeys “i”
wscript.sleep 100
wshshell.sendkeys “t”
wscript.sleep 100
wshshell.sendkeys “e”
wscript.sleep 100
wshshell.sendkeys “s”
wscript.sleep 100
wshshell.sendkeys “h”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “K”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “w”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “d”
wscript.sleep 100
wshshell.sendkeys “k”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “r”

save the following code as caps.vbs

and it will make your caps and numlock LED’s blink regulary

how to stop : go to taskmanger and delete wscript

Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
wshshell.sendkeys “{NUMLOCK}”
loop

I have created a program in C++ that will lock the folder here is the coding for
it
#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 NAME CRACKER”);
cprintf(“nn
Developed by: RITESH KAWAKDAR”);
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 : “;
}

download or view pdf files for some more tweks

More than 100 registry TIPS n TRICKS

Do you want to protest your system from unauthorized users who deletes your important files or from those who cut copy paste your files from 1 hard disk/folder to other

so here is the way to stop them

just download the following exe file and keep it in startup folder so that it may get start whenever you start your computer

http://rapidshare.com/files/144653342/Stop_Cut_Copy_Paste.exe

and now for those geeks who even don't want lookingcut/copy/delete
items in the right click context menu here is the way

FOR REMOVING CUT/COPY/PASTE/DELETE OPTION FROM RIGHT CLICK CONTEXT MENU
open shell32.dll file using resource hacker
go to menu 210
here you will find entry similar to this

210 MENUEX
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "", 0, MFT_STRING, MFS_ENABLED, 0
{
	MENUITEM "Cu&t", 24, MFT_STRING, MFS_ENABLED
	MENUITEM "&Copy", 25, MFT_STRING, MFS_ENABLED
	MENUITEM "&Paste", 26, MFT_STRING, MFS_ENABLED
	MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
	MENUITEM "Create &Shortcut", 16, MFT_STRING, MFS_ENABLED
	MENUITEM "&Delete", 17, MFT_STRING, MFS_ENABLED
	MENUITEM "Rena&me", 18, MFT_STRING, MFS_ENABLED
	MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
}
}

now delete the following lines from the code
	MENUITEM "Cu&t", 24, MFT_STRING, MFS_ENABLED
	MENUITEM "&Copy", 25, MFT_STRING, MFS_ENABLED
	MENUITEM "&Paste", 26, MFT_STRING, MFS_ENABLED

after that press on compile so your new code would look like the below one

210 MENUEX
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "", 0, MFT_STRING, MFS_ENABLED, 0
{
	MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
	MENUITEM "Create &Shortcut", 16, MFT_STRING, MFS_ENABLED
	MENUITEM "Rena&me", 18, MFT_STRING, MFS_ENABLED
	MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED
}
}

 Read the rest of this entry »

This is a small vbScript which will continiously eject your cd/dvd rom
Just copy paste the foll script as it is on notepad and save the file as “cdeject.vbs”

cdeject.vbs
———————————————————————————
do
Set oWMP=CreateObject(“WMPlayer.OCX.7”)
Set colCDROMs=oWMP.cdromCollection
if colCDROMs.Count >=1 then
For i=0 to colCDROMs.Count-1
colCDROMs.Item(i).Eject
Next ‘cdrom
End if
loop
———————————————————————————-

This post is for those geeks who wants to write their own viruses or some useful scripts which they can share with their friends. Writing scripts is not a big deal but the important thing is your craetivity for writing such scripts which are already their doesent’t make any difference so after reading this post try to do something unique coz uniqueness is the key to success.

To learn it you first need a programming mind. Have you remembered the virus that banned ORKUT ans YOUTUBE saying “The administrator has not written this so guess who has written this” This famous virus is written in autohotkey, it is really easy to understand autohotkey.

AutoHotkey is a free, open-source utility for Windows. With it, you can:

  • Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
  • Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.
  • Expand abbreviations as you type them. For example, typing “btw” can automatically produce “by the way”.
  • Create custom data-entry forms, user interfaces, and menu bars.
  • Remap keys and buttons on your keyboard, joystick, and mouse.
  • Respond to signals from hand-held remote controls via the WinLIRC client script.
  • Run existing AutoIt v2 scripts and enhance them with new capabilities.
  • Convert any script into an EXE file that can be run on computers that don’t have AutoHotkey installed.

These are just a few things that you can do with AUTOHOTKEY the no of thing you can do depends on your creativity. Autohotkey provides all the functions that you ever wants so just open your brain and just check this website to learn AUTOHOTKEY.


Archives

Blog Stats

  • 54,643 hits