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

Xlib.error.DisplayNameError: Bad display name "" #38

Closed
BJM15 opened this issue Oct 21, 2022 · 3 comments
Closed

Xlib.error.DisplayNameError: Bad display name "" #38

BJM15 opened this issue Oct 21, 2022 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@BJM15
Copy link

BJM15 commented Oct 21, 2022

first, i like this botnet.. is good because using telegram . .. but i got this error :

Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/lib/python3.7/runpy.py", line 109, in _get_module_details
import(pkg_name)
File "/usr/local/lib/python3.7/site-packages/pybotnet/init.py", line 1, in
from .pybotnet import PyBotNet
File "/usr/local/lib/python3.7/site-packages/pybotnet/pybotnet.py", line 2, in
from . import util
File "/usr/local/lib/python3.7/site-packages/pybotnet/util.py", line 20, in
from pynput import keyboard
File "/usr/local/lib/python3.7/site-packages/pynput/init.py", line 40, in
from . import keyboard
File "/usr/local/lib/python3.7/site-packages/pynput/keyboard/init.py", line 52, in
from ._xorg import KeyCode, Key, Controller, Listener
File "/usr/local/lib/python3.7/site-packages/pynput/keyboard/_xorg.py", line 39, in
from pynput._util.xorg import (
File "/usr/local/lib/python3.7/site-packages/pynput/_util/xorg.py", line 40, in
_check()
File "/usr/local/lib/python3.7/site-packages/pynput/_util/xorg.py", line 38, in _check
display = Xlib.display.Display()
File "/usr/local/lib/python3.7/site-packages/Xlib/display.py", line 89, in init
self.display = _BaseDisplay(display)
File "/usr/local/lib/python3.7/site-packages/Xlib/display.py", line 71, in init
protocol_display.Display.init(self, *args, **keys)
File "/usr/local/lib/python3.7/site-packages/Xlib/protocol/display.py", line 84, in init
name, protocol, host, displayno, screenno = connect.get_display(display)
File "/usr/local/lib/python3.7/site-packages/Xlib/support/connect.py", line 73, in get_display
return mod.get_display(display)
File "/usr/local/lib/python3.7/site-packages/Xlib/support/unix_connect.py", line 76, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name ""

can you help ? ,

@onionj
Copy link
Owner

onionj commented Oct 22, 2022

Hi.Thanks :), Telegram is being utilized by Pybotnet as a control panel, but you can add more control panels.

...File "/usr/local/lib/python3.7/site-packages/pybotnet/util.py"...
                       ~~~~~~~~~~

you can run pybotnet version 2 with python +3.8

@onionj onionj added help wanted Extra attention is needed question Further information is requested labels Oct 24, 2022
@hanoivip
Copy link

how to by pass this problem? i guess the victim which have no display causing the problem?

@onionj
Copy link
Owner

onionj commented Oct 28, 2022

I think you was installed pybotnet version 1, this file does not exist in version 2

..File "/usr/local/lib/python3.7/site-packages/pybotnet/pybotnet.py", line 2, in from . import util..

please update your python to >=3.8 and run this command: pip3 install "pybotnet>=2" -U to update pybotnet.

@onionj onionj closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants