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

Leakless.exe recognized as virus? #739

Closed
PawelKowalski99 opened this issue Oct 8, 2022 · 2 comments
Closed

Leakless.exe recognized as virus? #739

PawelKowalski99 opened this issue Oct 8, 2022 · 2 comments
Labels
question Questions related to rod

Comments

@PawelKowalski99
Copy link

PawelKowalski99 commented Oct 8, 2022

Rod Version: v0.111.0

The code to demonstrate your question

// This is the template to demonstrate how to test Rod.
func TestLab(t *testing.T) {
	g := setup(t)
	g.cancelTimeout() // Cancel timeout protection

	browser, page := g.browser, g.page

	// You can use the pre-launched g.browser for testing
	g.Eq(browser.MustVersion().ProtocolVersion, "1.3")

	// You can also use the pre-created g.page for testing
	page.MustNavigate(g.blank()).MustWaitLoad()
	g.Has(page.MustInfo().URL, "blank.html")
}

What you got

C:\Users\pawel\go\src\github.com\PawelKowalski99
λ cd rod\

C:\Users\pawel\go\src\github.com\PawelKowalski99\rod(master -> origin)
λ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

C:\Users\pawel\go\src\github.com\PawelKowalski99\rod(master -> origin)
λ go test -run TestLab
parallel test 12
--- FAIL: TestLab (0.44s)
panic: fork/exec C:\Users\pawel\AppData\Local\Temp\leakless-0c3354cd58f0813bb5b34ddf3a7c16ed\leakless.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software. [recovered]
        panic: fork/exec C:\Users\pawel\AppData\Local\Temp\leakless-0c3354cd58f0813bb5b34ddf3a7c16ed\leakless.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

goroutine 19 [running]:
testing.tRunner.func1.2({0xd75420, 0xc0001de000})
        C:/Program Files/Go/src/testing/testing.go:1396 +0x24e
testing.tRunner.func1()
        C:/Program Files/Go/src/testing/testing.go:1399 +0x39f
panic({0xd75420, 0xc0001de000})
        C:/Program Files/Go/src/runtime/panic.go:884 +0x212
github.com/go-rod/rod/lib/utils.glob..func2({0xd75420?, 0xc0001de000?})
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/utils/utils.go:60 +0x25
github.com/go-rod/rod/lib/utils.E(...)
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc00003a0c0?)
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lib/launcher/launcher.go:351 +0x67
github.com/go-rod/rod_test.TesterPool.new({0xc000084680?, 0x729?})
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:108 +0x25
github.com/go-rod/rod_test.TesterPool.get({0xc00008e060?, 0xc0000a0288?}, 0xc000084680)
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:138 +0xbe
github.com/go-rod/rod_test.glob..func1(0x13891e0?)
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/setup_test.go:59 +0x6c
github.com/go-rod/rod_test.TestLab(0x1?)
        C:/Users/pawel/go/src/github.com/PawelKowalski99/rod/lab_test.go:9 +0x35
testing.tRunner(0xc000084680, 0xf82518)
        C:/Program Files/Go/src/testing/testing.go:1446 +0x10b
created by testing.(*T).Run
        C:/Program Files/Go/src/testing/testing.go:1493 +0x35f
exit status 2
FAIL    github.com/go-rod/rod   1.266s

What you expected to see

I wanted to see clear tests passing.

What have you tried to solve the question

Nothing yet. I wanted to share the problem asap.

Working system: Windows 10

@PawelKowalski99 PawelKowalski99 added the question Questions related to rod label Oct 8, 2022
@PawelKowalski99
Copy link
Author

Uninstalled malwarebytes, installed bitdefender and recovered from quarantine.
Basically antivirus qurantines leakless.exe

FIxed

@ysmood
Copy link
Member

ysmood commented Oct 9, 2022

You can disable leakless, the browser process auto-kill won't work anymore, but you can add a defer on your main function to close the browser manually:

u := launcher.New().Leakless(false).MustLaunch()

browser := rod.New().ControlURL(u).MustConnect()
defer browser.MustClose()

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

No branches or pull requests

2 participants