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

Azure file share from Windows cause crash in encrypt #90

Open
chupperdg opened this issue Jul 29, 2024 · 0 comments
Open

Azure file share from Windows cause crash in encrypt #90

chupperdg opened this issue Jul 29, 2024 · 0 comments

Comments

@chupperdg
Copy link

chupperdg commented Jul 29, 2024

Azure Storage Account File Share

Is there an issue with the passcode length? can this easily be changed to be supported?
It works fine from a windows system.
Thanks

$connectTestResult = Test-NetConnection -ComputerName hostxyz.file.core.windows.net -Port 445
if ($connectTestResult.TcpTestSucceeded) {
    # Save the password so the drive will persist on reboot
    cmd.exe /C "cmdkey /add:`"hostxyz.file.core.windows.net`" /user:`"localhost\usrxyz`" /pass:`"YDEVsqXLg9wCZ8N41oRv6TLWUIRgRmcBTgw4hyUyBF4g5hx17qj2dMN4fYNHOjtbdhXhafa6e/tv+AStE1JIKA==`""
    # Mount the drive
    New-PSDrive -Name Z -PSProvider FileSystem -Root "\\hostxyz.file.core.windows.net\xyzpub" -Persist
} else {
    Write-Error -Message "Unable to reach the Azure storage account via port 445. Check to make sure your organization or ISP is not blocking port 445, or use Azure P2S VPN, Azure S2S VPN, or Express Route to tunnel SMB traffic over a different port."
}
github.com/hirochachacha/go-smb2.(*session).encrypt(0xc000574000, {0xc00033e0b0, 0xa6, 0xa6})
        c:/src/golib/src/github.com/hirochachacha/go-smb2/session.go:343 +0x54 fp=0xc000533988 sp=0xc0005338e8 pc=0x1520374
github.com/hirochachacha/go-smb2.(*conn).makeRequestResponse(0xc00054a270, {0x1b0aaa0, 0xc00006e730}, 0x0, {0x1b0bb50?, 0xc000042068})
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:451 +0x1c5 fp=0xc000533a10 sp=0xc000533988 pc=0x151b7c5
github.com/hirochachacha/go-smb2.(*conn).sendWith(0xc00054a270, {0x1b0aaa0, 0xc00006e730}, 0xc000334210?, {0x1b0bb50?, 0xc000042068?})
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:386 +0x234 fp=0xc000533b38 sp=0xc000533a10 pc=0x151b074
github.com/hirochachacha/go-smb2.(*conn).send(...)
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:368
github.com/hirochachacha/go-smb2.treeConnect(0xc000574000, {0xc000334210, 0x2f}, 0x0, {0x1b0bb50, 0xc000042068})
        c:/src/golib/src/github.com/hirochachacha/go-smb2/tree_conn.go:29 +0xa9 fp=0xc000533b90 sp=0xc000533b38 pc=0x15211c9
github.com/hirochachacha/go-smb2.(*Session).Mount(0xc00050c8a0, {0xc000334210?, 0xc000042068?})
        c:/src/golib/src/github.com/hirochachacha/go-smb2/client.go:105 +0x116 fp=0xc000533c20 sp=0xc000533b90 pc=0x150e676
github.com/hirochachacha/go-smb2.(*conn).runSender(0xc00054a270)
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:492 +0xea fp=0xc0006cffc8 sp=0xc0006cff38 pc=0x151bc4a
github.com/hirochachacha/go-smb2.(*Negotiator).negotiate.func1()
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:101 +0x26 fp=0xc0006cffe0 sp=0xc0006cffc8 pc=0x151a7a6
created by github.com/hirochachacha/go-smb2.(*Negotiator).negotiate
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:101 +0x270
github.com/hirochachacha/go-smb2.(*directTCP).ReadSize(0xc000568018)
        c:/src/golib/src/github.com/hirochachacha/go-smb2/transport.go:56 +0x57 fp=0xc000713ea8 sp=0xc000713e60 pc=0x1520f77
github.com/hirochachacha/go-smb2.(*conn).runReciever(0xc00054a270)
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:507 +0x5f fp=0xc000713fc8 sp=0xc000713ea8 pc=0x151bcdf
github.com/hirochachacha/go-smb2.(*Negotiator).negotiate.func2()
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:102 +0x26 fp=0xc000713fe0 sp=0xc000713fc8 pc=0x151a746
created by github.com/hirochachacha/go-smb2.(*Negotiator).negotiate
        c:/src/golib/src/github.com/hirochachacha/go-smb2/conn.go:102 +0x2b3`

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

No branches or pull requests

1 participant