-
NFB file format: (
struct nfb_file)
struct nfb_string {
int nchars;
short chars[nchars];
};
struct nfb_header {
int version;
struct nfb_string firmware;
struct nfb_string phone;
int nentries;
};
struct nfb_file_entry {
int type = 1;
struct nfb_string path;
int nbytes;
char bytes[nbytes];
time_t stamp;
};
struct nfb_directory_entry {
int type = 2;
struct nfb_string path;
};
struct nfb_file {
struct nfb_header header;
union {
struct nfb_file_entry file;
struct nfb_directory_entry directory;
} entries[header.nentries];
int crc32;
};
- Read script: List the contents of an NFB.
- Read script: Create an NFB with an NCC.
- Read script: Python module for reading NFB files.
- Download the scripts.
-
Example usage of
nfbfile.py:
import nfbfile
n = nfbfile.NfbFile('Nokia 6230 04-08-2004.nfb')
image = n.read('\\FILES\\Graphics\\OrangeUK6230Wallpaper.jpg')
file('OrangeWallpaper.jpg', 'w').write(image)
-
Example
nfb.py output:
Attempting to rip Nokia 6230 04-08-2004.nfb
Version: 3
Ident: RH-12
Phone: Nokia 6230
Directory entries: 67
FILE \ADVANCED_FUNCTIONS Wed Aug 4 08:47:48 2004 41372 bytes
FILE \CALENDAR Wed Aug 4 08:47:48 2004 164 bytes
FILE \EASE_OF_USE Wed Aug 4 08:47:48 2004 11930 bytes
DIRECTORY \FILES
FILE \FILES\0 Wed Aug 4 08:45:37 2004 35085 bytes
FILE \FILES\1 Wed Aug 4 08:45:42 2004 42360 bytes
FILE \FILES\10 Wed Aug 4 08:46:22 2004 37339 bytes
FILE \FILES\11 Wed Aug 4 08:46:26 2004 28379 bytes
FILE \FILES\12 Wed Aug 4 08:46:31 2004 37381 bytes
FILE \FILES\13 Wed Aug 4 08:46:35 2004 33117 bytes
FILE \FILES\14 Wed Aug 4 08:46:37 2004 16295 bytes
FILE \FILES\15 Wed Aug 4 08:46:38 2004 11997 bytes
FILE \FILES\16 Wed Aug 4 08:46:44 2004 41402 bytes
FILE \FILES\17 Wed Aug 4 08:46:47 2004 24825 bytes
FILE \FILES\18 Wed Aug 4 08:46:52 2004 38202 bytes
FILE \FILES\19 Wed Aug 4 08:46:57 2004 43266 bytes
FILE \FILES\2 Wed Aug 4 08:45:43 2004 4768 bytes
FILE \FILES\20 Wed Aug 4 08:47:03 2004 45931 bytes
FILE \FILES\21 Wed Aug 4 08:47:09 2004 45128 bytes
FILE \FILES\22 Wed Aug 4 08:47:14 2004 41325 bytes
FILE \FILES\23 Wed Aug 4 08:47:20 2004 45787 bytes
FILE \FILES\24 Wed Aug 4 08:47:26 2004 46074 bytes
FILE \FILES\25 Wed Aug 4 08:47:31 2004 39821 bytes
FILE \FILES\26 Wed Aug 4 08:47:39 2004 61245 bytes
FILE \FILES\27 Wed Aug 4 08:47:39 2004 2681 bytes
FILE \FILES\28 Wed Aug 4 08:47:40 2004 2727 bytes
FILE \FILES\29 Wed Aug 4 08:47:40 2004 2340 bytes
FILE \FILES\3 Wed Aug 4 08:45:49 2004 49213 bytes
FILE \FILES\30 Wed Aug 4 08:47:41 2004 2963 bytes
FILE \FILES\31 Wed Aug 4 08:47:41 2004 2091 bytes
FILE \FILES\32 Wed Aug 4 08:47:42 2004 2269 bytes
FILE \FILES\33 Wed Aug 4 08:47:42 2004 2383 bytes
FILE \FILES\34 Wed Aug 4 08:47:42 2004 2588 bytes
FILE \FILES\35 Wed Aug 4 08:47:43 2004 2792 bytes
FILE \FILES\36 Wed Aug 4 08:47:43 2004 2624 bytes
FILE \FILES\37 Wed Aug 4 08:47:43 2004 1019 bytes
FILE \FILES\38 Wed Aug 4 08:47:44 2004 912 bytes
FILE \FILES\39 Wed Aug 4 08:47:44 2004 966 bytes
FILE \FILES\4 Wed Aug 4 08:45:53 2004 31630 bytes
FILE \FILES\40 Wed Aug 4 08:47:44 2004 1062 bytes
FILE \FILES\41 Wed Aug 4 08:47:44 2004 1044 bytes
FILE \FILES\42 Wed Aug 4 08:47:45 2004 1002 bytes
FILE \FILES\43 Wed Aug 4 08:47:45 2004 1039 bytes
FILE \FILES\44 Wed Aug 4 08:47:45 2004 997 bytes
FILE \FILES\45 Wed Aug 4 08:47:45 2004 989 bytes
FILE \FILES\46 Wed Aug 4 08:47:45 2004 1001 bytes
FILE \FILES\47 Wed Aug 4 08:47:46 2004 1393 bytes
FILE \FILES\48 Wed Aug 4 08:47:46 2004 1458 bytes
FILE \FILES\49 Wed Aug 4 08:47:46 2004 1577 bytes
FILE \FILES\5 Wed Aug 4 08:45:58 2004 40822 bytes
FILE \FILES\50 Wed Aug 4 08:47:47 2004 1614 bytes
FILE \FILES\51 Wed Aug 4 08:47:47 2004 1209 bytes
FILE \FILES\52 Wed Aug 4 08:47:47 2004 1167 bytes
FILE \FILES\53 Wed Aug 4 08:47:47 2004 1427 bytes
FILE \FILES\54 Wed Aug 4 08:47:48 2004 1550 bytes
FILE \FILES\55 Wed Aug 4 08:47:48 2004 2646 bytes
FILE \FILES\56 Wed Aug 4 08:47:48 2004 1563 bytes
FILE \FILES\6 Wed Aug 4 08:46:03 2004 43574 bytes
FILE \FILES\7 Wed Aug 4 08:46:07 2004 30433 bytes
FILE \FILES\8 Wed Aug 4 08:46:13 2004 44398 bytes
FILE \FILES\9 Wed Aug 4 08:46:18 2004 39989 bytes
FILE \FILES\FolderIndex Wed Aug 4 08:47:48 2004 437 bytes
FILE \FILES\InfoIndex Wed Aug 4 08:47:48 2004 7315 bytes
FILE \FILES\Language Wed Aug 4 08:47:48 2004 4 bytes
FILE \FUN_FUNCTIONS Wed Aug 4 08:47:48 2004 598 bytes
FILE \MESSAGES Wed Aug 4 08:47:48 2004 622 bytes
FILE \PHONEBOOK Wed Aug 4 08:47:48 2004 1050 bytes
Checksum: 0x2B70D842L VALID