|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
Extract NSIS installations with 7-zip!
FYI:
7-zip (www.7-zip.org) just released 4.40 beta which has the ability to extract files from an NSIS installation. The notes say that it exports "some" NSIS installations, so it must have something to do with the compression method used. (It seems to work OK with standard NSIS LZMA compression. Haven't tested any others.) Here's the SourceForge page for it: http://sourceforge.net/projects/sevenzip/ |
![]() |
![]() |
![]() |
#2 | |
Junior Member
Join Date: May 2006
Location: Salto, Uruguay
Posts: 7
|
Re: Extract NSIS installations with 7-zip!
Quote:
|
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2006
Location: Salto, Uruguay
Posts: 7
|
From the 7-zip Open Discussion forum, "When does "7-Zip" support more formats ???"
http://sourceforge.net/forum/forum.p...forum_id=45797 "By: Igor Pavlov - ipavlov RE: NSIS Support 2006-05-02 00:57 NSIS uses modified Deflate (zlib). 7-Zip supports it. NSIS uses modified BZip2. 7-Zip doesn't support it now." |
![]() |
![]() |
![]() |
#4 |
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,369
|
7-Zip 4.4
What's new:
- 7-Zip now can unpack some installers created by NSIS any details on what it does? |
![]() |
![]() |
![]() |
#5 |
16-Bit Moderator
Join Date: Apr 2004
Posts: 4,349
|
It simply unpacks the files, wich are integrated in the installer.
It is not able to decompile your installer. 7Zip users have no access to your .nsi script. ![]() My Winamp Info Report | My Winamp Backup Log | My WACUP Info Report Own Projects: | Winamp Tray Control Icon Pack v3.5.3 | Winamp Backup Tool v3.6.0 | >> Winamp Info Tool v6.1.0 << | German Translations: | Offizielle Deutsche Winamp Sprachdatei v5.66 | Offizielle Deutsche Winamp Sprachdatei Plus Version 5.666 Useful Winamp Plug-ins: | SNESAmp | 64th Note | NotSo FatSo | Highly Experimental PSF Player | Yar Matey! Playlist Copier v1.12 | |
![]() |
![]() |
![]() |
#6 |
Join Date: Sep 2003
Posts: 27,873
|
what about the [NSIS].nsi entry?
![]() -daz |
![]() |
![]() |
![]() |
#7 | |
16-Bit Moderator
Join Date: Apr 2004
Posts: 4,349
|
Quote:
You have to change parts in the [NSIS].nsi, otherwise it will not compile. My Winamp Info Report | My Winamp Backup Log | My WACUP Info Report Own Projects: | Winamp Tray Control Icon Pack v3.5.3 | Winamp Backup Tool v3.6.0 | >> Winamp Info Tool v6.1.0 << | German Translations: | Offizielle Deutsche Winamp Sprachdatei v5.66 | Offizielle Deutsche Winamp Sprachdatei Plus Version 5.666 Useful Winamp Plug-ins: | SNESAmp | 64th Note | NotSo FatSo | Highly Experimental PSF Player | Yar Matey! Playlist Copier v1.12 | |
|
![]() |
![]() |
![]() |
#8 |
Major Dude
Join Date: May 2003
Posts: 681
|
Greets, Brummelchen Last edited by Brummelchen; 2nd May 2006 at 22:10. |
![]() |
![]() |
![]() |
#9 |
Join Date: Sep 2003
Posts: 27,873
|
that's what needs the tweaks so it would create a compilable [NSIS].nsi
Brummelchen: already noted by the ref i did in my last post, just ran out of time to merge the two threads together like it is now ![]() -daz |
![]() |
![]() |
![]() |
#10 |
Major Dude
Join Date: May 2003
Posts: 681
|
the extracted script is not ready to work - it only shows
an approximate script to get the idea behind. i have in mind that nsis compiles the script for runtime use and not for scripting base. works like aPatch or a codefusion patch where the instructions are hold inside encoded. Greets, Brummelchen |
![]() |
![]() |
![]() |
#11 |
Join Date: Sep 2003
Posts: 27,873
|
all i'm going on is what kichik mentioned briefly when it was brought up that there was the [NSIS].nsi shown. i can't remember what was fully said but i'm sure he said that it's possible to improve what's decoded to get closer if not to be able to allow compiling of the script. i could be wrong so please don't hold me to it
-daz |
![]() |
![]() |
![]() |
#12 |
Member
Join Date: Apr 2006
Posts: 66
|
well as you people know innosetup have a special unpacker to unpack installation and nicer arrange the script.
7zip also does the same to zlib and lzma, where it actually made the nsi script so nicerly that using username and password can be shown so clearly. basically the unauthorised just need to use one set of access to enter the installer or just grab the files being extracted. I just really hope nsis could become a better security on this one as I see many many people using it because it is a really good installer compiler and " The Way Of Art Script ". Thanks for all at least bzip2 should do the job.For the time being. |
![]() |
![]() |
![]() |
#13 |
Major Dude
Join Date: May 2003
Posts: 681
|
lzma is cracked in simple words
![]() i made a test package for me with password in lzma and it was clear to read either other methods were very clear. i have my own solution now but using bzip2 is the only way for the moment. Greets, Brummelchen |
![]() |
![]() |
![]() |
#14 | |
16-Bit Moderator
Join Date: Apr 2004
Posts: 4,349
|
Quote:
I guess later 7z versions will be able to unpack bzip2 compressed installers too My Winamp Info Report | My Winamp Backup Log | My WACUP Info Report Own Projects: | Winamp Tray Control Icon Pack v3.5.3 | Winamp Backup Tool v3.6.0 | >> Winamp Info Tool v6.1.0 << | German Translations: | Offizielle Deutsche Winamp Sprachdatei v5.66 | Offizielle Deutsche Winamp Sprachdatei Plus Version 5.666 Useful Winamp Plug-ins: | SNESAmp | 64th Note | NotSo FatSo | Highly Experimental PSF Player | Yar Matey! Playlist Copier v1.12 | |
|
![]() |
![]() |
![]() |
#15 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
If you put plain-text passwords in your script, they can be extracted anyway. The introduction of this 7-zip feature makes no difference.
The "decompiled" scripts are also completely useless for most purposes, it's a bit like viewing the assembly code of an application. Everything done by the preprocessor, all names, high-level logic etc. are gone. So it's not like someone could steal your complete script. |
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
If you want to be sure of security you can write an Plugin for special functions.
As said before, 7Zip is not able to decompile your installer fully. 7Zip users have no access to your .nsi script. Idea: Use an uncompressed NSIS installer and pack with UPX. (which is also unpackable, but not with 7ZIP ![]() * But better make a plugin if you want to be sure of security via special functions * Or, since one has the NSIS source, one can alter the code and take some measure one think are useful (e.g. reversed/scrambleblock of LZMA format). That is one of the main advantages of having Open Source! BTW - MSI is "un-packable" also, MS own ORCA tool helps there ![]() - NSIS is an installer tool, not a protector tool "Just do it" |
![]() |
![]() |
![]() |
#17 |
Guest
Posts: n/a
|
This shouldn't be a surprise
This shouldn't surprise anyone - I routinely extract NSIS, InstallShield and MSI files before I install them as a precautionary measure. When some ambitious developer thinks he'll disguise his installer, I use a virtual machine to make before/after snapshots to double-check, then package up the snapshot differences as a replacement for the faulty original installer.
Look, it's an installer. It's little more than a dressed-up self extracting archive. There are legitimate reasons for end users to browse installer .exe files, and I'm glad Igor implemented NSIS support into 7-Zip as the tool I was using was quite unfriendly. Depending on how modular his code is, I may adapt 7-Zip to support MSI and InstallShield as well. Those of you trying to disguise your installers or convince Igor to cripple 7-Zip must have little experience in computer security - no matter what you do to your installers, you can't thwart a before/after snapshot from a virtual machine. If a user has bad intentions, this is what they'll do anyway - it doesn't matter what you do to the installer. And if they really want your script, they'll just attach a debugger and grab it from memory, or run the installer in a full CPU emulator. |
![]() |
![]() |
#18 |
Junior Member
Join Date: Oct 2007
Posts: 1
|
I know this is an old thread, but it may be useful for others..
Normally I dont post just because I found a solution, but here I am.. I want my WinAmp so stripped I can, I have a license for the Pro so I've used the full rock-on edition.. extracted it with 7zip and then just used the files in the base folder.. winamp.exe, dll files and then started it up.. it created the ini file and such.. and I just saved my settings.. now I have a perfect working fully stripped and configured WinAmp just like I want it.. and the best of all.. just copy those files to a fresh install of Windows and it works out of the box =D no need to install it.. perfect for unattended windows xp ![]() // Chris |
![]() |
![]() |
![]() |
#19 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
the installation I created was extracted using 7z successfully. please help me with better security so that I cannot extract
|
![]() |
![]() |
![]() |
#20 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#21 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
can you guide me in more detail? I watched it many times but didn't understand it
|
![]() |
![]() |
![]() |
#22 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
You need to be able to compile nsis from the source code to do this.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#23 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
thank you !
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|