- 积分
- 573
- 最后登录
- 2016-6-23
- 精华
- 0
- 阅读权限
- 40
- 主题
- 157
- UID
- 1349011
- 帖子
- 1358
- PB币
- 7
- 威望
- 5
- 贡献
- 0
- 技术
- 12
- 活跃
- 113
Hello!!
- UID
- 1349011
- 帖子
- 1358
- PB币
- 7
- 贡献
- 0
- 技术
- 12
- 活跃
- 113
|
发表于 2011-7-23 19:19:30
IP属地台湾
回复 wsyytb 的帖子
Last login: Sat Jul 23 18:43:09 on console
111-250-169-245:~ My$ sudo -s
Password:
bash-3.2# cd /System/Library/Extensions/AppleIntelSNBGraphicsFB.kext/Contents/MacOS
bash-3.2# nm -arch x86_64 AppleIntelSNBGraphicsFB | grep 'D _PlatformInformationList'
0000000000029600 D _PlatformInformationList
bash-3.2# lipo -detailed_info AppleIntelSNBGraphicsFB
Fat header in: AppleIntelSNBGraphicsFB
fat_magic 0xcafebabe
nfat_arch 2
architecture x86_64
cputype CPU_TYPE_X86_64
cpusubtype CPU_SUBTYPE_X86_64_ALL
offset 4096
size 283552
align 2^12 (4096)
architecture i386
cputype CPU_TYPE_I386
cpusubtype CPU_SUBTYPE_I386_ALL
offset 290816
size 294736
align 2^12 (4096)
bash-3.2# dd if=AppleIntelSNBGraphicsFB of=/tmp/table bs=1 skip=173568 count=60
60+0 records in
60+0 records out
60 bytes transferred in 0.000207 secs (289595 bytes/sec)
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# 0
bash: 0: command not found
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2# cd /tmp
bash-3.2# nano hex
bash-3.2# cd /tmp
bash-3.2# xxd -c 12 < table > hex
bash-3.2# cat hex
0000000: 0102 0400 1007 0000 1007 0000 ............
000000c: 0503 0000 0200 0000 3000 0000 ........0...
0000018: 0205 0000 0004 0000 0700 0000 ............
0000024: 0304 0000 0004 0000 0900 0000 ............
0000030: 0406 0000 0004 0000 0900 0000 ............
bash-3.2#
紫色字为最后改好的数字,在用nano hex进去更改后,用ctrl + x 退出,(开始我都不敢退出)y 保存 這邊試了很多次 怎麼都無法記錄??? |
|