Skip to content

[BUG]Create a new interface crashed on win10 #163

@wgf4242

Description

@wgf4242

OS: Windows 10 Pro 22H2 19045.4046

Both Ligolo-ng v0.8.2 and v0.8.1 crash when Creating a new interface crashed

? Specify a session : 1 - kali@kali - 192.168.80.169:48738 - 000c29bbe859
[Agent : kali@kali] » autoroute
? Select routes to add: 192.168.121.134/24
? Create a new interface or use an existing one? Create a new interface
time="2025-10-10T10:48:49+08:00" level=info msg="Generating a random interface name..."
time="2025-10-10T10:48:49+08:00" level=info msg="Using interface name validdarkstar"
time="2025-10-10T10:48:49+08:00" level=info msg="Creating routes for validdarkstar..."
? Start the tunnel? Yes
time="2025-10-10T10:48:50+08:00" level=info msg="Starting tunnel to kali@kali (000c29bbe859)"


1 [running]:
golang.zx2c4.com/wintun.(*lazyProc).Addr(...)
        /home/runner/go/pkg/mod/golang.zx2c4.com/wintun@v0.0.0-20211104114900-415007cec224/dll.go:60
golang.zx2c4.com/wintun.CreateAdapter({0xc0003cfdb0?, 0xc0004ba880?}, {0x16f6df6, 0x9}, 0x0)
        /home/runner/go/pkg/mod/golang.zx2c4.com/wintun@v0.0.0-20211104114900-415007cec224/wintun.go:92 +0x15a
golang.zx2c4.com/wireguard/tun.CreateTUNWithRequestedGUID({0xc0003cfdb0, 0xd}, 0xc0004ba8c8?, 0x5dc)
        /home/runner/go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.0-20220703234212-c31a7b1ab478/tun/tun_windows.go:73 +0x45
golang.zx2c4.com/wireguard/tun.CreateTUN(...)
        /home/runner/go/pkg/mod/golang.zx2c4.com/wireguard@v0.0.0-20220703234212-c31a7b1ab478/tun/tun_windows.go:65
github.com/nicocha30/ligolo-ng/pkg/proxy/netstack/tun.New({0xc0003cfdb0, 0xd})
        /home/runner/work/ligolo-ng/ligolo-ng/pkg/proxy/netstack/tun/wireguard.go:29 +0x55
github.com/nicocha30/ligolo-ng/pkg/proxy/netstack.(*NetStack).new(0xc00028c960, {{0xc0003cfdb0?, 0x1fea300?}, 0x1595180?})
        /home/runner/work/ligolo-ng/ligolo-ng/pkg/proxy/netstack/stack.go:199 +0x3ab
github.com/nicocha30/ligolo-ng/pkg/proxy/netstack.NewStack({{0xc0003cfdb0?, 0xc000353788?}, 0x10?}, 0x0)
        /home/runner/work/ligolo-ng/ligolo-ng/pkg/proxy/netstack/stack.go:110 +0x77
github.com/nicocha30/ligolo-ng/pkg/proxy.NewLigoloTunnel({{0xc0003cfdb0?, 0x4?}, 0x17088e8?})
        /home/runner/work/ligolo-ng/ligolo-ng/pkg/proxy/proxy.go:37 +0x1a
github.com/nicocha30/ligolo-ng/cmd/proxy/app.StartTunnel(0xc000332000, {0xc0003cfdb0, 0xd})
        /home/runner/work/ligolo-ng/ligolo-ng/cmd/proxy/app/app.go:149 +0x125
github.com/nicocha30/ligolo-ng/cmd/proxy/app.init.0.func11(0xc0003a7220)
        /home/runner/work/ligolo-ng/ligolo-ng/cmd/proxy/app/interfaces.go:360 +0x80f
github.com/desertbit/grumble.(*App).RunCommand(0xc0000b2460, {0xc0003b6030?, 0x9?, 0x1988e68?})
        /home/runner/go/pkg/mod/github.com/desertbit/grumble@v1.1.3/app.go:270 +0x185
github.com/desertbit/grumble.(*App).runShell(0xc0000b2460)
        /home/runner/go/pkg/mod/github.com/desertbit/grumble@v1.1.3/app.go:469 +0x4bb
github.com/desertbit/grumble.(*App).Run(0xc0000b2460)
        /home/runner/go/pkg/mod/github.com/desertbit/grumble@v1.1.3/app.go:401 +0x545
github.com/desertbit/grumble.Main(0x1fea2c0?)
        /home/runner/go/pkg/mod/github.com/desertbit/grumble@v1.1.3/grumble.go:36 +0x13
main.main()
        /home/runner/work/ligolo-ng/ligolo-ng/cmd/proxy/main.go:191 +0xb45

After copying wintun.dll to the directory, the error no longer occurs. However, the new network still cannot be accessed after starting the tunnel.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions