GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > GSM & CDMA Phones / Tablets Software & Hardware Area > BlackBerry (RIM)

BlackBerry (RIM) Blackberry phones discussion, firmwares, tutorial, media, repairs.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-31-2008, 20:06   #1 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 14
Member: 921339
Status: Offline
Thanks Meter: 8
I have extract some pics from VSM files


The png's name is same as VSM files.


Click Here Download
  Reply With Quote
The Following 5 Users Say Thank You to Joywow For This Useful Post:
Show/Hide list of the thanked
Old 12-31-2008, 20:33   #2 (permalink)
Freak Poster
 
Khatiger's Avatar
 
Join Date: Apr 2004
Location: Where night is bright
Age: 43
Posts: 219
Member: 61649
Status: Offline
Thanks Meter: 113
Many thanks. It's good work, man.
  Reply With Quote
Old 01-01-2009, 03:30   #3 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 21
Member: 929470
Status: Offline
Thanks Meter: 3
very nice! Happy new year! Btw! Few questions, how did you extract these, custom method or software sharible solution? aware of method of using hex editor to extract, but is lots of trouble for this number of files. If used a software, could share please? again good job!
  Reply With Quote
Old 01-01-2009, 08:02   #4 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 14
Member: 921339
Status: Offline
Thanks Meter: 8
Use WinHex,then select paragraph from “89 50 4E 47 0D 0A 1A 0A” to the end.Export it to the new files,then save as "*.png"(*is file name).
  Reply With Quote
Old 01-01-2009, 09:02   #5 (permalink)
Freak Poster
 
Join Date: Jan 2005
Age: 53
Posts: 342
Member: 112087
Status: Offline
Thanks Meter: 35
nice already downloaded and open and try very very usefull...., did u try make own?
  Reply With Quote
Old 01-01-2009, 17:57   #6 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 21
Member: 929470
Status: Offline
Thanks Meter: 3
if anyone knows a patching software that can remove the first 20 bits of the vsm files, and accepts commandline, it could be used as a mass vsm/png converter. making something like this wouldnt be hard for a programmer i dont think, but im positive there are already multiple things out there that can do this, i just cant find one (old websites have died and i have too many disk's to find backup without spending a week looking)
  Reply With Quote
Old 01-02-2009, 22:18   #7 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 3
Member: 934671
Status: Offline
Thanks Meter: 3
Quote:
Originally Posted by niggadik View Post
if anyone knows a patching software that can remove the first 20 bits of the vsm files, and accepts commandline, it could be used as a mass vsm/png converter. making something like this wouldnt be hard for a programmer i dont think, but im positive there are already multiple things out there that can do this, i just cant find one (old websites have died and i have too many disk's to find backup without spending a week looking)
First post, giving back some idea:

download "dd" for dos (or use dd on a linux/unix machine if you have one)
http://www.chrysocome.net/downloads/dd-0.5.zip

use the command:

dd if=<your file name> of=<your output file name>.png bs=1 skip=32

if = input file
of = output file
bs = block size (1 byte in this case)
skip = This will skip your first 32 bytes (offset 0x20 is 32 bytes)

Put it in a for-loop or batch file and have it go.

-m
  Reply With Quote
The Following User Says Thank You to mykey2k For This Useful Post:
Old 01-05-2009, 22:44   #8 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 3
Member: 934671
Status: Offline
Thanks Meter: 3
Alternative solution, finding the first PNG in any file:

0) download and unzip any VSM's that you want.

1) download and install python 3.0 from http://www.python.org/download/releases/3.0/

2) open up a cmd prompt, cd to the directory you have the VSM's and copy and paste the following... Save it as "remheader.py" for sake of arguement. Make sure you don't end up saving it with the "txt" extension. If you do, just rename it without the txt bit.

Code:
# Syntax:
#    remheader.py input output.png
#
# Strips everything up to 0x89PNG from a file
# and outputs to a new file  as specified in
# sys.argv.

from sys import argv, stdout

input   = open(argv[1], 'r+b')
output  = open(argv[2], 'w+b')
scan    = b'\x89PNG'
content = input.read()
pos     = content.find(scan)

output.write(content[pos::])

# EOF
3) The conversion For-loop command:

Code:
for /f "usebackq"  %x in (`dir /b VSM*`) do remheader.py %x %x.png
3a) You can make a subdir (for sake of example, call it pngs) and run the command defining the directory as well:

Code:
for /f "usebackq"  %x in (`dir /b VSM*`) do remheader.py %x pngs/%x.png
All thousand+ pngs will be extracted for your amazement.

I can only provide this much support. If you need help with the windows command line, installing python, etc., please ask someone local to you. I tested it and see all the png files, so you should too

-m
  Reply With Quote
The Following 2 Users Say Thank You to mykey2k For This Useful Post:
Old 01-07-2009, 11:08   #9 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 2
Member: 939558
Status: Offline
Thanks Meter: 0
Quote:
Originally Posted by Joywow View Post
Use WinHex,then select paragraph from 89 50 4E 47 0D 0A 1A 0A to the end.Export it to the new files,then save as "*.png"(*is file name).
Another simple way, you use text search for "png" then select paragraph from 89 50 4E 47 0D 0A 1A 0A to the end. Export it to the new files,then save as "*.png"
  Reply With Quote
Old 02-03-2009, 09:36   #10 (permalink)
Freak Poster
 
Join Date: Jan 2009
Posts: 170
Member: 956117
Status: Offline
Thanks Meter: 66
I was needing to extract not just the PNG files, but ALL the resources and by hand was just too tedious so I wrote a program you can download and use and improve if you like.

The program names each resource after the resource type number. For example 0x2000.txt will be extracted if the VSM file has a custom Help Screen message, and 0x0.png is the extracted splash screen.

Read my analysis of the VSM format at http://forum.gsmhosting.com/vbb/show....php?p=4024409

Let me know if you learn any more about the format or learn of any corrections to what I wrote.
  Reply With Quote
The Following User Says Thank You to elseWestcott For This Useful Post:
Old 02-03-2009, 11:07   #11 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 21
Member: 929470
Status: Offline
Thanks Meter: 3
wonderful solutions you guys!! keep them coming, if its easier for you to use, then its easier for everyone else to use too!~
  Reply With Quote
Old 02-03-2009, 11:32   #12 (permalink)
Junior Member
 
Join Date: Dec 2008
Posts: 21
Member: 929470
Status: Offline
Thanks Meter: 3
make the parse bat smaller! <br>
assumes your filepath to VSM folder is D:\MML\VSM <br>

mkdir "D:\MML\VSM\output\"
for %%I in (vsm*) do mkdir "D:\MML\VSM\output\%%I"
for %%I in (vsm*) do "D:\MML\VSM\parsevsm.exe" %%I
  Reply With Quote
The Following User Says Thank You to niggadik For This Useful Post:
Old 02-03-2009, 18:30   #13 (permalink)
Freak Poster
 
Join Date: Jan 2009
Posts: 170
Member: 956117
Status: Offline
Thanks Meter: 66
I fixed some problems that caused parseVSM to overwrite the 0x0.png because some branding versions have a two null byte pad after the resource section and before the footer and signature.

While I was at it, I made it create a file that indicates the branding version and the vendor id and another file called "BVHasPad" if the file has the two null byte pad. This may help if someone else with actual programming skills wants to write a better parser/editor.

Note that I have not made it to dump the signature to a file. Some VSM files are signed and some are not. In order to sign files, I think would require RIM's private key which I don't expect anyone outside RIM will ever see.


Also note that some VSM files use an openPGP public key for the branding key (0x4003). Some have an invalid user id when trying to imort them into openPGP, and some seem to be some other format key. Maybe an earlier version of PGP? Anyone know? There is a possibility that the branding key (resorce type 0x4003) may be the public key that would be used to verify the signature. I have not managed to do that yet. Thankfully having a correct checksum in the file header is enough to convince the BlackBerry to accept the branding data.

I also updated the batch file to be much smaller thanks to niggadik.

The new version is available at the same place, http://c.site88.net/parseVSM
  Reply With Quote
Old 04-09-2009, 13:18   #14 (permalink)
Freak Poster
 
Join Date: Jan 2005
Location: miami
Age: 47
Posts: 414
Member: 112190
Status: Offline
Thanks Meter: 21
The new version is available at the same place, http://c.site88.net/parseVSM

link is not working
nother one please!!

thanks

linterna1
  Reply With Quote
Old 04-09-2009, 14:53   #15 (permalink)
Freak Poster
 
Join Date: Jan 2005
Location: miami
Age: 47
Posts: 414
Member: 112190
Status: Offline
Thanks Meter: 21
ok i managed to used the parseVSM to "open" a VSM file now I'd like to know if is there any way to put it back together as a VSm file again???
please help me

thanks best regards

linterna
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
thread Thread Starter Forum Replies Last Post
Can anyody help extract phone book from pm file.. stylius Infinity-Box 5 07-21-2009 09:21
1119 VSM Files extracted karabey BlackBerry (RIM) 1 02-27-2009 03:29
I have extract some pics from VSM Joywow BlackBerry (RIM) 0 12-31-2008 20:03
**need to extract some photos from My GX20** infogsm Sharp 3 04-17-2006 16:20
Extract Ki+IMSI from DAT File charlielao Sim Cloning and Scaning 0 04-12-2005 05:21

 



All times are GMT +1. The time now is 15:18.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.22954 seconds with 9 queries

SEO by vBSEO