Renaming the start menu button in Windows

November 16, 2008 by angelchen1111 · Leave a Comment
Filed under: windows 


This video shows how you can rename the start menu button in Windows using Resource Hacker.

How to Make a Trojan Virus in less than 3 Minutes

November 15, 2008 by angelchen1111 · 1 Comment
Filed under: virus 


Here’s the guide for how to make a virus that shuts down your computer in a given time giving them a false impression that the system is infected.

Vista Temporary Internet Files Virtualized

November 13, 2008 by angelchen1111 · Leave a Comment
Filed under: tips, windows 

Yesterday after scanning virus with Kaspersky online(which is a Java Applet), I saved the log file in my documents; however, I can’t find it anywhere in my document folder. I thought it was lost, so I opened the online scanner and tried to save again and I still saw the old file there. I wondered where did it go, so I searched for it, but Vista’s search function is quite useless and it didn’t find it. I then looked into the AppData folder to try to find it but still nothing. Later on I tried to boot into Linux and searched for the file again, and I found it in the “AppData\Local\Microsoft\Windows\Temporary Internet Files\Virtualized” folder, which was kinda weird. It was Vista’s new security feature to Virtualize those programs that are incompatible and make them to write to a different folder than the actual one, but how come other programs can’t see those virtualized files? To prevent things like this, I have to run Internet Explorer as administrator to save the file in order for the file to be written to the correct folder.

Ubuntu hdparm APM and laptop mode tools

November 4, 2008 by angelchen1111 · 1 Comment
Filed under: linux 

Ubuntu 8.10 is supposed to fix the apm=128 issue which causes high loading/unloading cycles for some hard drives; however, it is still BROKEN by default, here’s why:
the file 90-hdparm.sh located in various folders in /etc/acpi such as /etc/acpi/ac.d/, /etc/acpi/battery.d/, /etc/acpi/resume.d/, and /etc/acpi/start.d/ is supposed to fix the hdparm problem; however, notice the following lines:
DO_HDPARM=y
if [ -e /usr/sbin/laptop_mode ] ; then
LMT_CONTROL_HD_POWERMGMT=$(. /etc/laptop-mode/laptop-mode.conf && echo “$CONTROL_HD_POWERMGMT”)
if [ "$LMT_CONTROL_HD_POWERMGMT" != 0 ] ; then
# Laptop mode controls hdparm -B settings, we don’t.
DO_HDPARM=n
fi
fi

This checks if the file /usr/sbin/laptop_mode exists and if it exists, then it checks if CONTROL_HD_POWERMGMT in laptop-mode.conf is set to a non-zero number in order to determine if laptop mode is enabled. However, Ubuntu installs laptop-mode-tools by default, so /usr/sbin/laptop_mode always exist and that by itself does not tell whether laptop mode is on. Rather, ubuntu turns laptop mode off by default by setting the variable ENABLE_LAPTOP_MODE=false in /etc/default/acpi-support, but this variable is not used anywhere except in the init script /etc/init.d/laptop-mode from line 30 to 37:
# FIXME: this shouldn't be configured there
if [ -f /etc/default/acpi-support ]; then
. /etc/default/acpi-support;
fi

if [ x$ENABLE_LAPTOP_MODE = xfalse ]; then
exit 0;
fi
which stops the script from executing if the variable is set to false. One funny thing about this is that it says FIXME in the comment but it actually never get fixed even after Ubuntu 8.10 is released. With Ubuntu’s default settings laptop mode tool is supposed to be disabled by ENABLE_LAPTOP_MODE=false, but the script 90-hdparm.sh always thought that it is enabled as long as laptop mode is installed because /usr/sbin/laptop_mode is always there. It then checks the variable CONTROL_HD_POWERMGMT in /etc/laptop-mode/laptop-mode.conf, which is 1 by default, and it will set DO_HDPARM=n, thinking that laptop-mode is on and letting it to handle hard drive’s APM setting instead while actually laptop-mode is OFF and not taking care of the APM problem. This makes nobody changing the hard drive’s default APM setting from 128 to something else, leaving the clicking problem unsolved.
I did some workaround to 90-hdparm.sh by changing the line “if [ -e /usr/sbin/laptop_mode ] ; then” to “if [ -e /var/run/laptop-mode-tools/enabled ] ; then” in order to check if laptop mode tool is enabled, because whenever laptop mode tool is enabled, it creates the file /var/run/laptop-mode-tools/enabled, so I think this is the right way to check if it is actually enabled rather than just installed. I also think that the variable ENABLE_LAPTOP_MODE in /etc/default/acpi-support should be removed instead, just as Debian did in acpi-support version 1.109-5. That variable is just there to confuse people more and mess up the configurations. Even the comment in /etc/init.d/laptop-mode says “FIXME: this shouldn’t be configured there” already, why don’t they just fix it right now and make all these things less messy. I have tested Debian six months before and they really did a good job in fixing those hard drive clicking issues by making the 90-hdparm.sh file and removing the ENABLE_LAPTOP_MODE variable.

Bad Behavior has blocked 266 access attempts in the last 7 days.