A Little Bit Lazy

Archive for the ‘技术’ Category

Unlock Your Xbox Hard Drive

with 2 comments

这篇教程是由GTac01发表在Xbox-Scene上面的。我觉得比较有用,就无耻地转载过来了。原文请见 How to Unlock Your Xbox HD on a PC

先简单介绍一下为什么要解锁Xbox硬盘吧。提到Xbox硬盘就要先说一下Xbox。Xbox是微软生产的家用游戏机,是 Bill Gates 用来和索尼的 PS2 以及任天堂的 Game Cube 抢占游戏机市场的。Xbox其实就是一台为游戏做了优化的个人计算机,因此Xbox的内部结构和PC很相似,由CPU、内存、显卡、硬盘、光驱等等部件组成。既然Xbox是微软开发的游戏机,微软的本意当然是Xbox只能用来运行正版游戏以便赚取大把大把的$$$$。不过天才的Hacker们很快就破解了Xbox的保护机制,做出了能够绕过Xbox保护机制的modchip。而且很快就有了连modchip都不需要的 software hack。总之,Xbox被hack之后就能够运行备份游戏以及其它的 homebrew software。

Xbox玩家把Xbox hack之后,通常会把Xbox原装的10G硬盘取出来,代之以一个120G以上的大容量硬盘。有了这个大容量硬盘,玩家就可以把Xbox游戏拷贝到硬盘上,让游戏直接从硬盘上运行,这样就省去了每次开机放盘的动作。另外,玩家还可以把电影传到硬盘上,用XBMC之类的软件播放,就可以把Xbox变成一个家庭影院了。

OK,说了这么多废话,下面就该考虑如何处置那个被换出来的Xbox原装硬盘了。很自然的,大家会想到把它接到自己计算机的 IDE 口上作为计算机的一个硬盘使用。嗯,这是一个 brilliant idea! 不过就是有一个问题:Xbox的原装硬盘是被锁住的。ATA 的规格标准允许使用一个32字节的密码把硬盘锁住以提高硬盘的安全性。硬盘一旦被锁,它就不能被读取写入(除非使用相同的密码)。计算机的BIOS仍然能够检测到这个硬盘,但是发送给它的任何ATA命令都会返回错误。Xbox的原装硬盘就是被加了密码锁住的。每一台Xbox的主板都知道这一台Xbox的原装硬盘的密码,所以能都对它进行读写。如果要把Xbox的原装硬盘挪到PC上使用,就必须把它解锁。这就是这篇教程的用途。下面我们来看看如何解锁Xbox的原装硬盘吧。

How to unlock your Xbox HD on a PC and use it afterwards as HD for your PC (v0.4)
Tutorial written by : GTac01

** UPDATE: this tutorial explain the ‘old’ manual way to unlock xbox harddrives. You can now use homebrew xbox apps to easily unlock a drive with 1 button click. ConfigMagic can unlock harddrives, but also newer versions of EvolutionX dashboards and also all 4th generation modchip OS’. If your Xbox is broken or if for any other reason you want to unlock your Xbox HD on your PC … you can use this method … but you will still need the hdd password. Once a drive is unlocked, you can format and use it in a normal PC **

1). First of all download the “hdd unlocker” here.

2). Then connect your original hdd to your xbox, using Evox, get your hdd password. (in the evolutionx dash go ’system utils’ then ‘backup’ , this will make a directory called “backup” on the C drive of your xbox. “hddinfo.txt” will contain the HD key). Once you have it, It looks like this:

8d:f9:5b:76:9b:44:36:18
09:c1:d3:e0:ad:65:fe:21
f4:03:d7:58:00:00:00:00
00:00:00:00:00:00:00:00

Rewrite it as followed:

8df95b769b44361809c1d3e0ad65fe21f403d758.

Yeah delete the last zeroes, and print it out, you’ll need it.

3). Now you have to boot DOS (Bootdisk).

Go here for a bootdisk that works with Win98-WinXp.

Once downloaded execute it, insert a Floppy disk in ur computer. It will make that disk a boot disk. Then add the files: hdunlock.exe, hdunlock.pas, hddisabl.exe, and hdddisabl.pas to the bootdisk just created.

4). Now, turn off your computer, install your xbox hdd in your computer. Turn on your computer with bootdisk inserted, and it will ask you to press a key, then press a key, and you are in A:\>.

  1. Type in hdunlock and press enter
    Select your xbox hdd, and enter your hdd passwordit should say DONE
  2. Type in hddisabl
    Select oyur xbox hdd, and enter your xbox hdd passwordit should say DONE.

Congratulations you have unlocked your xbox hdd for formatting.

Written by highdrawer

April 14, 2007 at 12:18 am

Posted in 技术

Create a Linux Boot Disk

without comments

这是一篇转载的教程,教你如何制作Linux的启动软盘。原文由gonzalo76发表于fedoraforum.org,请见 Create a Linux Boot Disk Using Mkbootdisk.

Create a Linux boot disk with mkbootdisk
Tutorial written by gonzalo76

If you forgot to make a boot disk during the Fedora Core 1 Installation process or mayble you lose it, this how to is just for you.

The command you’ll use to make the boot disk is ‘mkbootdisk’. The mkbootdisk can only be executed from a command prompt, that’s why you’ll have to open a terminal.

1. The first step is to find your running kernel version on the machine. This number has to be exact ’cause it’s required by mkbootdisk command. To find the number type: ‘uname -r’. Like this:

[root@pc-gonzalo root]# uname -r
2.4.22-1.2174.nptl

(Thank you ghenry for this)

2. Log on as root with ’su -’ command if you are not already logged on, you’ll also need to enter the root password.

[gonzalo@pc-gonzalo gonzalo]$ su -
Password:
[root@pc-gonzalo root]#

3. Make sure that /dev/fd0 is unmounted. To check this type: mount and check if your floppy drive is mounted or not. If it is mounted, unmount it with the ‘umount’ command like this:

[root@pc-gonzalo root]# umount /dev/fd0

4. Create the boot disk
Label a floppy disk Linux Boot Disk and place it in the drive. Attention, mkbootdisk will erase and replace all information on the disk.
At the root command prompt enter the mkbootdisk command using the kernel number you obtained before. Like this:

[root@pc-gonzalo root]# /sbin/mkbootdisk 2.4.22-1.2174.nptl

IMPORTANT
You’ll have to use the full pathname for the command. Without the full pathname, you’ll received a ‘Command Not Found’ message. With “su”, instead of “su -” you did not load roots paths, i.e. “su -” loads roots bash_profile, which tells bash that you can run commands from /sbin/. (Thank you ghenry for this )

After pressing [Enter], the following message is displayed:
Insert a disk in /dev/fd0. Any information on the disk will be lost.
Press to continue or ^C to abort:

At this point, press [Enter] to confirm. After mkbootdisk copies the kernel and all other necessary programs to the disk, the command prompt will return.

mkbootdisk copies the following files to the floppy disk:
boot.msg
initrd.img
ldlinux.sys
syslinux.cfg
vmlinuz

boot.msg script:
Press (or wait 10 seconds) to boot your Red Hat Linux system from /dev/hda5. You may override the default linux kernel parameters by typing ‘linux params‘, followed by if you like.

Of course, I edited this script to:
Press (or wait 10 seconds) to boot your Fedora Core Linux system from /dev/hda5. You may override the default linux kernel parameters by typing ‘linux params‘, followed by if you like. Have a Fedora day !!!

syslinux.cfg script:
default linux
prompt 1
display boot.msg
timeout 100
label linux
kernel vmlinuz
append initrd=initrd.img ro hdc=ide-scsi apm=off acpi=on root=/dev/hda5

NOTE
/dev/hda5 is where I have the Fedora’s boot partition

5. Don’t forget to test your boot disk !!!

More info at TechRepublic

This method does not work for Fedora Core 2 and 3. You’ll receive an error message like this one:

[root@linux root]# /sbin/mkbootdisk 2.6.5-1.358
Insert a disk in /dev/fd0. Any information on the disk will be lost.
Press to continue or ^C to abort:
cp: writing `/tmp/mkbootdisk.Vm3185/initrd.img’: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
20+0 records in
20+0 records out

For Fedora Core 3, installing GRUB on a floppy disk:

# /sbin/grub-install /dev/fd0
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install’.# This device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda

Everytime you install a new kernel you’ll need to update your floppy disk running “/sbin/grub-install /dev/fd0″ again.

Written by highdrawer

April 13, 2007 at 8:52 am

Posted in 技术

DD-WRT Firmware on the Belkin F5D7230-4 v1444

without comments

I have a Belkin wireless router (model number: F5D7230-4 v1444). For some reason, the “Virtual Server” (or “Port Forwarding”) did not work correctly. It’s obviously a firmware problem. I checked the firmware version and my router had the latest firmware from Belkin. I wrote to Belkin Customer Service but who knows how long I have to wait to a response from them.

Thus I tried to find a custom firmware for my router on the Internet and I came across a firmware project called “DD-WRT“. The project was targeted at making custom firmwares for Linksys WRT54G/GS routers. However, there is a micro version which can be used on Belkin F5D7230-4 v1444. I decided to give it a try.

I downloaded the latest generic micro version of DD-WRT and flashed it to my router. After flashing, the “Virtual Server” on my router works perfectly and that’s why you can read this post. There are lots of features in DD-WRT firmware and I have not scratched the surface yet.

One thing to note is that the flashing was not an easy task. The DD-WRT Wiki has one section devoted to the installation on the Belkin F5D7230-4.

Instructions on how to flash the Belkin F5D7230-4 v1444:

  1. Download the latest generic micro firmware (dd-wrt.v23_micro_generic.bin as of this writing).
  2. Reset router to factory defaults. Unplug the router.
  3. Connect your computer directly to one of the LAN ports on the router.
  4. The router starts up with IP address 192.168.2.1. Set your computers IP address manually to the following setting: IP Address: 192.168.2.2, Subnet Mask: 255.255.255.0, Default Gateway: leave blank.
  5. Go to www.linksys.com and goto their download page. (You may want to do this first before you reset to the factory defaults in case resetting screws up your internet connection.)
  6. Download the firmware for BEFW11S4 – EtherFast Wireless AP + Cable/DSL Router w/4-Port Switch.
  7. Extract the Tftp.exe program from the zip file.
  8. Start Tftp program and set server to: 192.168.2.1 and for the file part, put the location of your “dd-wrt.v23_micro_generic.bin” file.
  9. Set retries to 20.
  10. Power up router.
  11. Click upgrade and then hit the reset button on your router. If program doesn’t catch the Belkin’s tftp window, just hit reset again. The Tftp program will let you know when it is upgrading and succeeds.

Written by highdrawer

August 21, 2006 at 11:20 am

Posted in 技术

DVI Recovery for Viewsonic VX2025wm

without comments

I had a big issue with my computers yesterday: the DVI input of my LCD monitor stopped working all of a sudden. The monitor is a Viewsonic VX2025wm 20.1″ widescreen LCD. I have had it for a few months and the DVI input has been working perfectly untill yesterday. I have two desktop computers which are sharing the Viewsonic monitor. I was switching the monitor connection between them yesterday afternoon. And all of a sudden I got a black screen (on both computers) and the monitor told me “No Input Signal”. I tried to reboot both computers but no go. There was nothing on the screen.

Since Viewsonic VX2025wm also has a VGA port, I dug out a VGA cable and connected the computers to the monitor via VGA. The funny thing is both computers worked fine on VGA. I thought to myself that the DVI port on the monitor might get fried.

After some googling I found out that some people are having this exact same problem. Here is a link on [H]ard Fourm: VX2025WM problems?. In this thread it is mentioned that some Dell LCD monitors are experiencing this problem and Dell has come up with a solution. The solution can be found on Dell Support Forum and here is the link.

Basically what happened was that my NVidia vedio card messed up with my LCD monitor’s EDID and put the monitor in a permanent DVI Power Save Mode. The solution is simple. Just download this ZIP file and follow the instructions below. Then you will have a working DVI input.

Instructions on how to recover the DVI port (note: these instructions are copied from Dell Support Forum):

The ZIP file will contain DVI_Recover_FLOPPY.exe and DVI_Recover_CDIMAGE.iso:

  • If you have a floppy drive, place a blank floppy disk in the floppy drive and run the file DVI_Recover_FLOPPY.exe. This will create a bootable floppy disk. Continue with the steps below.
  • If you do NOT have a floppy drive, you will need to burn the ISO image DVI_Recover_CDIMAGE.iso onto a CD-R or CD-RW disc. The procedure for this varies from software to software. In most cases, your software will have an option for “Burn Image” or “Write Disc from Image,” which you will choose. Ensure the software is looking for .iso files, browse to the location that you extracted the files from the DVI_Recover.zip to, select the file DVI_Recover_CDIMAGE.iso, and complete the image burning process. If your installed software does not have image burning capabilities, the Demo version of Nero 6 may contain that functionality.
  • IMPORTANT: If you only have a CDROM drive, configure your system to boot from the primary optical drive. See this Dell Knowledge Base for further information.

After you have the bootable floppy disk or CD-R/RW ready, perform the following steps to resolve the problem:

  1. Using the VGA cable provided with your flat panel, connect the monitor to the VGA port on your video card. Ensure that the connection is successful and that you can change the monitor’s input to VGA and receive an image.
  2. Download and install the latest nVidia ForceWare drivers here. This will prevent occurrence of the problem once you have used the rest of this procedure to correct it.
  3. If you do NOT have a floppy drive, and are going to be performing the fix using a recordable CD created with the DVI_Recover_CDIMAGE.iso, insert your recorded CD into the primary optical drive now.
  4. Shut down the computer. Disconnect the power cables from both the monitor and the computer.
  5. Disconnect the VGA cable, and reconnect the monitor to the computer via the DVI cable.
  6. Press the power button for both the monitor and computer while unplugged to drain any remaining power.
  7. Re-attach the power cables to both the monitor and the computer.
  8. If you have a floppy drive, insert your bootable floppy into the floppy drive and power on the system. Otherwise, simply power on the system.
  9. The system will boot to the floppy or recordable CD. Wait for approximately one (1) minute. You will not notice any major indicators that the fix is progressing; it is important that you allow the program to attempt to fix the flat panel undisturbed.
  10. Remove the floppy disk or recordable CD, and power down the system.
  11. Power up the system, and test your DVI connection.

If your monitor is still stuck in DVI Power Save mode, boot to the floppy disk or recordable CD again as described above. It may take up to three tries total in order to enact the fix.

Written by highdrawer

August 20, 2006 at 10:51 pm

Posted in 技术

Remove Saved Username and Password from Internet Explorer

without comments

Introduction

Microsoft Internet Explorer has a feature called AutoComplete that enables Internet Explorer to remember your username and password for certain web forms. Using this feature may be handy for accessing web pages where security is of little consequence. However, using this feature on a public computer creates a situation whereby other people can authenticate into your webmails or financial applications using your username and password.

If you have previously allowed Internet Explorer’s AutoComplete feature to remember your username and password on a public computer, you should remove it by following the procedure outlined below.

Procedure Summary

1. Highlight your username in the AutoComplete drop-down list.

2. Press the Delete key on your keyboard. Your username and password will be removed from the list that Internet Explorer remembers.

Detailed Instructions

1. If Internet Explorer has remembered your username and password, for example, for the Purdue Webmail form, you will notice that when you enter the first letter of your username in the Username field, a drop-down list will appear that contains your complete username.

Select your username in the drop-down list in one of the following ways. (1) You can point at it with the mouse (but don’t click the mouse button), or (2) Press the the down-arrow key on your computer’s keyboard (see Figure 1).

RemoveIDAndPwd1
Figure 1. Highlight your username in the AutoComplete drop-down list.

2. With your username selected in the AutoComplete drop-down list, press the Delete key on your keyboard.

3. When the AutoComplete dialog box appears, click the Yes button to remove your username and password from the list of remembered items in Internet Explorer (see Figure 2).

RemoveIDAndPwd2
Figure 2. Select Yes when the AutoComplet dialog box appears.

Written by highdrawer

June 21, 2006 at 2:42 pm

Posted in 技术

流氓软件及其清理

without comments

中国的互联网上真是流氓软件多多啊!想不到平时谨小慎微的我也着了道。昨天从网上下载了一个软件,没想到exe文件是个假的。也怪我昨天昏头昏脑,忘记查毒,直接就双击运行。刚一运行,McAfee就报警有病毒,同时桌面跳出好几个窗口。我赶紧把task manager打开,杀掉了安装进程。然而悔之晚矣,电脑上已经有好几个什么“青娱乐”、“很棒小秘书”之类的流氓软件。我一边在心里把那些写流氓软件的人kao了上百遍,一边想办法把它们删除。

根据我这么多年的上网经验,这些流氓软件是不可能从“添加/删除程序”里面清理干净的。我们只能在网上找相应的清理工具来删除它们。在这里我推荐一个软件叫“恶意软件清理助手”(英文名字叫“RogueCleaner”)。这个软件是由Tomm软件工作室开发,专门用来清除这些流氓软件的。到写这篇帖子为止,RogueCleaner的最新版本是1.84版,大家可以从它的官方网站下载。 官方介绍说RogueCleaner可以删除几十个已知的流氓软件,包括3721上网助手、化词搜索、CNIC中文上网等网民们深恶痛绝的垃圾。我自己曾经用它清除过我老婆电脑上的“娱乐心空”,感觉很好用。

Anyway,废话少说。下载RogueCleaner后运行,马上查出我电脑上装有好几个流氓软件。二话不说,Clean之!除了“协和医院弹出广告”之外的流氓软件都被清理干净了。为保险起见,我又重新启动Windows到安全模式下面在清理了一遍。那个“协和医院弹出广告”还是没有清理掉,不过其它恶意软件总算是搞掉了。至于“协和”这个垃圾,我在网上找到手动删除它的方法,把它抓起来,用绳子缠住它的脖子然后使劲一拉——,哇,整个世界清净了。。。

吃一堑,长一智。以后我一定提高警惕,防止被流氓软件骚扰。记住尽量不上乱七八糟的中文网站。还有,流氓软件的作者们去死吧!

Written by highdrawer

May 12, 2006 at 12:33 pm

Posted in 技术