ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/golang/1.22.0/src/cmd/go/testdata/script/mod_fileproxy_vcs_missing_issue51589.txt
# This test checks that "go mod tidy -e" do not panic when
# using a file goproxy that is missing some modules.
# Verifies golang.org/issue/51589

# download the modules first
env GO111MODULE=on
env GOPATH=$WORK/gopath
cd $WORK/x
go mod tidy

# Use download cache as file:/// proxy.
[GOOS:windows] env GOPROXY=file:///$WORK/gopath/pkg/mod/cache/download
[!GOOS:windows] env GOPROXY=file://$WORK/gopath/pkg/mod/cache/download
rm $WORK/gopath/pkg/mod/cache/download/golang.org/x/text/
go mod tidy -e
stderr '^go: rsc.io/[email protected] requires\n\tgolang.org/x/text@.*: reading file://.*/pkg/mod/cache/download/golang.org/x/text/.*'
! stderr 'signal SIGSEGV: segmentation violation'

-- $WORK/x/go.mod --
module example.com/mod

go 1.17

require rsc.io/quote v1.5.2

require (
	golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
	rsc.io/sampler v1.3.0 // indirect
)

-- $WORK/x/x.go --
package mod

import (
	"fmt"

	"rsc.io/quote"
)

func Echo() {
	fmt.Println(quote.Hello())
}