proxyshell-poc icon indicating copy to clipboard operation
proxyshell-poc copied to clipboard

New-ManagementRoleAssignment error

Open bbxc opened this issue 3 years ago • 9 comments

127.0.0.1 - - [16/Aug/2021 15:43:22] "POST /wsman HTTP/1.1" 200 - OUTPUT:

ERROR: The term 'New-ManagementRoleAssignment' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

bbxc avatar Aug 16 '21 07:08 bbxc

The user you're using doesn't have the proper permissions

dmaasland avatar Aug 16 '21 07:08 dmaasland

. @dmaasland dmaasland

您使用的用户没有适当的权限

The user you're using doesn't have the proper permissions

This means that the current user and permissions can not be attacked?I will try another user. thanks.

bbxc avatar Aug 16 '21 07:08 bbxc

Same issue but with New-MailboxExportRequest and I'm positive I have the permissions.

LarsMueller91 avatar Aug 16 '21 09:08 LarsMueller91

Try using the command

New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "your user"

manually and share the output

dmaasland avatar Aug 16 '21 09:08 dmaasland

可以控制邮箱的话,有没有办法读邮箱中的消息呢?

solitary-sen avatar Aug 16 '21 10:08 solitary-sen

I'm sorry, that's not a language I understand :)

dmaasland avatar Aug 16 '21 10:08 dmaasland

Is there any way to solve that any user can execute

caonima-png avatar Aug 17 '21 04:08 caonima-png

Probably

dmaasland avatar Aug 17 '21 07:08 dmaasland

How to solve

caonima-png avatar Aug 17 '21 10:08 caonima-png