Syno DSM Extractor GUI for Windows

TN-Notebooks

Benutzer
Sehr erfahren
Maintainer
Mitglied seit
30. Mai 2019
Beiträge
296
Punkte für Reaktionen
292
Punkte
113
I tested this Rekommandation from Sp1derman

i deinstalled Ubuntu - reinstalled Ubuntu 24.04
try to use my usual Username of Windows for the Ubuntu and get a Failure Message in the CMD
My Username Starts with a Big Letter and only smal / lower Letters are accepted as first Letter.
so i inserted the Username starting with a smal Letter and the Pass is accepted without any failures
I do not want a adtional User in Windows - so I Changed in Windows my first Letter of my User to smal / lower and reboot
Started all
reinstall script and Libraries
and it works

to confirm and due to other Apps on system i renamed my User back to the original Format with first High Letter / reboot
And its not working any more
Tried to install a additional user with my Username just with a low first Letter - and Windows fails and says User exist already ..... but exist with a high first Letter - so for windows there is no real Difference

I can confirm too that all Trouble is based on Usernames and Logins
Would be great if that can be solves
Suggestion -
1. fix of Username Bug
2 Automatic Insert of Password
3. selection of destination Folder - (source File not deleted)
 
Zuletzt bearbeitet:

DaveR

Benutzer
Sehr erfahren
Mitglied seit
30. Mrz 2022
Beiträge
515
Punkte für Reaktionen
901
Punkte
164
I think the easiest solution to fix the username bug would be:
  1. Create /sde folder with permissions 777
  2. Change SDE-GUI.exe to use /sde instead of the sde folder in Ubuntu user's home folder.
That would mean:
  1. Usernames aren't needed.
  2. sudo isn't needed, so no need to enter your password.
  3. Extraction will be faster as there's no need to wait 10 seconds for the user to enter a password.
  4. The powershell window can be hidden. Though I would need to capture it's output and show the output.
  5. There'd be no need to ask if the user wants to close the powershell window.
Adding a setting to set a destination folder for the extracted files will easy. I could add a "Extract to..." context menu option so you can choose a different destination folder for each pat or spk file when you extract it.

Or maybe I'll add an "Extract to" choice in the main window below the "Select file". And the Out Path will be auto populated by the last path used if "Extract to same folder as pat/spk file" is unchecked.

1739149059196.png
 

TN-Notebooks

Benutzer
Sehr erfahren
Maintainer
Mitglied seit
30. Mai 2019
Beiträge
296
Punkte für Reaktionen
292
Punkte
113
Your Idea sounds good with the SDE Folder .... may in C - Programs x86
and the "Extract to" would be great
 

DaveR

Benutzer
Sehr erfahren
Mitglied seit
30. Mrz 2022
Beiträge
515
Punkte für Reaktionen
901
Punkte
164
Try this test version. https://github.com/007revad/Syno_DS.../v1.1.1.22/SDE-GUI_1.1.2.30_test_exe_only.zip

It has a password setting. If the Ubuntu password is set it automatically enters the password in the WSL window.
1739180347114.png

And if "Extract to same folder as pat/spk file" is not ticked you get to choose where to extract it to. The "Out Path" defaults to the last path used so you don't have to select a folder each time if you want to use the same folder. Each pat and/or spk file is extracted to it's own subfolder.
1739180469119.png

It also now does "sudo -s" first so it always has permission to "cd /" which should solve the "user bug".

To prevent the issue @maxblank had it now uses /sde with permissions set to 777 instead of /home/<username>/sde
This change requires you to create the /sde folder with the 777 permissions:
  1. Open the Ubuntu WSL shell window.
  2. Open the Ubuntu WSL shell window and Enter the following command and press Enter:
    sudo mkdir -m 777 /sde

  3. Then Install Scripts.
  4. And Install Libraries.
1739181914466.png
 

DaveR

Benutzer
Sehr erfahren
Mitglied seit
30. Mrz 2022
Beiträge
515
Punkte für Reaktionen
901
Punkte
164
PS There are still some things I want fix or improve before I release it properly with an installer etc.

And I just discovered a bug in v1.1.2.30 :confused: If "Extract to same folder as pat/spk file" is not ticked it does not move the extracted files to the selected folder.

Fixed in v1.1.2.31. Link in previous comment.
 
Zuletzt bearbeitet:

DaveR

Benutzer
Sehr erfahren
Mitglied seit
30. Mrz 2022
Beiträge
515
Punkte für Reaktionen
901
Punkte
164
PPS There is a bug in v1.1.2.31
If "Extract to same folder as pat/spk file" is not ticked it move the extracted files to the location where the pat/spk is instead of the selected folder.

I'll release v1.1.2.32 tomorrow. It's getting late here, I'm tired, and making too many mistakes.
 

Yippie

Benutzer
Mitglied seit
01. Feb 2011
Beiträge
669
Punkte für Reaktionen
63
Punkte
54
Why would one want to extract those .spk or .pat files at all?
ATM, I see no practical use behind this,do you?
 

maxblank

Benutzer
Contributor
Sehr erfahren
Maintainer
Mitglied seit
25. Nov 2022
Beiträge
5.121
Punkte für Reaktionen
2.929
Punkte
309
If we didn't see any benefit in it, then we wouldn't be discussing and testing it here. 😉
If you don't see any benefit in it, why are you interested?
 

Yippie

Benutzer
Mitglied seit
01. Feb 2011
Beiträge
669
Punkte für Reaktionen
63
Punkte
54
No offense here on my side, sorry if it sound to rude, but I just was after the use case of such a tool and did not see one so far, at least for my person, in a first run.

But, I always try to learn sthg. new of course and @TN-Notebooks already gave an example where this tool may become handy.
 
Zuletzt bearbeitet von einem Moderator:

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.200
Punkte für Reaktionen
432
Punkte
393

maxblank

Benutzer
Contributor
Sehr erfahren
Maintainer
Mitglied seit
25. Nov 2022
Beiträge
5.121
Punkte für Reaktionen
2.929
Punkte
309
But, I always try to learn
No problem, all good. I see the following case where experienced analysts can look at the packages and updates to find undiscovered vulnerabilities.
 
  • Like
Reaktionen: DaveR

DaveR

Benutzer
Sehr erfahren
Mitglied seit
30. Mrz 2022
Beiträge
515
Punkte für Reaktionen
901
Punkte
164
A new version 1.2.0.33 is available: https://github.com/007revad/Syno_DSM_Extractor_GUI/releases
  • Added "Extract To" option
  • Added setting for sudo password
  • Changed to automatically insert sudo password into WSL window
  • Bug fix for "Failed to cd /" when Windows username and Ubuntu user name are different
  • Bug fix for sometimes being unable to access Ubuntu /home//sde folder
  • Changed to show "No files to extract" instead of "Finished" if there was nothing extracted
 


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat