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

[BUG] VNC Client Error #592

Open
badboycxcc opened this issue Jul 23, 2022 · 6 comments
Open

[BUG] VNC Client Error #592

badboycxcc opened this issue Jul 23, 2022 · 6 comments
Labels
bug Something isn't working missing information Provide more information for us to work this issue.

Comments

@badboycxcc
Copy link

Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.

Empire Version

  • Empire 4.6.1

OS Information (Linux flavor, Python version)

  • OS: Kali Debian 5.18.5-1kali6 (2022-07-07) x86_64 GNU/Linux
  • Python: Python 3.10.5
  • target: Windows 11

Describe the bug

VNC Error and Screenhost Error

VNC

(Empire: R653HXK1) > vnc
[*] Tasked R653HXK1 to run Task 5
[*] Starting VNC server...
[*] Task 5 results received
Error running command: System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.IndexOutOfRangeException: 索引超出了数组界限。
   在 NVNC.VncHost.WriteAuthentication(String password)
   在 NVNC.VncServer.Start()
   在 Task.Execute(String Password, String Port, String Username)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 Sharpire.Coms.Task44(PACKET packet)
   在 Sharpire.Coms.ProcessTasking(PACKET packet)

Screenhost

[+] File Get-Screenshot/BACKDOOR_2022-07-23_13-27-16.png from R653HXK1 saved
[!] Error processing result packet from R653HXK1 : Mapped instance expected for relationship comparison to object.   Classes, queries and other SQL elements are not accepted in this context; for comparison with a subquery, use Tasking.agent.has(**criteria).

To Reproduce

Expected behavior

Screenshots

Additional context

@badboycxcc badboycxcc added the bug Something isn't working label Jul 23, 2022
@badboycxcc
Copy link
Author

image
image

@Cx01N
Copy link
Member

Cx01N commented Sep 14, 2022

@badboycxcc Are you still having this issue in 4.8? I just tested it and it seems to be working. I used an HTTP listener with a PowerShell agent on a Windows 11 machine. What was your configuration?
image

@Cx01N Cx01N added the missing information Provide more information for us to work this issue. label Sep 14, 2022
@Cx01N Cx01N changed the title [BUG] [BUG] VNC Client Error Sep 14, 2022
@badboycxcc
Copy link
Author

Oh, I haven't tested it yet, please wait. Thank you so much for fixing this, but I'll have to test it before I can tell you how it turns out.

@badboycxcc
Copy link
Author

How do I change to connect to vnc?

@badboycxcc
Copy link
Author

origin_img_v2_d233d75c-0561-4e1b-9235-276ea56319fg

origin_img_v2_502d07bc-de7e-45f1-ac85-189eeaf7058g

@Cx01N
Copy link
Member

Cx01N commented Oct 7, 2022

The command VNC starts the server with some presets. It looks like you are getting it to successfully compile now and getting a task return.

vinnybod added a commit that referenced this issue Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working missing information Provide more information for us to work this issue.
Projects
None yet
Development

No branches or pull requests

2 participants