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

fix go code engine #5762

Closed
wants to merge 2 commits into from
Closed

fix go code engine #5762

wants to merge 2 commits into from

Conversation

dogancanbakir
Copy link
Member

@dogancanbakir dogancanbakir commented Oct 23, 2024

Proposed changes

Closes #5759

$ go run . -t test_template.yaml -code -v -debug      

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.3.5

                projectdiscovery.io

[VER] Started metrics server at localhost:9092
[INF] Current nuclei version: v3.3.5 (latest)
[INF] Current nuclei-templates version: v10.0.2 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 68
[INF] Templates loaded for current scan: 1
[INF] Executing 1 signed templates from pd
[VER] [go-code-engine] Executed code on local machine 
[DBG] [go-code-engine] Dumped Executed Source Code for 

package main

import "fmt"

func main() {
    fmt.Println("hello world")
}

[DBG] [go-code-engine] Dumped Code Execution for 

hello world

[go-code-engine] [code] [info]  ["hello world"]

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@tarunKoyalwar
Copy link
Member

tarunKoyalwar commented Oct 24, 2024

was tracking a engine compilation issue and flakiness in windows machines , resolving it with indirectly fixed this issue as well

projectdiscovery/gozero#18

#5767 (comment)

@tarunKoyalwar
Copy link
Member

superseeded by #5767

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.

[BUG] go engine doesn't work in code template
3 participants