rejetto forum

Recent Posts

21
HFS ~ HTTP File Server / Re: Running HFS Behind A VPN
« Last post by patriciafoster on June 03, 2021, 07:30:21 AM »
Can you ping any other devices by hostname? It sounds like the DNS settings for your VPN are setup incorrectly, you need to set it up so that points to the local DNS server when connected.
22
HFS ~ HTTP File Server / Any one want to have a look at my HFS in Python?
« Last post by NaitLee on May 30, 2021, 04:10:15 PM »
It's a hard work till now and my Python version of HFS can work ;D
Now you can use it as a personal nas drive with your beloved raspberry pi (if you have) and template~

Here's it's repository: https://github.com/NaitLee/PHFS
Feel free to star it :D  or say this to geeks around you!
23
HTML & templates / Re: The "Takeback" template - A different & modern taste
« Last post by vladimirov70 on May 30, 2021, 02:56:32 PM »
Exellent template! Thank you.
24
Bug reports / Re: HFS did not save the file system or can't restore it.
« Last post by vladimirov70 on May 30, 2021, 02:53:49 PM »
Thank you all for participating in solving the problem! I'll fix it gradually.
25
Bug reports / Re: HFS did not save the file system or can't restore it.
« Last post by NaitLee on May 30, 2021, 08:42:28 AM »
I've gone deeper at early time, and found that a vfs file is consisted of "chunks", for example, the char \x18 (DEC 24) marks a part of zlib compressed data.  ::)

Also in classesLib.pas, something named "tlv" manages to read vfs file, but it's a little complex...

I tried with python zlib module, by simply splitting the file content with b'\x18' and decompress the parts, also failed  :'(
26
Bug reports / Re: HFS did not save the file system or can't restore it.
« Last post by LeoNeeson on May 30, 2021, 07:56:34 AM »
I've checked HFS source code, but cannot understand how vfs file "chunk" works, thus I have no idea to decompress a vfs file with external tool.
Maybe someone else can explain this to us... :D
Search on 'main.pas' for 'addVFSheader' and you will see HFS is using ZLIB compression.



I've tried to decompress a VFS, and had "partial" success, following this steps...

WARNING: If you follow the next instructions, ALWAYS backup all your files first! Don't blame me if you do something wrong, or if you lose or corrupt some file, or if this doesn't work. If you choose to follow this, do it at your OWN risk.

1) Download Offzip 0.4.1 from HERE (it's a command line utility for doing zlib decompression).

2) If you have a VFS named example.vfs run offzip with this:

Code: [Select]
offzip -a -z 31 example.vfs C:\
This will generate a dat file, like for example: C:\00000046.dat

3) Then using a HEX Editor, edit your '00000046.dat' and change paths.

4) Finally you reimport/compress your edited dat file on the vfs, with:

Code: [Select]
offzip -a -r -z 31 example.vfs C:\
5) Open HFS and load your edited VFS, and you will get a warning message:

"This file is corrupted (CRC). Going on may lead to problems. It is adviced to stop loading. Stop?"

6) Click on 'Yes' and see if it works or not. In my case, it failed. :'(

So, feel free to experiment using this tool, until you get the exact method to extract the data.



@Rejetto: adding an option to temporally save the VFS as an uncompressed file (without using ZLIB compression), could come handy in case some advanced user wants to externally edit the VFS. Or even better adding an option to blindly change drive paths in a VFS, for example, from C:\ to E:\ as this user is wanting. As always, my disclaimer: I don't need this (and I'm sure you won't like to overload HFS with options, so, do what you think is best). :)

Cheers,
Leo.-
28
HTML & templates / Re: I've updated the Template Gallery in wiki!
« Last post by vladimirov70 on May 29, 2021, 08:41:49 PM »
Thnks!
29
Bug reports / Re: HFS did not save the file system or can't restore it.
« Last post by vladimirov70 on May 29, 2021, 11:45:38 AM »
Thank you friend! That was my first thought, too. But when I open vfs file from Sublime Text (Notepad++ e.t.c.), I see , File 56 KB[/URL]
30
HFS ~ HTTP File Server / Re: Is there a way to add login message?
« Last post by D on May 29, 2021, 03:56:38 AM »
Yes that's what I was looking for, many thanks.