Wednesday, October 6, 2010

>> Run Registry Editor From Guest Account Even If It Is Blocked >> Learn To Create Your Own PHP Page Hit Counter

Run Registry Editor From Guest Account Even If It Is Blocked

Posted: 29 Jun 2010 12:38 PM PDT

Registry editor is well known registration directory where windows keep all the records of their setting files. Keeping it inaccessible from other users is extremely necessary in the point of view of security of data and information. Wherever you are, public cyber cafes, Library, College labs, etc you’ll see that you cannot access the heart utilities like Registry Editor.

The Regedit.exe is only the executable file to list up registries in systematically. You can arrange the registry’s easily by your own if you are a good programmer. But who is talking about programming here? I am talking about the program which is alternative for registry editor, RegAlyzer. This works exactly similar to Windows’ registry editor, only the difference is it’s name and it’s third-party.

This tool might be great help if you want to have instant hack to public computers and networks.


You can easily Download RegAlyzer from here.

Hope you liked this info.

Learn To Create Your Own PHP Page Hit Counter

Posted: 29 Jun 2010 06:32 AM PDT

Today, I will show you how you can use php’s file handling functions to create a web site page visit counter.
The script that we are going to create will open a file when called and read the value of the file then increment the value by one and then write that value to the file. We’re going to put the actual code inside a function so that way you can call the script on your page with only one line of code.

Now let’s begin. In order to open a text file in php, we need to call the function fopen(). This will open the file, if it exists, and return a file pointer. Instead of using the file name, you pass a file pointer to functions. Here is the beginning of our code:

In the above script, we declared a function by using the keyword function followed by the name of our function. Next, we used fopen() passing the name of a file in the same directory as the script where the page visits data will be stored as the first parameter; we then passed the second parameter r+, this tells the server that we want to open the hit.txt file for reading and writing. For more details about text file handling parameters, please review my previous tutorial about PHP and txt file interaction.
We must create a blank text file named as hit.txt in the directory where the current script is situated.
fopen() can take one more parameter: 1. If you pass the third parameter as 1, the file you passed the name of in the first parameter will be searched for in the include path. We store the result of fopen() in a variable named $file_pointer. If the file does not exist, fopen() will return false. Therefore we’ll need hit.txt initially.

if ($file_pointer == false)
{
return "Error:File not found or could not be opened!";
exit;
}

Now since file is opened, we’ll need to read the file, to do so, we’ll use function fread().

$hit= fread($file_pointer, filesize("hit.txt"));

The syntax for fread is (file open, filesize). To get the file open we’ll be using $file_pointer string and to get the size of the file we use the filesize(“filename.txt”) function. Now the contents of the file are stored in a variable with the name $hit. We will use the trim() function to strip any whitespace from the beginning and ending of the string.

$hit= trim($hit);

Trim will remove all the blank white spaces if exists, this will be helpful to maintain the file size and unexpected results. Now we have read the contents of the file into a variable and trimed up the variable, we will increase it’s value by 1 per hit, and write it back into the file. Before we write to the file, we need to go back to the begining of the file so we can write over the current count. We do this by using fseek().

$his++;
fseek($file_pointer, 0);
$result= fwrite($file_pointer, $hit);
if ($result == false)
{
return "Error: could unable to write file!";
exit;
}
else {
return $hit;
}

We use the increment operator (++) to add 1 to the hit count, then we use fwrite() function to write to the file. We then pass the file pointer and the hit count to fwrite(). If it returns false, the it will show error message. Lastly, we return the value of $hit, which holds the hit count.
Now we’ll need to close the file after reading and writing it. To do that we use fclose() and pass it the file pointer, and also we’ll add some error checking.

$close= fclose($file_pointer);
if ($close == false)
{
return "Error: could not close the file!";
exit;
}

And that’s all, we’re done! Here is the complete script for a hit counter:

function count_hit()

{

$file_pointer= fopen("hits.txt", "r+");

if ($file_pointer == false)

{

return "Error: could not open the file! It may not exist!";

exit;

}

$hits= fread($file_pointer, filesize("hits.txt"));

$hits= trim($hits);

$hits++;

fseek($file_pointer, 0);

$result= fwrite($file_pointer, $hits);

if ($result == false)

{

return "Error: could not write to the file!";

exit;

}

else {

return $hits;

}

$close= fclose($file_pointer);

if ($close == false)

{

echo "Error: could not close the file!";

exit;

}

}

?>

Now to display the hit on a webpage by adding following code snippet:

< ? php count_hit(); ?>

Hope you like the post :)


Tuesday, October 5, 2010

How To Use USB Flash Drives As A RAM

Posted: 27 Jun 2010 11:48 AM PDT

You might be probably searching for such software that can convert your 4 GB USB flash drive to usable RAM. I am going to guide you through the steps and tools that will be using your USB storage as a RAM. Though windows supports virtual paging file which uses your harddisk as a temporary RAM. But if you are working on notebook with lower RAM then Virtual RAM will boost up the harddisk usage. Finally dropping your battery life.

Therefore, using your USB storage device as RAM can be one of the best alternative for your real RAM.

First of all, you’ll need to download this file, Eboostr (Trial Version) or Eboostr (Full Version from torrent ).

Now you’ve one of the above file downloaded to your computer. Install it with default settings.

After installation, it is compulsary to reboot your computer.

Insert your USB flash drive first then open eBoostr from start menu.

In the program window, go to Edit > Add new cache device

You’ll see your USB disk at the left screen. Select it and click ok.

Then start caching the memory in your USB drive.

Alternatively, you can also click on Autoconfiguration button. Program will diagnose your system. After the diagnose is ended, click next. Choose all the recommended option to increase your system performance and click Next.

Now program will start to cache your memory. You may feel some difference in your windows performance.

This software requires USB device more than 256 MB.

It stores the current memory as a cache in your USB device. Eboostr stores cache of your frequently used applications on your USB Flash drive. It will help to reduce the Hard Disk access which is comparatively slower as compared to access in chips. Since hard disk requiers motor to rotate the disks, it will also consume a lot of your battery.

This is guest post from suraj kayastha, where he blogs about technology at You Can Hack Blog and Hacktutors.

Sunday, October 3, 2010

How To Use USB Flash Drives As A RAM

Posted: 27 Jun 2010 11:48 AM PDT

You might be probably searching for such software that can convert your 4 GB USB flash drive to usable RAM. I am going to guide you through the steps and tools that will be using your USB storage as a RAM. Though windows supports virtual paging file which uses your harddisk as a temporary RAM. But if you are working on notebook with lower RAM then Virtual RAM will boost up the harddisk usage. Finally dropping your battery life.

Therefore, using your USB storage device as RAM can be one of the best alternative for your real RAM.

First of all, you’ll need to download this file, Eboostr (Trial Version) or Eboostr (Full Version from torrent ).

Now you’ve one of the above file downloaded to your computer. Install it with default settings.

After installation, it is compulsary to reboot your computer.

Insert your USB flash drive first then open eBoostr from start menu.

In the program window, go to Edit > Add new cache device

You’ll see your USB disk at the left screen. Select it and click ok.

Then start caching the memory in your USB drive.

Alternatively, you can also click on Autoconfiguration button. Program will diagnose your system. After the diagnose is ended, click next. Choose all the recommended option to increase your system performance and click Next.

Now program will start to cache your memory. You may feel some difference in your windows performance.

This software requires USB device more than 256 MB.

It stores the current memory as a cache in your USB device. Eboostr stores cache of your frequently used applications on your USB Flash drive. It will help to reduce the Hard Disk access which is comparatively slower as compared to access in chips. Since hard disk requiers motor to rotate the disks, it will also consume a lot of your battery.

This is guest post from suraj kayastha, where he blogs about technology at You Can Hack Blog and Hacktutors.

Friday, October 1, 2010

How To Add An Option To Print All The Contents Of A Folder In XP

Posted: 24 Jun 2010 04:19 PM PDT

Once in many times, you may need to print whole files of the specific folder. Well if you need often to print number of files or you run a press media company then I am going to teach you how to print all the items in specific folder.

We’ll be adding new right click option to print the folder. Whenever you right click on any folder, this print option will be shown and whole folder files can be printed.

To do so you’ll need to create a batch file called Printdir.bat. Open Notepad and paste the following code:

@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

Save it as, “%windir%\printme.bat” (without the quotes).

Now go to Start > Control Panel> Folder Options. Click the File Types tab, and then click File Folder.

Click the Advanced button.

Click the New button.

In the Action box, type “Print this folder” (without the quotes). In Application used to perform action box, type “printme.bat” (without the quotes).

If you did right then you’ll see image similar to below:

Click on OK in all three dialogue boxes.

Now you need to edit the Registry to add the Print this folder shortcut in right click. Open Registry Editor by typing “regedit” (without quotes) in RUN box (Start> Run).

Navigate to HKEY_CLASSES_ROOT>Directory>shell.

In the right side of the window, right click on “default” and select Modify.

In Value Data, type “none” (without the quotes).IMG_F

Click OK and close the Registry Editor.

Now when you right click on any folder, you’ll see the option, Print this folder.

Selecting it will print the contents of the folder.

Hope this was helpful.

Tuesday, September 28, 2010

Solution For LAN Connection Between Windows XP And Windows 7

Posted: 22 Jun 2010 03:04 AM PDT

Many of you might have the problem sharing files and folders between Windows XP and Windows 7 OS. This is not so long tutorial but you can solve it just changing some values in your windows settings. By default Windows XP sets your Workgroup as MSHOME. While windows 7 feature WORKGROUP as your default workgroup you can easily get rid of this problem.

To connect Windows 7 OS with Windows XP, change the workgroup name of either one of the OS. I recommend you changing the workgroup name of Windows XP from MSHOME to WORKGROUP.

To change Workgroup in Windows XP, right click on my computer and click on properties.

In Computer name tab, check the workgroup. By default it is MSHOME. (In my case I named it WORKGROUP).

To change it, click on Change button.

A new window will pop up. There you can define your own workgroup name.

Now both of your OSes have same workgroup name.

Now in windows 7 PC, go to control panel > Network and Sharing Center.

At the left sidebar, click on Change advanced sharing settings.

In new window, Turn on Network discovery, File and printer sharing and Public folder sharing by clicking on the respective radio button.

Under File sharing connections, Click on Files sharing for devices that use 40- or 56- bit encryption. (Windows XP may not support 128 bit encryption) .

And turn of Password protected sharing.

Do the same for Public and Home or Network connection

Now you may run Home Network wizard (Control Panel>Setup Home Network) in windows XP. Then there you’ll have easy LAN connection. Make sure that workgroup name during wizard is setup to WORKGROUP not MSHOME

Now you can easily access files and folder and even internet and printers from network.

You can see the files in network.

Saturday, September 25, 2010

Open Command Prompt From Desired Folder In Windows XP

Posted: 21 Jun 2010 01:12 AM PDT

If you are using Windows 7 or Vista, you might have noticed Open command window here. If you don’t know about it then hold down SHIFT button and right click on any folder, there you’ll see Open Command Window here. Clicking that link will instantly load command prompt window inside the folder that you’ve right clicked on.

It was for Windows Vista and later versions. Lower version of windows like windows 2000 and windows is not loaded up with such options. However you can manually tweak the registry values to get it in your windows XP.

In this tutorial I am going to teach you same.

Open Notepad by going to Run Command (Windows + R OR Start> Run), type “notepad”(without quotes).

Copy and paste the following code:

REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Open Command from here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd /k \"cd %L\""

Now save it on desktop as “command.reg” (with quotes (see the image below).

Now you’ll have following shortcut icon.

Double click to open it. It will ask to add information in registry or not.

Click YES.

Again it will notify that registry has been modified. Click OK

Now try right clicking on any folder, you’ll see Open Command from here. Click it.

You’ll notice that command prompt windows load up in the directory that you’ve right clicked on.

Wasn’t it helpful? Subscribe us for more interesting articles.

Know How Long You Have Been Running Your Computer

Posted: 20 Jun 2010 01:06 AM PDT

You might have never noticed your wastage of time when you are using computer, have you? You’ll never notice that you took 1 hour completely just to send your CV documents via mail to an organization. And there are also not such active and easily accessible tools to notify the time interval you’ve been using your computer since the windows startup.

However with Windows 7, you have this feature easily accessible in task manager. To see the length of time open up the task manager window.

You can either open task manager window by pressing CTRL+ALT+DELETE and clicking on start task manager or by just going to RUN command and typing “taskmgr” (without quotes).

Go to the Performance tab and se the uptime timer. This is where you’ll see how long have you been online in your windows.

Besides this, there are also many third-party tools which help you to see the time period being online in your computer.

You got your up time of your desktop. But, how to know the time of your internet connection?

You can easily do this by following the steps below:

In the control panel open Network Connections. Identify the adapter which is actually connecting to the internet gateway and open it.

In my case it was Local Area Connection.

After you open it you’ll see the duration.

This is the time that you’ve been connecting to the internet.

Hope this was informative.

This is guest post by author of You Can Hack Blog and Hacktutors blog.