question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Am getting an error when i run the payload on the target

See original GitHub issue

Please help me out with the error, i am getting the following error msg. Is it a requirement to have a X server running at the target ?

Traceback (most recent call last):
  File "cl.py", line 17, in <module>
  File "/usr/local/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
  File "pynput/__init__.py", line 40, in <module>
  File "/usr/local/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 493, in exec_module
  File "pynput/keyboard/__init__.py", line 31, in <module>
  File "pynput/_util/__init__.py", line 76, in backend
ImportError: this platform is not supported: No module named 'pynput.keyboard._xorg'

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
[18557] Failed to execute script cl

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hash3liZercommented, Nov 29, 2020

Ok, I identified the bug. Will solve it in the few coming days.

0reactions
ghostcommented, Nov 29, 2020

the target is an Ubuntu 20.04 server. below is a screenshot of the command how i compile it

2020-11-29_23-11

Read more comments on GitHub >

github_iconTop Results From Across the Web

Payload uploaded but error : "no session was created"
Confirm that your payload reached the target. Can you see the file? If the payload is in memory, you might not be able...
Read more >
Working with Payloads | Metasploit Documentation
A staged payload means that your payload consists of two main components: a small stub loader and the final stage payload. When you...
Read more >
Why is your Meterpreter session dying? Try these fixes..
When an error occurs such as when a meterpreter session dies, you can quickly get a diagnostic information by running the debug command...
Read more >
Custom Payload Error (can't run on this PC) #10180 - GitHub
I started the Payload Handler in Metasploit (Note that I am not a Virtual Machine user, I have Kali 2018 as my Main...
Read more >
Re: Problems executing file on target using uploadexec
... Payload => meterpreter reverse_https Im trying to execute a file on target, using uploadexec meterpreter script, and im getting the following error: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found