Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenBSD for `LookPath' function. #860

Merged
merged 1 commit into from Apr 16, 2023
Merged

Conversation

lu4nx
Copy link
Contributor

@lu4nx lu4nx commented Apr 16, 2023

Hi, Nuclei's Headless feature relies on the go-rod library and looks for Chrome executables via the LookPath function, but it could not be found in OpenBSD, so I added the patch.

The following is some of the information in OpenBSD:

$ cat hi.go                                                                                                                                                                                            
package main

import (
	"fmt"
	"runtime"
)

func main() {
	fmt.Println(runtime.GOOS)
}
$ go run hi.go 
openbsd
$ whereis chrome
/usr/local/bin/chrome
$ uname -a
OpenBSD my-openbsd 7.3 GENERIC.MP#1125 amd64

@ysmood ysmood enabled auto-merge (squash) April 16, 2023 04:36
@ysmood ysmood disabled auto-merge April 16, 2023 04:48
@ysmood ysmood merged commit f0a91df into go-rod:master Apr 16, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants