Archive for the ‘Tips’ Category

Users receive a “The page cannot be displayed” error message, and “Connections_refused” entries are logged in the Httperr.log file on a server that is running Windows Server 2003, Exchange 2003, and IIS 6.0

No Comments »

To work around this issue, add the EnableAggressiveMemoryUsage registry entry to the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters

Then, set the EnableAggressiveMemoryUsage registry entry to 1.

To do this, follow these steps:

  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type EnableAggressiveMemoryUsage, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. On the File menu, click Exit to exit Registry Editor.
  8. Restart the HTTP service. To do this, follow these steps:
    1. Click Start, click Run, type cmd in the Open box, and then click OK.
    2. At the command prompt, type net stop http /y, and then press ENTER.
    3. At the command prompt, type iisreset /restart, and then press ENTER.

Fingerprinting / Identify Remote Web Server

1 Comment »

telnet – Identify remote web server

Use telnet to connect to remove web server, enter
$ telnet www.vivekgite.com www
Output:

Trying 74.86.49.130...
Connected to www.vivekgite.com.
Escape character is '^]'.

Request header, enter the following command and hit [ENTER] key twice:
HEAD / HTTP/1.0
Output:

HTTP/1.0 200 OK
Connection: close
X-Pingback: http://www.cyberciti.biz/tips/xmlrpc.php
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Date: Mon, 28 Jan 2008 08:50:55 GMT
Server: lighttpd
Connection closed by foreign host.

curl – Identify remote web server

Type the command as follows:
$ curl -I http://www.remote-server.com/
$ curl -I http://vivekgite.com/

Output:

HTTP/1.1 200 OK
Content-type: text/html
Content-Length: 0
Date: Mon, 28 Jan 2008 08:53:54 GMT
Server: lighttpd


Increase the SMS limit in Android (100 SMS per hour to unlimited)

No Comments »

 

Make sure you got rooted phone.

  • Install Android SDK (for basic command line tools, such as ADB)
  • Add Android tools to the PATH
  • Turned on USB debugging on Phone
  •  Connect with USB Cable, USB Drivers must be installed (with SDK etc)

Open Command Terminal and enter the following:

adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db

Then you’ll see:

sqlite>

Then enter the following to alter the limit

INSERT INTO gservices (name, value) VALUES('sms_outgoing_check_max_count', 101);

(change 101 to your new limit)

I didnt try altering the limit so I hope it works for you guys.. but I can confirm this next one works. It completely turns off the limit altogether.

To turn off the limit enter:

INSERT INTO gservices (name, value) VALUES('sms_outgoing_check_interval_ms', 0);

Open Elevated Command Prompt with Administrator Privileges in Windows 7

No Comments »

 

Windows Vista and Windows 7 power users have many ways to launch a command prompt or Windows command processor (cmd.exe) with administrator privileges, rights or credentials. It’s a security feature in Windows Vista and Windows 7 that comes with User Access Control (UAC) that all processes will launch in restricted mode unless users specifically accept the elevation confirmation. For command prompt, the commands may refuse to run or have access denied error. So users need to launch command prompt will full admin rights and permission state. Here’s a few ways and methods the elevated command prompt can be opened and ran as administrator like this :-

Read the rest of this entry »


Mount A USB Drive Read Only in Windows (XP/Vista/7)

No Comments »

There are times that it would be nice to mount a drive in Windows and set it to read only to avoid accidentally over writing data on that drive. After some Google searching this is what I found. This will only work on Windows XP sp2 and later and Windows 7. I have not tested it on Vista although I assume that it will work.

Step 1
Open regedit.exe
Start > Run Type regedit.exe
Click OK

Step 2
Navigate to the following registry key.  It may not exist there for you will have to create it.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StorageDevicePolicies

Step 3
Next create a new DWORD called WriteProtect and give it a value of 1

Step 4
Now plug in your USB drive and you will not be able to write to the device.

To make it writable again you will have to change the WriteProtect DWORD to 0 and unplug and replug in your device.


Stop your friends’ Facebook app from accessing YOUR private information

No Comments »

 

I thought I had carefully controlled what other people I choose to share my photos and my personal information with me on my Facebook and I was really careful about what third-party Facebook applications I allow to have access to personal details such as my birthday, my status updates, my photos, my location and educational and work history but I was WRONG until today. Read the rest of this entry »