dotNetFx40_Full_x86_x64.exe is failing in Windows 7 x86 and x64 version

Hi, I was trying to setup malboxes for Windows 7 x86 and x64 version. Everything is working fine but when system tries to isntall dotNetFx40_Full_x86_x64.exe (http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe) it failes.

Can sombody help me how to fix this. Log file : log.txt

C:\Users\admin\Desktop>malboxes build win7_32_analyst Generating configuration files... Configuration files are ready Starting packer to generate the VM

virtualbox-iso output will be in this color.

==> virtualbox-iso: Downloading or copying Guest additions virtualbox-iso: Downloading or copying: file:///C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso ==> virtualbox-iso: Downloading or copying ISO virtualbox-iso: Downloading or copying: file:///I:/Backup/Drive_D/ISOs/Windo ws/Windows%207%20Editions/OfficeISOs/SW_DVD5_Win_Pro_N_7w_SP1_32BIT_English_-2_MLF_X17-59635.ISO ==> virtualbox-iso: Creating floppy disk... virtualbox-iso: Copying files flatly from floppy_files virtualbox-iso: Copying file: C:/Users/admin/AppData/Local/malboxes/malboxes/Cache/Autounattend.xml virtualbox-iso: Copying file: c:/python36/lib/site-packages/malboxes/installconfig/windows7/enablewinrm.ps1 virtualbox-iso: Done copying files from floppy_files virtualbox-iso: Collecting paths from floppy_dirs virtualbox-iso: Resulting paths from floppy_dirs : [] virtualbox-iso: Done copying paths from floppy_dirs ==> virtualbox-iso: Creating virtual machine... ==> virtualbox-iso: Creating hard drive... ==> virtualbox-iso: Attaching floppy disk... ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2310) ==> virtualbox-iso: Executing custom VBoxManage commands... virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1489491970 --memory 4096 virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1489491970 --cpus 1 ==> virtualbox-iso: Starting the virtual machine... virtualbox-iso: The VM will be run headless, without a GUI. If you want to virtualbox-iso: view the screen of the VM, connect via VRDP without a password to virtualbox-iso: 127.0.0.1:5922 ==> virtualbox-iso: Waiting 10s for boot... ==> virtualbox-iso: Typing the boot command... ==> virtualbox-iso: Waiting for WinRM to become available... ==> virtualbox-iso: Connected to WinRM! ==> virtualbox-iso: Uploading VirtualBox version info (5.1.14) ==> virtualbox-iso: Provisioning with Powershell... ==> virtualbox-iso: Provisioning with shell script: c:/python36/lib/site-packages/malboxes/scripts/windows/disable_auto-updates.ps1 virtualbox-iso: ? virtualbox-iso: virtualbox-iso: Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows virtualbox-iso: virtualbox-iso: virtualbox-iso: SKC VC Name Property virtualbox-iso: --- -- ---- -------- virtualbox-iso: 0 0 WindowsUpdate {} virtualbox-iso: virtualbox-iso: virtualbox-iso: Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate virtualbox-iso: virtualbox-iso: virtualbox-iso: SKC VC Name Property virtualbox-iso: --- -- ---- -------- virtualbox-iso: 0 0 AU {} ==> virtualbox-iso: Provisioning with shell script: c:/python36/lib/site-packages/malboxes/scripts/windows/disable_defender.ps1 virtualbox-iso: ?#< CLIXML virtualbox-iso: Set-ItemProperty : Cannot find path 'HKLM:\Software\Policies\Microsoft\Windows x000D__x000ADefender' because it does not exist.x000D__x000AAt C:\Windows\Temp\script.ps1:2 char:17_x000D__x000A_+ Set-ItemProperty <<<< -Path "HKLM:\Software\Policies\Microsoft\Windows Defen_x000D__x000A_der" -Name "DisableAntiSpyware" -Value 1_x000D__x000A_ + CategoryInfo : ObjectNotFound: (HKLM:\Software...indows Defend x000D__x000A er:String) [Set-ItemProperty], ItemNotFoundException_x000D__x000A_ + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetIt x000D__x000A emPropertyCommand_x000D__x000A_ x000D__x000ASet-ItemProperty : Cannot find path 'HKLM:\Software\Policies\Microsoft\Windows x000D__x000ADefender' because it does not exist.x000D__x000AAt C:\Windows\Temp\script.ps1:3 char:17_x000D__x000A_+ Set-ItemProperty <<<< -Path "HKLM:\Software\Policies\Microsoft\Windows Defen_x000D__x000A_der" -Name "DisableRoutinelyTakingAction" -Value1_x000D__x000A_ + CategoryInfo : ObjectNotFound: (HKLM:\Software...indows Defend x000D__x000A er:String) [Set-ItemProperty], ItemNotFoundException_x000D__x000A_ + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetIt x000D__x000A emPropertyCommand_x000D__x000A_ x000D__x000A ==> virtualbox-iso: Provisioning with shell script: c:/python36/lib/site-packages/malboxes/scripts/windows/vmtools.ps1 virtualbox-iso: TrustedPublisher virtualbox-iso: Certificate "CN=Oracle Corporation, O=Oracle Corporation, L=Redwood Shores, S=California, C=US" added to store. virtualbox-iso: CertUtil: -addstore command completed successfully. ==> virtualbox-iso: Provisioning with shell script: c:/python36/lib/site-packages/malboxes/scripts/windows/malware_analysis.ps1 virtualbox-iso: virtualbox-iso: Updated 1 rule(s). virtualbox-iso: Ok. virtualbox-iso: virtualbox-iso: Ok. virtualbox-iso: ==> virtualbox-iso: Provisioning with shell script: c:/python36/lib/site-packages/malboxes/scripts/windows/installtools.ps1 virtualbox-iso: ? virtualbox-iso: Mode LastWriteTime Length Name virtualbox-iso: ---- ------------- ------ ---- virtualbox-iso: d---- 3/14/2017 5:22 PM chocInstall virtualbox-iso: Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust e rrors, you may need to do one or more of the following: (1) upgrade to .NET Framework 4.5+ and PowerShell v3, (2) specify internal Chocolatey package location (set $env:chocolateyDownloadUrl prior to install or host the package internally), (3) use the Download + PowerShell method of install. See https://chocolatey.org/install for all install options. virtualbox-iso: Getting latest version of the Chocolatey package for download. virtualbox-iso: Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.3 virtualbox-iso: . virtualbox-iso: Downloading 7-Zip commandline tool prior to extraction. virtualbox-iso: ?#< CLIXML Extracting C:\Users\malboxes\AppData\Local\Temp\chocolatey\c hocInstall\chocolatey.zip to C:\Users\malboxes\AppData\Local\Temp\chocolatey\ch ocInstall... virtualbox-iso: Installing chocolatey on this machine virtualbox-iso: Creating ChocolateyInstall as an environment variable (targeting 'Machine') virtualbox-iso: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' virtualbox-iso: WARNING: It's very likely you will need to close and reopen your shell before you can use choco. virtualbox-iso: Restricting write permissions to Administrators virtualbox-iso: We are setting up the Chocolatey package repository. virtualbox-iso: The packages themselves go to 'C:\ProgramData\chocolatey\lib' virtualbox-iso: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). virtualbox-iso: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' virtualbox-iso: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. virtualbox-iso: virtualbox-iso: Creating Chocolatey folders if they do not already exist. virtualbox-iso: virtualbox-iso: WARNING: You can safely ignore errors related to missing log files when virtualbox-iso: upgrading from a version of Chocolatey less than 0.9.9. virtualbox-iso: 'Batch file could not be found' is also safe to ignore. virtualbox-iso: 'The system cannot find the file specified' - also safe. virtualbox-iso: chocolatey.nupkg file not installed in lib. virtualbox-iso: Attempting to locate it from bootstrapper. virtualbox-iso: PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... virtualbox-iso: 'C:\Windows\Microsoft.Net\Framework\v4.0.30319' was not found or this is forced virtualbox-iso: Downloading 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe' to 'C:\Users\ma lboxes\AppData\Local\Temp\dotNetFx40_Full_x86_x64.exe' - the installer is 40+ M Bs, so this could take a while on a slow connection. virtualbox-iso: Installing 'C:\Users\malboxes\AppData\Local\Temp\dotNetFx40_Full_x86_x64.exe' - virtualbox-iso: this may take awhile with no output. virtualbox-iso: WARNING: Try #1 of .NET framework install failed with exit code '16389'. Trying again. virtualbox-iso: 'C:\Windows\Microsoft.Net\Framework\v4.0.30319' was not found or this is forced Not setting tab completion: Profile file does not exist at 'C:\Users\malboxes\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.Error installing .NET Framework 4.0 (exit code 16389). x000D__x000A Please install the .NET Framework 4.0 manually and then try to install Chocola_x000D__x000A_tey again. _ x000D__x000A_ Download at 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-B_x000D__x000A_C36-D6EA96C8DAAE/dotNetFx40_Full_x005f_x86_x005f_x64.exe'x000D__x000AAt C:\Users\malboxes\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolatey_x000D__x000A_setup.psm1:688 char:14_x000D__x000A_+ throw <<<< "Error installing .NET Framework 4.0 (exit code $($s.Exit_x000D__x000A_Code)). n Please install the .NET Framework 4.0 manually and then try to insta_x000D__x000A_</S><S S="Error">ll Chocolatey again.n Download at '$NetFx4Url'"x000D__x000A + CategoryInfo : OperationStopped: (Error installin...ll_x005f_x86_x005f_x64. x000D__x000A exe':String) [], RuntimeException_x000D__x000A_ + FullyQualifiedErrorId : Error installing .NET Framework 4.0(exit code 1 x000D__x000A 6389). x000D__x000A Please install the .NET Framework 4.0 manually and then try to install Ch x000D__x000A Chocolatey again. x000D__x000A Download at 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4 x000D__x000A AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x005f_x86_x005f_x64.exe'x000D__x000A x000D__x000A virtualbox-iso: Installing 'C:\Users\malboxes\AppData\Local\Temp\dotNetFx40_Full_x86_x64.exe' - virtualbox-iso: this may take awhile with no output. virtualbox-iso: ERROR: .NET Framework install failed with exit code '16389'.

virtualbox-iso: This will cause the rest of the install to fail.

==> virtualbox-iso: Unregistering and deleting virtual machine... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: Script exited with non-zero exit status: 1. Allo wed exit codes are: [0]

==> Some builds didn't complete successfully and had errors: --> virtualbox-iso: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.

packer completed with return code: 1 Packer failed. Build failed. Exiting...

该提问来源于开源项目:GoSecure/malboxes

查看全部
weixin_39628384
weixin_39628384
2020/11/22 15:04
  • 点赞
  • 收藏
  • 回答
    私信

3个回复