Friday, February 24, 2012

Create a hidden account or hide an existing in Win XP


If you want to hide your account from the Windows Log-on screen or create a new fresh invisible one just do the following:
1. Go to Control Panel and create a NEW_ACCOUNT inside User Accounts
Create a hidden account
2. Go to START->RUN–type in regedit–
3. Carefully go to the following destination;                                                             HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\WinLogon\SpecialAccounts\UserList
4. Here create a new DWORD by right clicking and name it as you did your NEW_ACCOUNT. If you want to hide an existing one, just type in its name.
Create a hidden account
5. The value of the DWORD has to be zero if you want it to be hidden. If you want it to show, just change the value to 1.
6. Now log off and see that your account is not in the logon screen.
7. To logon to your hidden account press CTRL+ALT+Delete twice. Here type in your NEW_ACCOUNT and that’s it
Read More

How to create a locked folder in Win XP


To create a locked folder we need to create two batch files. The first batchfile will “lock” the folder (actually it will turn the ordinary folder into a link to the Control Panel using an address code), and the other one  will “unlock” it. When someone tries to access that folder, he will be redirect to Control Panel(we can in fact type in any address code so that the user could be redirected to wherever we want). You should hide these batch files, especially the second one.
1. Create a folder, that you will use to store your protected data. For this example, I created a folder called “locked”, and put that folder in My Documents.
create a locked folder
2. Open Notepad and copy this code ren “FOLDERNAME” “FOLDERNAME“.{21EC2020-3AEA-1069-A2DD-08002B30309D}
“FOLDERNAME” change in to name of your folder, in this example “FOLDERNAME” is locked.My code looks like this ren locked.{21EC2020-3AEA-1069-A2DD-08002B30309D} locked
Save notepad file like lock.bat in My Documents. In option Save as Type, select All Files
create a locked folder
3. Open another notepad file and copy this code ren “FOLDERNAME“.{21EC2020-3AEA-1069-A2DD-08002B30309D} “FOLDERNAME” , Save file as in Step 2, just choose a different filename , like unlock.bat
After this we can see in My Documents something like this:create a locked folder
If we open (double click) lock.bat our folder will turn into a link to Control Panel, and the files will not be visible. until we use unlock.bat
create a locked folder
Here is video guide
Read More

Hide And Secure Your Folder Using Batch Script


Batch script helps to combine the DOS commands and execute it in complex and well arranged mode. Any command that can be executed or typed in DOS(Command prompt) window can be executed and programmed using batch script. In today’s post I am going to utilize the loophole of windows.
Windows unknowingly supplies the following virtual folders:
Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
Dial-Up Networking.{992CFFA0-F557-101A-88EC-00DD010CCC48}
Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}
Inbox.{00020D75-0000-0000-C000-000000000046}
My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}
Network Neighborhood.{208D2C60-3AEA-1069-A2D7-08002B30309D}
Desktop.{00021400-0000-0000-C000-000000000046}
Briefcase.{85BBD920-42A0-1069-A2E4-08002B30309D}
Fonts.{BD84B380-8CA2-1069-AB1D-08000948F534}
Whenever you rename your folder with any of the above name and supply hidden and system folder attributes to it, it becomes completely invisible and inaccessible also in index-able by windows search.
For example rename NEW FOLDER to “’Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” (without quotes).
Now open Command prompt and open the currently renamed New Folder. Set the attributes to +h +s +i
H=Hidden
S=System File
I=Un-indexed
To set attributes input the following syntax (see the image).
There you go, your folder is invisible now and inaccessible.
The above tutorial was just for demonstration. Now I am going to show you how you can arrange it in batch file so that you show and hide the folder just by double clicking a secret icon.
Follow and learn this step by step tutorial.
NOTE:  Just copying and pasting codes won’t make you a good batch scripter, you’ll have to learn and modify the techniques used in them.
First of all let’s plan for the script. What the script must do is check if folder named “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” exists or not. If it exists then we’ll have to direct our program such a way that it will prompt to show or hide the folder. Otherwise if the folder doesn’t exists let the program create new folder with any name (say “Secured”)
The above idea can be formulated in this way:
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST secured goto MDLOCKER
If there is no matching folder then as soon as the program is executed secured folder will be created. Where MDLOCKER is the separate case (block of code) to create new folder named secured. This time the folder named secured will be visible to everyone. The program will instantly close as creating new folder won’t take much time.
Now you can copy your secret files and documents in the folder named Secured.
After copying we’ll have to hide it and make it invisible. To do so, we’ll rename secured folder to Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} and supply the attributes to it. This is the main aim of this script.
ren secured "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s +r +i "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
The above code is nothing but our friendly DOS command. When you execute it, you know what it will do.
Now we’ll have to code something to make it visible again. We can do this by reversing the above script. To remove attributes from the folder “-“ is used instead of “+”. And the Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} folder will be renamed to secured again.
attrib -i  -r -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" secured</code
>
Now the folder it visible and accessible again.
Now you can make this system work with password. Especially the part when user wants to show the folder.
echo put in the key to Unlock the lock
set/p "pass=>password"
if NOT %pass%==123456 goto FAIL
The above block of code will create the input region for password. The second line confirms the password entry. If password is incorrect program will be directed to condition called FAIL. (You must define condition FAIL separately telling what should it do. You can either exit the program or prompt for second chance to input password.). If password is correct then proceeding codes will be executed.
You can see the properly arranged codes below:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST secured goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the secured(Y/S)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren secured "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s +r +i "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo secured locked
goto End
:UNLOCK
echo put in the key to Unlock the lock
set/p "pass=>password"
if NOT %pass%==123456 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" secured
echo secured Unlocked
goto End
:FAIL
echo Invalid keyword
goto UNLOCK
:MDLOCKER
md Secured
echo lock unlocked
goto End
:End
Copy it to notepad and save it in *.bat format.
NOTE: If you are directly copying the above code then be careful with the quotation marks. Replace all the “ and “ quotes to ".
Hope this tutorial was helpful
Read More

Bash Scripting | Beginner Tutorial


In this beginner tutorial I will show you some of the basics of shell script programming, and hopefully to introduce some of the possibilities of simple but powerful programming available under the shell.
Bash scripting is very useful, with simple commands you can do a lot, for example: create folder with name of current date , count lines, find words in files, search files and many more.
1)MKDIR
- mkdir dirname is bash command for creating folders
-dirname is the name of the directory that you wish to create
Example 1:
$ mkdir /home/ivan/hackspc.com/folder1
$ mkdir /home/ivan/hackspc.com/folder2
$ mkdir /home/ivan/hackspc.com/folder3
Example 2: Create folder with name of current date
mkdir $(date “+%d.%m.%Y”)
Example 3: Create folder with name of current day
$ mkdir $(date “+%A”)
Example 4: Create folders using brace expansion
$ mkdir /home/ivan/hackspc.com/{1..10}
$ mkdir /home/ivan/hackspc.com/project{1..10}
$ mkdir /home/ivan/hackspc.com/web{tools,masters,deseign}
Example 5: make all parent directories along with their children in a single command.
$ mkdir -p programming/BASHscripting/tutorials/StepByStep
$ mkdir -p programming/BASHscripting/tutorials/StepByStep is same as
~ $ mkdir programming
~ $ cd programming
~/programming $ mkdir BASHscripting
~/programming $ cd BASHscripting
~/programming/BASHscripting $ mkdir tutorials
~/programming/BASHscripting $ cd tutorials
~/programming/BASHscripting/tutorials/ $ mkdir StepByStep
~/programming/BASHscripting/tutorials/ $ cd StepByStep
As you can see above, mkdir with -p option can save you a lot of time an efforts.
2)WC (word count)
- wc displays a count of lines, words, and characters in a file.
-wc [options] [file]
-options:-c Count charachters
-l Count lines
-w Count words
- without options count Lines Words Characters
-in examples we’ll use file hackspc.txt as show below
Example 1: Count lines in hackspc.txt
$ wc -l hackspc.txt
Output:
Example 2: Count words in hackspc.txt
$ wc -w hackspc.txt
Output:
Example 3: Count characters in hackspc.txt
$ wc -c hackspc.txt
Output:
Example 4: Count lines, words, characters
$ wc hackspc.txt
Example 5: count number of lines, words, characters from hackspc.txt and save it into filecounting.txt
$ wc hackspc.txt>filecounting.txt
Output: filecounting.txt
3)GREP
-grep command is one of the easiest methods of locating text contained within a file
-grep [options] PATTERN [FILE...]
Options:
-v invert the sense of matching, to select non-matching lines
-i ignore case distinctions in both the PATTERN and the input files
-c Suppress normal output; instead print a count of matching lines for each input file
-E Interpret PATTERN as an extended regular expression
-q do not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected.
Let’s look .txt file called hackspc.txt
Example 1 : find word hack in file hackspc.txt,
$ grep hack hackspc.txt
Output will be all lines that contains word hack

This command is case sensitive, so hack isn’t same as Hack
Example 2: find lines that don’t contain word hack
$ grep hack hackspc.txt
Output:
Example 3 : find word hack in file hackspc.txt, command isn’t case sensitive
$ grep -i hack hackspc.txt
Output will be all lines that contains word hack, Hack, HACK,hAcK,HaCK…
Example 4 : find lines that contains words that end with g
$ grep -E “[a-z]+g” hackspc.txt
Output:
In this example I used regular expression , [a-z] all combinations of charachters a,b,c,d,e…z ,
+ repeat at least one or more. Regular expressions are very useful and complicated. In this beginner tutorial I will not write about them.
4)FIND
- Linux / Unix and their variants have several different ways of locating files find, locate, wheris. I mostly use find command. It offer a lot options and it can easly search for files that meet a desired criteria.
- find [option] [directory] [conditions]
-conditions: -name true if pattern matches the current file name
-type -d (find folders) , -f (find files)
-size
-mtime n True if the file’s data was modified n days ago.
-regex regular expression
Example 1: Search for any file named hackspc.txt in the directory home/ivan/hackspc.com/ and any subdirectory.
$ find /home/ivan/hackspc.com -name hackspc.txt
Output:
Example 2: search for any file that is larger then 2k
$ find /home/ivan/hackspc.com -name ‘*’ -size +2k
Output:
Example 3: search folders
$ find /home/ivan/hackspc.com -type d
Output:
Example 4: Search .txt files that contains only 4 digits (dddd)
$ find /home/ivan/hackspc.com -regex “.*/[0-9][0-9][0-9][0-9]\.txt”
Output:
5)IF, ECHO, VARIABLES
Example 1: if variable a equal to 5 then print five if not then write not five
$ if [ "$a" = 5 ]; then echo “five”; else echo “not five”; fi
Output :
Output :
Example 2: If you find file called hackspc.txt in diretcory /home/ivan/hackspc.com/ then print “I found file called hackspc.txt” if not then print “File Not Found”
$ if find /home/ivan/hackspc.com -name hackspc.txt
lled hackspc.txt”; else echo “File Not Found”; fi
Read More

How To Use Win7 Without Activation How To Use Win7 Without Activation


How To Use Win7 Without Activation

How To Use Win7 Without Activation




Don’t have money to buy orginal windows 7 with acivation key? Here is simple windows 7 trick that increases the trial preriod from 30 days to 120 days. Before you try this trick you should check out my other blog Windows 7 Activation Key that offers free windows 7 activation keys. It may work for you.
1)Open Command prompt (cmd) , start , in search box type cmd
2) Right click on cmd and run as administrator
3)Type following command in cmd , slmgr -rearm and press enter
That is it , you can use this commend for 3 times, so that you will get 120 days of trial period(30+30+30+30=120)

Read More