Topic: Components\vcRuntimes_File plugin x86-VC9.7z is corrupted  (Read 1409 times)

0 Members and 1 Guest are viewing this topic.

Components\vcRuntimes_File plugin x86-VC9.7z is corrupted
« on: September 16, 2017, 07:25:05 AM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
When I tried to extract and decode the base64's encoded file
in the Components\vcRuntimes_File.script (version:011),
I found that file x86-VC9.7z is bad/corrupted.

That might be not the only one.
I'm new in this area, but I think there should be some integrity
checking mechanism to avoid uploading bad blob like that.

« Last Edit: September 16, 2017, 05:26:56 PM by Lancelot »

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #1 on: September 16, 2017, 08:16:36 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
I found that file x86-VC9.7z is bad/corrupted.
It works ok.

That might be not the only one.
All works ok so far. Let us know if you figure out.

I'm new in this area,
Reporting how you fail does not require any expertise .

Following your very limited info on your post, there is no such problem.

As anyone new in any area, report how you fail.
 Like anyone else in any forum.

Forum Rules
http://theoven.org/index.php?action=rules
and FAQ
http://theoven.org/index.php?topic=834.0

but I think there should be some integrity
checking mechanism to avoid uploading bad blob like that.
There ARE lots of integrity checking mechanism.
Files are ok on servers and attachment x86-VC9.7z is also fine.

:turtle:

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #2 on: September 16, 2017, 01:33:44 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
Thank you for your prompt and kind response.

I re-downloaded the file form
http://w7pese.cwcodes.net/Projects/Win7PESE/Components/VcRunTimes_File.script
to make sure that I don't get the corrupt file during transmission.

I found that file x86-VC9.7z is bad/corrupted.
It works ok.


I'm not sure what do you meant by OK, is there any procedure
which modified the data further before extracting?

Like I said, I'm new in this area so I don't know yet how
the blob files inserted in script, but if it's just a base64
encoded data to be decoded wihout any other processing, then
yes, the x86-VC9.7z is clearly corrupted.

Even without decoding, you can see that another .7z encoded
data sections start with string "0=N3q8ryccAA" and only the
x86-VC9.7z section start with "0=eJwAC0D0vz" means the 7z header
is different.

I was using app "GUI for WBzip" against vcRuntimes_File.script
to extract the 7z files, but it failed/stopped without warning,
so I extracted the lines and decode them manually (actually. I
build a simple tool for that).

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #3 on: September 16, 2017, 01:46:59 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
I was using app "GUI for WBzip" against vcRuntimes_File.script
to extract the 7z files, but it failed/stopped without warning,
so I extracted the lines and decode them manually (actually. I
build a simple tool for that).

Thanks now for details how you fail :thumbsup:

Before responding other details,

Why you use  "GUI for WBzip" ?

Edit
And can you give link for "GUI för WBzip" and your simple tool ?
« Last Edit: September 16, 2017, 01:52:42 PM by Lancelot »

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #4 on: September 16, 2017, 01:52:30 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15

Before responding other details,

Why you use  "GUI for WBzip" ?

Just a random pick, I don't have any preference.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #5 on: September 16, 2017, 01:54:24 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
And question remains,  why you need to extract that way .?

Are you aware these are files to build some PE projects ?

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #6 on: September 16, 2017, 02:06:06 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
That's also not really matter, I think I just wanted to
compare and decide which VC Runtime to be included.

 

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #7 on: September 16, 2017, 02:14:54 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
Compare what ?
And to decide where ?

you have your mystery . I can only assure you that files are clearly not corrupted.

All OK and fine.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #8 on: September 16, 2017, 02:39:21 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
And can you give link for "GUI för WBzip" and your simple tool ?

I think I got GUI for wbzip from here:
http://reboot.pro/files/file/38-winbuilder-base64-encode-decode-tool-aka-wbzip/

About my tool, I wrote a simple wrapper of my base64 encode/decode library with dead language delphi7.


Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #9 on: September 16, 2017, 02:46:28 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
Compare what ?
And to decide where ?

For instance, why they are exist 2 versions of vc8l/vc9 (vc8/vc9-lite),
What's are the differences? It's easier to us just extract and compare them.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #10 on: September 16, 2017, 02:56:16 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
Code snippet:
Code: [Select]
program wbsx;

{$APPTYPE CONSOLE}

uses Classes, INIfiles, Sysutils;

{$L BBQ.OBJ} { http://github.com/dbat/binhex }
function __base64decode(var source, dest; const length: integer): integer; stdcall external;

const
  lines_ = 'lines';
  encodedfile_ = 'EncodedFile-';
  lenc1 = length(encodedfile_) + 1;

procedure ShowHelp;
begin
  writeln('');
  writeln(' Extract and decode ' + encodedfile_ + ' sections from WinBuilder scripts');
  writeln('');
  writeln(' Usage:');
  //writeln(^i + (ParamStr(0)) + ' filenames...');
  writeln(^i + extractfilename(ParamStr(0)) + ' [ -s ] <filenames>...');
  writeln('');
  writeln(^i' -s : save base64 encoded data (this switch must be given first)');
  writeln(^i' filename: winbuilder''s script file');
  writeln('');
  writeln(' Note:');
  writeln(^i'Result will be saved in folder: ' + encodedfile_);
  writeln(^i'Wildcards (*, ?) are not allowed yet');
  writeln('');
end;

function fileScan(const efn: string; const saveb64: boolean = FALSE): integer;
var
  ini: tmeminifile;
  ssec, sval: TStrings;
  //fs: tfilestream;
  i, n, ret: integer;
  dfn, fn2, s: string;
  p: pchar;

begin
  if not DirectoryExists(encodedfile_) then CreateDir(encodedfile_);
  ini := tmeminifile.Create(efn);
  ssec := TStringList.Create();
  sval := TStringList.Create();
  with ssec as TStringList do begin
    Sorted := FALSE;
    Duplicates := dupIgnore;
  end;
  with sval as TStringList do begin
    Sorted := FALSE;
    Duplicates := dupIgnore;
  end;
  try
    ini.ReadSections(ssec);
    // ssec.BeginUpdate;
    for i := 0 to ssec.Count - 1 do
      if pos(encodedfile_, ssec[i]) = 1 then begin
        // DEBUG: if pos('VC9.7z', ssec[i]) < 1 then continue;
        fn2 := copy(ssec[i], lenc1, length(ssec[i]));
        dfn := encodedfile_ + '\' + fn2;
        write(fn2);

        sval.Clear;
        sval.BeginUpdate;
        for n := 0 to ini.ReadInteger(ssec[i], lines_, -1) do
          sval.Add(ini.ReadString(ssec[i], inttostr(n), ''));
        sval.EndUpdate;
        if saveb64 then sval.SaveToFile(dfn + '_b64');

        s := sval.Text;
        ret := length(s);
        write(' length: ' + inttostr(ret));

        p := pchar(s);
        ret := __base64decode(p^, p^, ret);

        write(' => ' + inttostr(ret));
        writeln;

        with TFileStream.Create(dfn, fmCreate or fmShareDenyWrite) do try
          Position := 0;
          Write(p^, ret);
        finally free
        end;

      end;
  finally
    sval.free;
    ssec.free;
    ini.free;
  end;
  result := 1;
end;

var
  fCmdLine: string;
  i: integer;
  saveb4: boolean;

begin
  fCmdLine := string(System.CmdLine);
  if (ParamCount > 0) then begin
    i := 1;
    saveb4 := ParamStr(i) = '-s';
    if saveb4 then inc(i);
    for i := i to ParamCount do begin
      if pos('*', ParamStr(i)) > 0 then continue;
      if pos('?', ParamStr(i)) > 0 then continue;
      writeln;
      writeln('.script file: ' + ParamStr(i));
      if FileExists(ParamStr(i)) then filescan(ParamStr(i), saveb4);
    end
  end
  else ShowHelp;

end.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #11 on: September 16, 2017, 04:52:25 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
And the question remains,  why you need to extract that way .?
Why you need to extract that way for the projects you have never used.
 From your posts, It seems you have no or very small idea about what you are working on.

Compare what ?
And to decide where ?

For instance, why they are exist 2 versions of vc8l/vc9 (vc8/vc9-lite),
What's are the differences? It's easier to us just extract and compare them.
---->
Are you aware these are files to build some PE projects ?
More:
The answer is obvious to anyone who use projects.
"MS Visual C++ Runtime" plugin give option to use 2 versions of vc8l/vc9 (vc8/vc9-lite),


From your posts, it is %99 you do not use projects.

I advise you to build one of projects, spend some time and see what you are really working on.

:turtle:

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #12 on: September 16, 2017, 05:02:59 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
I think I got GUI for wbzip from here:
I just got and test.
You are right, It is yet again not working  :medusa:, and not our concern at all. :lol:
 We do not provide not working things around here , we only feedback with tools we provide.  :great:


Here projects works fine, files are ok.
 Other plugins and tools you find out here is under your responsibilty.  :wink:

I think there should be some integrity checking mechanism on your side to avoid reporting bad blop like current topic.

I hope you follow previous post advice and practice with projects here, without any other things.

All your answers about current wrong topic post and other wrong things on your posts with wrong conclusions will be resolved by practicing projects like everyone around here.  :thumbsup:

:turtle:
« Last Edit: September 16, 2017, 05:27:49 PM by Lancelot »

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #13 on: September 16, 2017, 06:33:44 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
Compare what ?
And to decide where ?

For instance, why they are exist 2 versions of vc8l/vc9 (vc8/vc9-lite),
What's are the differences? It's easier to us just extract and compare them.
---->
Are you aware these are files to build some PE projects ?
More:
The answer is obvious to anyone who use projects.
"MS Visual C++ Runtime" plugin give option to use 2 versions of vc8l/vc9 (vc8/vc9-lite),

I meant it's easier to us to just just extract and compare them, rather
than asking the very busy author, what are differences between them.

Quote
From your posts, it is %99 you do not use projects.

I advise you to build one of projects, spend some time and see what you are really working on.

:turtle:

I did already build Win7PESE, many times, tried with different setting.

That's why I found out bug like that, and other quirks, like I found that
the nircmd shortcut command is not work upon startup/on autorun in
cd ISO built (the .lnk files were created by nircmd shortcut, but broken).


Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #14 on: September 16, 2017, 06:47:16 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
I hope you follow previous post advice and practice with projects here, without any other things.

All your answers about current wrong topic post and other wrong things on your posts with wrong conclusions will be resolved by practicing projects like everyone around here.  :thumbsup:

:turtle:

I'm sorry if I'm posting to a wrong topic post.
I just wanted to report a bug/an error/founding or something like that.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #15 on: September 16, 2017, 06:54:27 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
*
asking the very busy author, what are differences between them.
But by not giving required info to reproduce your troubles with reasons behind, you cause lots of time wasted.
Same with nircmd on your post.

*
I did already build Win7PESE, many times, tried with different setting.
New info.

That's why I found out bug like that, and other quirks, like I found that
Then you should notice 7z files extracted by "MS Visual C++ Runtime" plugin without any trouble !!!!!!!!!!!!!!
I do not think your Win7PESE build log give any error about extraction problem.
There is no such bug.

I'm new in this area, but I think there should be some integrity
checking mechanism to avoid uploading bad blob like that.
We have checking mechanism for such extraction failure, if the build can not extract, build halts giving the warning and a support log.
Besides we do not have bad blob like that with "MS Visual C++ Runtime" plugin .
So no bug on project side.
It is only your failure to use some other tools we do not use to extract files, it is your personal usage bug.



***
the nircmd shortcut command is not work upon startup/on autorun in
cd ISO built (the .lnk files were created by nircmd shortcut, but broken).
This is out of current topic,
 But again without info provided to reproduce here.
  As far as I am aware, we do not create .lnk files by nircmd shortcut on any of our plugins.
    so question remains, which nircmd shortcut with which plugin ?

    Or simple advice,
      As in all forums on internet,
      post in a way so others can reproduce and understand your trouble.


So far through this topic, the only reproducible info you gave was an old utility that does not work with bug out of projects here ,
 which has nothing to do with projects we provide.
You have some sort of wrong conclusion about an existance of bug, but there is not, proven by building projects with VC Redist plugin.

See other feedback topics where bugs reported by end users in a reproducible way and fixed by us.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #16 on: September 17, 2017, 10:31:32 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
    Or simple advice,
      As in all forums on internet,
      post in a way so others can reproduce and understand your trouble.


I already pointed out that section [EncodedFile-x86-VC9.7z] in VcRunTimes_File.script,
will be base64-decoded to an invalid 7z file.

the line0 data started with string: "eJwAC0D0vz"
while the other .7z started with: "N3q8ryccAA"

means that it will be decoded to a file with an invalid 7z header.

It is corrupted.

Please try to take a look at it / investigate it further.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #17 on: September 18, 2017, 03:24:36 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
*
Please try to take a look at it / investigate it further.
I look again, [EncodedFile-x86-VC9.7z] file is ok.

Nothing changed since reply1 of current topic.
I found that file x86-VC9.7z is bad/corrupted.
It works ok.

*
means that it will be decoded to a file with an invalid 7z header.

It is corrupted.

It is not, already responded:

You have some sort of the wrong conclusion about an existence of a bug, but there is not, proven by building projects with VC Redist plugin.

And the advice was given :
See other feedback topics where bugs reported by end users in a reproducible way and fixed by us.

*
I think there should be some integrity checking mechanism on your side to avoid reporting bad blop like current topic.

Try to look at where you are mistaken, and investigate your wrong logic further.
« Last Edit: September 18, 2017, 03:25:43 AM by Lancelot »

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #18 on: September 18, 2017, 01:45:19 PM »

aa

  • Jr. Chef
  • **
  • Date Registered: Sep 2017
  • Posts: 15
*
Please try to take a look at it / investigate it further.
I look again, [EncodedFile-x86-VC9.7z] file is ok.


Is there any chance that winbuilder get/extracted x86-VC9.7z from
another source, rather than/only from this vcRunTimes_File.script?
Since it's won't extract the valid x86-VC9.7z file from this script
(provided that it only decodes the base64-encoded data in the script,
not doing any other stuff).

Base64 is just a simple encodind/decoding, ratified by RFC. See RFC-3548/4648
https://tools.ietf.org/html/rfc3548.

The "eJwAC0D0" (in section [EncodedFile-x86-VC9.7z]),
will be decoded to: 78 9c 00 0b 40 f4 (not a valid .7z header).

The "N3q8rycc" (in the other .7z sections)
will be decoded to: 37 7a bc af 27 1c (this is a valid .7z signature) http://www.7-zip.org/recover.html.

How could winbuilder produce the valid x86-VC9.7z if it's not:
- getting it from another source, or
- doing other things beside decoding the base64-encoded data?

I have tried as I could to describe the question/issue, if you still don't understand, I give up.

Re: Components\vcRuntimes_File.script x86-VC9.7z is corrupted
« Reply #19 on: September 18, 2017, 02:38:20 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7517
Is there any chance that winbuilder get/extracted x86-VC9.7z from
another source, rather than/only from this vcRunTimes_File.script?
Since it's won't extract the valid x86-VC9.7z file from this
how you come to such wrong conclusion ?

extracted x86-VC9.7z has a nice 7z header starting with
37 7A BC AF 27 1C 00 04
see reference:
http://www.7-zip.org/recover.html

It works ok.

since you wrote:
I did already build Win7PESE, many times, tried with different setting.
you should already notice that file is ok.

*
I have tried as I could to describe the question/issue, if you still don't understand, I give up.

Since reply 1 of current topic,
 I try to explain to you, you have your wrong assumptions and wrong conclusions.
    file is ok, everything is ok. Nothing corrupted. There is no bug.

I think there should be some integrity checking mechanism on your side to avoid reporting bad blop like current topic.

Try to look at where you are mistaken, and investigate your wrong logic further.



*****
Refresh your personal logic integrity checking mechanism on your side to avoid reporting bad blop like current topic.

When you figure out how you mistaken, let us know.
 If you still do not understand feedback given to you, than stop posting till you figure out.

:turtle:
« Last Edit: September 18, 2017, 02:41:27 PM by Lancelot »

 

Powered by EzPortal