Metasploitable 3 Build on windows 11 - errors - windows

Trying to build a Metasploitable 3 on virtual box on windows 11.
Running powershell command below:
PS C:\Users\Paul\Desktop\Metasploitable3> ./build.ps1 windows2008
Returned after sending command:
'''
Compatible version of VirtualBox found.
Compatible version of Packer found.
Compatible version of Vagrant found.
Compatible version of vagrant-reload plugin found.
All requirements found. Proceeding...
Building metasploitable3-win2k8 Vagrant box...
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: http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
virtualbox-iso: Error downloading: checksums didn't match expected: 4263be2cf3c59177c45085c0a7bc6ca5
==> virtualbox-iso: ISO download failed.
Build 'virtualbox-iso' errored: ISO download failed.
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: ISO download failed.
==> Builds finished but no artifacts were created.
Error building the Vagrant box using Packer. Please check the output above for any error messages.
At C:\Users\Paul\Desktop\Metasploitable3\build.ps1:157 char:10
+ throw "Error building the Vagrant box using Packer. Please c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Error building ...error messages.:String) [], RuntimeException
+ FullyQualifiedErrorId : Error building the Vagrant box using Packer. Please check the output above for any error
messages.
'''

I can see that the .iso you're trying to download gives a 404:
https://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
Try to change that link in your script, so it points to an existing .iso-file.

I too have been looking to build a fresh Metasploitable 3 VM recently. Unfortunately, the build process starts by first downloading an ISO of 7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso which is the Windows Server 2008 evaluation DVD image file, and Microsoft appears to have removed that from their downloadable files offerings. To proceed, you (and I) will have to find another source for this ISO, and so far I've had no luck with sourcing the file. Best of luck - hopefully things will go better for you than they have for me on seeking this file.

Related

Error: Failed to install Homebrew Portable Ruby (and your system version is too old)

Hello Guys Can U help For Mac ?
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Already downloaded:
/Users/mda/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Error: Checksum mismatch. Expected:
1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Actual:
65193ff2dfdd121466094ed9db6a01486f41b7d507c66be2862442fd617f9ced
Archive:
/Users/mda/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
To retry an incomplete download, remove the file above. Error: Failed
to install Homebrew Portable Ruby (and your system version is too
old)!

libboost1.74-dev is not installing on Ubuntu 16.04

My current boost package is libboost-all-dev(default version 1.58.0.1) which is very old for my current need. So I tried -
sudo apt-get install libboost1.74 libboost1.74-dev
It showed me error of somekind -
libboost1.74 is already the newest version (1.74-0~16~ubuntu16.04.1).
The following NEW packages will be installed:
libboost1.74-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/9,325 kB of archives.
After this operation, 139 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 393826 files and directories currently installed.)
Preparing to unpack .../libboost1.74-dev_1.74-0~16~ubuntu16.04.1_amd64.deb ...
Unpacking libboost1.74-dev (1.74-0~16~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libboost1.74-dev_1.74-0~16~ubuntu16.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/include/boost/exception_ptr.hpp', which is also in package libboost1.58-dev:amd64 1.58.0+dfsg-5ubuntu3.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libboost1.74-dev_1.74-0~16~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
However I tried several times before to manually install boost libraries. They does not seem to work though so I deleted them manually. Is this problem related to my manual deletion process? Or maybe I am doing something wrong?
The message makes it clear that you need to uninstall 1.58 first:
trying to overwrite '/usr/include/boost/exception_ptr.hpp', which is also in package libboost1.58-dev

Failed importing Oracle VM on Virtualbox

I am fairly new to virtualbox and i want to install Oracle Database on my mac but i keep getting this error upon importing to virtualbox
i tried uninstall and reinstalling the virtualbox but keeps getting the same error can someone help me?
Go to downloaded link copy down Md5 check sum and verify with md5 command for the downloaded file,if checksum don't match you need to download again.(most probably you have incomplete or corrupted file).Since import failed I think it's best to download again and verify checksum
e.g Dowloaded OracleBigDatalite as well as md5sum.txt
$ cat md5sum.txt
26197c5d1f8e22102dc2f3641a58a851 BigDataLite411.7z.001
91198541deae1925888534ad5bc68e87 BigDataLite411.7z.002
67a2c534d407a18b5193df262173b815 BigDataLite411.7z.003
2da5928c2cca49a8e296a3fc2ef52de0 BigDataLite411.7z.004
ff35b60c518162e9fd4a15c170d53ee1 BigDataLite411.7z.005
970a860bb7e0efacee7a609a1e4d4414 BigDataLite411.7z.006
601927d6910acde33fe1fb377799d4a4 BigDataLite411.7z.007
c6e3763d73217ce7ffc921123f2c7c4b BigDataLite411.7z.008
b71ed4a3fbd79c269d6fe59e630c0ec1 BigDataLite411.7z.009
f2d25d520719e6d7adea273bf48ec147 BigDataLite411.7z.010
dc6db7a2834022747e0b7aba160e0a23 BigDataLite411.7z.011
ade4d056b6c71912f727eb5f57cc3db6 BigDataLite411.7z.012
$ md5sum BigDataLite411.7z.001
26197c5d1f8e22102dc2f3641a58a851 BigDataLite411.7z.001
First file in downloaded files checksum is matching with md5.txt(md5sum command on Ubuntu WSL on Mac I'm hoping it's md5)
P.S:-I don't have enough points to comment

Found more than 2 exes for binskim, panic! in MobSF

See the image
This was happen when it was downloading and installing Binskim, Please help me.
Note: I'm trying to install MobSF.
E:\Pentest\Android\Tools\Mobile-Security-Framework-MobSF\install\windows>python setup.py install
[*] Downloading config file..
[*] Saving to File config.txt
[*] Reading config file..
[*] Creating other folders...
[*] Checking dependencies...
[+] rsa is installed.
[+] Everything good.
[*] Downloading nuget..
[*] Saving to File nuget.exe
[*] Downloading and installing Binskim...
[!] Found more than 2 exes for binskim, panic!
I had the same issue and I made a print in setup.py to see the paths:
C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\net461\win-x64\BinSkim.exe C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\net461\win-x64\BinSkim.exe.config C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\net461\win-x86\BinSkim.exe C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\net461\win-x86\BinSkim.exe.config C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\netcoreapp2.0\win-x64\BinSkim.exe C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\netcoreapp2.0\win-x86\BinSkim.exe
I deleted C:\Users\G\MobSF\Tools\Microsoft.CodeAnalysis.BinSkim.1.5.0-beta\tools\net461 and it worked.

Error building Erica on Windows

I'm trying to play around with a CouchApp, for which erica is apparently the tool to use. Building things from source on Windows is always a nightmare, but I think I've almost got it. I installed the dependencies of Erlang and rebar, then ran erica\bootstrap.bat, but I get the following error:
C:\Programming\couchapp\erica>bootstrap.bat
==> mochiweb (get-deps)
==> oauth (get-deps)
==> ibrowse (get-deps)
==> couchbeam (get-deps)
==> erica (get-deps)
==> mochiweb (compile)
==> oauth (compile)
==> ibrowse (compile)
==> couchbeam (compile)
==> erica (compile)
c:/Programming/couchapp/erica/src/erica.erl:none: redefining macro 'WITH_MOCHIJSON'
ERROR: compile failed while processing C:/Programming/couchapp/erica: rebar_abort
There doesn't appear to be any logs, so does anyone know what might cause this?
I'm on a fresh install of Windows 8 x64.
It seems that bootstrap.bat just doesn't work. You need to run this three commands to simulate Makefile behavior: rebar get-deps
rebar compile
escript bootstrap
On my Windows 8 it works fine.

Resources