Total SQX 1.10 (packer plug-in)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ARenna
Junior Member
Junior Member
Posts: 21
Joined: 2004-10-26, 12:07 UTC
Location: Italy
Contact:

Post by *ARenna »

Hi, Lefteous,
I just tested beta version. All works fine. Very good!
Just a question: I was not able to reproduce (with version 1.06) the error that caused the first change you listed in your post.
More precisely, I created a non-solid archive with both unpack and listing passwords, but I was able to modify (add-remove files) the archive without destroying it. I tried it with both encryption methods.
So, the question is: what you mean with changing the archive?
Sorry for the question...
Thank you very much!
ARenna
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ARenna
thanks for testing!

what you mean with changing the archive?
Yes maybe changing the archive is expressed to general. Try editing a file inside an archive. When TC asks you if you want to repack the modified file into the archive answer yes.
This won't work with 1.06 but should work fine with the latest beta version.
ARenna
Junior Member
Junior Member
Posts: 21
Joined: 2004-10-26, 12:07 UTC
Location: Italy
Contact:

Post by *ARenna »

Hi, Lefteous,
Lefteous wrote:Try editing a file inside an archive. When TC asks you if you want to repack the modified file into the archive answer yes.
I was not able to edit directly a file into the archive (I edit files through ChoiceEditor plugin, TC behaviour may be a little different...), so I tried to unpack the file, edit it and repack. Result: the file disappear from the file list in the archive. Also restarting TC and retrying to re-pack the file, it does not appear in the archive. I think this was you mean about "destruction", because the archive already exists.
Lefteous wrote: This won't work with 1.06 but should work fine with the latest beta version.
Confirmed! Thank you!
ARenna
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Lefteous
If I ( with v. 1.07beta2) change (edit) a file in a non solid archive with an unpack password, then the changed file is not unpack protected after the editing.

This only applies to non solid archives, not to solid ones, but it doesn't matter whether the archive has a listing password.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Unpack password handling has changed in 1.07. I forget to mention this. Please try restarting TC or unloading the plug-in or just open another archive and try again.
Please report here if you can still reproduce it after resrtaing TC.
ARenna
Junior Member
Junior Member
Posts: 21
Joined: 2004-10-26, 12:07 UTC
Location: Italy
Contact:

Post by *ARenna »

Lefteous wrote:Unpack password handling has changed in 1.07. I forget to mention this. Please try restarting TC or umloading the plug-in and try again.
Please report here if you can still reproduce it after resrtaing TC.
Hi, Lefteous,
I find the following behaviour. I created two archives, A and B, both with unpack and listing passwords. If I open A (double-click or ctrl-PgDn) I must insert password. Without closing TC, next times I try to open A, no password asked; also if I run the command "Unload all plugins", I can open A without inserting password: the only way is to restart TC.
After opening A as depicted above, if I want to open B I, obviously, must insert password. But if I want to re-open A, then password is required. So, without unloading plugin or restarting TC I obtain the required result just switching between encrypted archives.
I think this is normal for archives. Is the same behaviour I noted installing plugins directly from archives. The first time I double click on a plugin archive, it starts the installation; next times I try, just opens the archive. For letting re-install the plugin, I must to open another archive, then re-open the plugin archive.
Same behaviour also in 1.06 version, but I think, at this stage, is not important.
Sorry for obvious observations, just for sake of completeness.
Thank you
ARenna
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Lefteous
Please report here if you can still reproduce it after resrtaing TC
I can - and I already did restart TC when first testing.

Code: Select all

[Pack]
EnableAudioCompression=1
FileFormat=1
CompressionRate=4
SolidArchives=0
DictionarySize=3
ExeCompression=1
TextCompression=1
TextMemory=1
TextOrder=7
MultimediaCompression=1
AudioCompression=1
AudioChannels=1
AudioChannelsWidth=16
RGBCompression=1
UltraMatchLink=9
RecoveryData=0
ExternalRecoveryData=0
Encryption=4
CreateSignature=0
Envelope=2
SignatureFile=
StoreExtendedTimestamp=1
StoreSecurityAttributes=0
StoreStreams=1
AutoSaveComments=0
PerformExtendedTest=0
TempFolder=
VolumeSize=0
UserVolumeUnit=0
FileNames=1
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ARenna
I find the following behaviour. I created two archives, A and B, both with unpack and listing passwords. If I open A (double-click or ctrl-PgDn) I must insert password. Without closing TC, next times I try to open A, no password asked; also if I run the command "Unload all plugins", I can open A without inserting password: the only way is to restart TC.
After opening A as depicted above, if I want to open B I, obviously, must insert password. But if I want to re-open A, then password is required. So, without unloading plugin or restarting TC I obtain the required result just switching between encrypted archives.
I think this is normal for archives.
Yes it should work exactly as you described. When an archive has been opened succesfully Total Commander (not my plug-in) caches the archive's content until another archive is selected.
Do you expect another behavior? I'm open for improvements.
The first time I double click on a plugin archive, it starts the installation; next times I try, just opens the archive. For letting re-install the plugin, I must to open another archive, then re-open the plugin archive.
Yes that's normal TC behavior. You can press Ctrl+PageDn to open an installation archive. In this case it's never executed.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
That doesn't sound good. :shock:
Could you provide step by step intructions how to reproduce the bug? (Should be straightforward for a Total Commander beta tester :) )
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

1. Select some files (only archive attribute set), no dirs.
2. Press Ctrl+Alt+F5
3. Choose sqx packer ("Also pack path names" is checked)
4. Click the Configure button
5. Deselect "Create solid archive" (SQX-version set to 2.0)
6. Click Security tab
7. Check "Protect unpacking files"
8. Enter password and confirm (256 Bit AES is chosen)
9. Click OK
10. Click OK - the archive is made.
11. Press Enter on the new archive
12. Press F4 to edit one of the (text) files (Metapad 3.51 LE)
13. Press Yes when TC asks if you want to unpack the file to edit it
14. Enter the password asked for by Total-SQX
15. Delete some characters in the file
16. Save the changes and exit the text editor.
17. Press Yes when TC asks if you want to repack the changed file.
18. Exit the archive (Ctrl+PgUp)
19. Shut down TC
20. Open TC again
21. Open the archive again
22. Press F4 on the previously edited file
23. Press Yes when TC asks if you want to edit the file.

Now, Total-SQX should ask for the unpack password (like in step 14) - but it doesn't - the file is just opened directly in the editor. The pasword protection of that file is simply lost. The other files in the archive still has their password protection though.

Hope that clarifies it :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

if you want to test the changes before 1.07 is released please download the latest beta version:
http://www.lefteous.de/tc/archives/totalsqx/totalsqx_1.07_beta_3.zip
If anyone else is interested don't hesitate to download and test.

Changes since 1.07 BETA 2:
- CHANGED When a password is required to update a solid archive a new dialog now asks for a repack passwords instead of an unpack password. The new dialog is not yet localized. It's currently impossible to reuse the unpack protection password for repacking.
- CHANGED Unused passwords are no longer displayed in option dialog.
- FIXED A new dialog asks the user for a password before updating non solid archives. The new dialog is not yet translated. You cannot apply passwords of old files in the archive at the moment but you are free to enter the same.

Please also test if there are new problems.

Update instruction:
Install Total SQX 1.06 prior to installing the beta version. Backup your old TotalSQX.wcx then unpack the new TotalSQX.wcx to your TotalSQX directory.
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Lefteous
CHANGED When a password is required to update a solid archive a new dialog now asks for a repack passwords instead of an unpack password.
If I do NOT use the SAME password that was origianlly used when first packing the file, then TC HANGS!

How to reproduce:
1. Pack a solid archive whit an unpack protection pathword of for example "xx".
2. Open the archive and edit the file. Save the file
3. In the new dialog saying: "A password is required to repack the archive" enter the password "yy".
4. Press OK - TC hangs!
Last edited by petermad on 2006-03-05, 18:18 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Thanks for testing! I just get the dialog again and again until I press the cancel button.
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Another thing! Every time I edit a file inside an archive, a directory named SQX_x (x = 0-n) with the content of the archive is made in my TEMP dir.

This directory is NOT deleted by the plugin after the repacking. This leaves all the other files, that might have been in the archive, open and free to read even though theese files were encrypted while they were in the archive - Something of a security flaw!
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I just get the dialog again and again until I press the cancel button
As I said my TC hangs - I tried it again with a freh wincmd.ini - still the same. There is a lot of disk activity until I kill TC with Task manager - and I just noticed a huge (6Mb) file that was generated afterwards called: %temp%\WER731d.dir00\TOTALCMD.EXE.mdmp . This dir also contains a TOTALCMD.EXE.hdmp file. I don't know if that is of any help?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply