Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 31st, 2010  |  syntax: None  |  size: 3.19 KB  |  hits: 335  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2.  
  3. if [ $# -ne 1 ]; then
  4. echo "usage: $0 " >&2
  5. exit 1
  6. fi
  7.  
  8. filename=$1
  9.  
  10. echo "Extracting: creserved_0 (262,144 bytes)"
  11. dd if="$filename" bs=1 skip=$((0x490)) count=$((0x40000)) > creserved_0
  12.  
  13. echo "Extracting: sdk_version (8 bytes)"
  14. dd if="$filename" bs=1 skip=$((0x40490)) count=$((0x8)) > sdk_version
  15.  
  16. echo "Extracting: lv1ldr (124,872 bytes)"
  17. dd if="$filename" bs=1 skip=$((0x40500)) count=$((0x1e7c8)) > lv1ldr
  18.  
  19. echo "Extracting: lv2ldr (95,736 bytes)"
  20. dd if="$filename" bs=1 skip=$((0x5ed00)) count=$((0x175f8)) > lv2ldr
  21.  
  22. echo "Extracting: isoldr (77,716 bytes)"
  23. dd if="$filename" bs=1 skip=$((0x76300)) count=$((0x12f94)) > isoldr
  24.  
  25. echo "Extracting: appldr (128,728 bytes)"
  26. dd if="$filename" bs=1 skip=$((0x89300)) count=$((0x1f6d8)) > appldr
  27.  
  28. echo "Extracting: spu_pkg_rvk_verifier.self (64,332 bytes)"
  29. dd if="$filename" bs=1 skip=$((0xa89d8)) count=$((0xfb4c)) > spu_pkg_rvk_verifier.self
  30.  
  31. echo "Extracting: spu_token_processor.self (23,188 bytes)"
  32. dd if="$filename" bs=1 skip=$((0xb8524)) count=$((0x5a94)) > spu_token_processor.self
  33.  
  34. echo "Extracting: spu_utoken_processor.self (25,552 bytes)"
  35. dd if="$filename" bs=1 skip=$((0xbdfb8)) count=$((0x63d0)) > spu_utoken_processor.self
  36.  
  37. echo "Extracting: sc_iso.self (86,828 bytes)"
  38. dd if="$filename" bs=1 skip=$((0xc4388)) count=$((0x1532c)) > sc_iso.self
  39.  
  40. echo "Extracting: aim_spu_module.self (17,048 bytes)"
  41. dd if="$filename" bs=1 skip=$((0xd96b4)) count=$((0x4298)) > aim_spu_module.self
  42.  
  43. echo "Extracting: spp_verifier.self (55,280 bytes)"
  44. dd if="$filename" bs=1 skip=$((0xdd94c)) count=$((0xd7f0)) > spp_verifier.self
  45.  
  46. echo "Extracting: mc_iso_spu_module.self (32,908 bytes)"
  47. dd if="$filename" bs=1 skip=$((0xeb13c)) count=$((0x808c)) > mc_iso_spu_module.self
  48.  
  49. echo "Extracting: me_iso_spu_module.self (35,000 bytes)"
  50. dd if="$filename" bs=1 skip=$((0xf31c8)) count=$((0x88b8)) > me_iso_spu_module.self
  51.  
  52. echo "Extracting: sv_iso_spu_module.self (49,272 bytes)"
  53. dd if="$filename" bs=1 skip=$((0xfba80)) count=$((0xc078)) > sv_iso_spu_module.self
  54.  
  55. echo "Extracting: sb_iso_spu_module.self (23,984 bytes)"
  56. dd if="$filename" bs=1 skip=$((0x107af8)) count=$((0x5db0)) > sb_iso_spu_module.self
  57.  
  58. echo "Extracting: default.spp (8,864 bytes)"
  59. dd if="$filename" bs=1 skip=$((0x10d8a8)) count=$((0x22a0)) > default.spp
  60.  
  61. echo "Extracting: lv1.self (1,206,944 bytes)"
  62. dd if="$filename" bs=1 skip=$((0x10fb80)) count=$((0x126aa0)) > lv1.self
  63.  
  64. echo "Extracting: lv0 (256,168 bytes)"
  65. dd if="$filename" bs=1 skip=$((0x236680)) count=$((0x3e8a8)) > lv0
  66.  
  67. echo "Extracting: lv2_kernel.self (1,526,296 bytes)"
  68. dd if="$filename" bs=1 skip=$((0x274f28)) count=$((0x174a18)) > lv2_kernel.self
  69.  
  70. echo "Extracting: eurus_fw.bin (462,740 bytes)"
  71. dd if="$filename" bs=1 skip=$((0x3e9940)) count=$((0x70f94)) > eurus_fw.bin
  72.  
  73. echo "Extracting: emer_init.self (525,336 bytes)"
  74. dd if="$filename" bs=1 skip=$((0x45a8d4)) count=$((0x80418)) > emer_init.self
  75.  
  76. echo "Extracting: hdd_copy.self (396,664 bytes)"
  77. dd if="$filename" bs=1 skip=$((0x4dacec)) count=$((0x60d78)) > hdd_copy.self
  78.  
  79. echo "Extracting: manu_info_spu_module.self (4776 bytes)"
  80. dd if="$filename" bs=1 skip=$((0x53ba64)) count=$((0x12a8)) > manu_info_spu_module.self
  81.  
  82. echo "Finished!"