From nobody Mon Sep 20 18:11:42 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 95DFB17CFF53 for ; Mon, 20 Sep 2021 18:11:53 +0000 (UTC) (envelope-from mbeis.bsd@xs4all.nl) Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.xs4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HCt1N4Dkqz4h6k for ; Mon, 20 Sep 2021 18:11:52 +0000 (UTC) (envelope-from mbeis.bsd@xs4all.nl) Received: from cust-4d3d4e1c ([IPv6:fc0c:c15c:9b91:d718:ab52:6970:6e3e:f35f]) by smtp-cloud9.xs4all.net with ESMTPA id SNlWmxNTHcSrkSNlZmBRTf; Mon, 20 Sep 2021 20:11:45 +0200 Date: Mon, 20 Sep 2021 20:11:42 +0200 (CEST) From: Marco Beishuizen Reply-To: Marco Beishuizen To: freebsd-ports@freebsd.org Subject: Re: security/metasploit: package ... is not in GOROOT In-Reply-To: <123eeb3e-e6cc-e9ec-c31-99e0386e108c@xs4all.nl> Message-ID: <665bd892-bdff-ffdd-6beb-f0280b2ac54@xs4all.nl> References: <123eeb3e-e6cc-e9ec-c31-99e0386e108c@xs4all.nl> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CMAE-Envelope: MS4xfMhC26BIXgbTmHQXQNss8vKXTQUytqqnudm9PeMB+of7NSdNpXKISkh3ZD+z5qbuUyAJWETd+Dr96cAov+bJTzySr6ycGbp8XijZ0N9nRU+A1guj6GoC 5Taid2huy83S+MKUxMOOTVZeuU6gun+KjvfFvAhxPg/IbjZP68aoGhuSDCDZGKhUplIDaWhT3dCEKQ== X-Rspamd-Queue-Id: 4HCt1N4Dkqz4h6k X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=xs4all.nl; spf=pass (mx1.freebsd.org: domain of mbeis.bsd@xs4all.nl designates 194.109.24.30 as permitted sender) smtp.mailfrom=mbeis.bsd@xs4all.nl X-Spamd-Result: default: False [-3.89 / 15.00]; HAS_REPLYTO(0.00)[mbeis.bsd@xs4all.nl]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.109.24.30:from]; FREEMAIL_FROM(0.00)[xs4all.nl]; R_SPF_ALLOW(-0.20)[+ip4:194.109.24.0/24]; TO_DN_NONE(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[xs4all.nl,none]; RCVD_IN_DNSWL_LOW(-0.10)[194.109.24.30:from]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[xs4all.nl]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[xs4all.nl]; RCPT_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Sun, 19 Sep 2021, the wise Marco Beishuizen wrote: > Hi, > > I'm trying to create an portupdate for metasploit. The created patch is > working fine and the new metasploit works, but when starting metasploit I get > some warnings: > > [...] > [!] The following modules could not be loaded!..| > [!] > /usr/local/share/metasploit/modules/auxiliary/scanner/msmail/exchange_enum.go > [!] > /usr/local/share/metasploit/modules/auxiliary/scanner/msmail/onprem_enum.go > [!] /usr/local/share/metasploit/modules/auxiliary/scanner/msmail/host_id.go > [!] Please see /home/marco/.msf4/logs/framework.log for details. > [...] I discovered that in the default go env a setting "GO111MODULE" is set to "". Changing this to "GO111MODULE=off" results the error to disappear. So anyone got an idea how to alter the go environment in the metasploit makefile? Thanks in advance, Regards, Marco -- The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. -- Saul Alinsky