rapid7 / smbj-rpc

Created by Paul Miseiko via the GitHub Connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)

vasilwnag opened this issue · comments

commented

when use this library to get share forder on win10 smb2 , I get this exception NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)

commented

I have solved this problem, edit ServerService.java
final NetrShareEnumRequest request = new NetrShareEnumRequest(2, resumeHandle.getValue());
to
final NetrShareEnumRequest request = new NetrShareEnumRequest(1, resumeHandle.getValue());
but why is this ok???

@vasilwnag I opened #30 to address this.