Viewing 15 posts - 46 through 60 (of 138 total)
  • Author
    Posts
  • #76227
    Hossam H.I.MHossam H.I.M
    Participant
    #76228
    Hossam H.I.MHossam H.I.M
    Participant

    root@kali:/opt/empire# ./ps-empire server
    (pymysql.err.OperationalError) (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)
    (Background on this error at: https://sqlalche.me/e/20/e3q8)
    Traceback (most recent call last):
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 569, in connect
    sock = socket.create_connection(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/usr/lib/python3.11/socket.py”, line 851, in create_connection
    raise exceptions[0]
    File “/usr/lib/python3.11/socket.py”, line 836, in create_connection
    sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3288, in raw_connection
    return self.pool.connect()
    ^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 452, in connect
    return _ConnectionFairy._checkout(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 1267, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 716, in checkout
    rec = pool._do_get()
    ^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 169, in _do_get
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 167, in _do_get
    return self._create_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 393, in _create_connection
    return _ConnectionRecord(self)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 678, in __init__
    self.__connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 902, in __connect
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 898, in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/create.py”, line 637, in connect
    return dialect.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py”, line 615, in connect
    return self.loaded_dbapi.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/__init__.py”, line 94, in Connect
    return Connection(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 327, in __init__
    self.connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 619, in connect
    raise exc
    pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “/opt/empire/empire/server/core/db/base.py”, line 34, in try_create_engine
    with engine.connect():
    ^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3264, in connect
    return self._connection_cls(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 147, in __init__
    Connection._handle_dbapi_exception_noconnection(
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 2426, in _handle_dbapi_exception_noconnection
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3288, in raw_connection
    return self.pool.connect()
    ^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 452, in connect
    return _ConnectionFairy._checkout(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 1267, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 716, in checkout
    rec = pool._do_get()
    ^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 169, in _do_get
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 167, in _do_get
    return self._create_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 393, in _create_connection
    return _ConnectionRecord(self)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 678, in __init__
    self.__connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 902, in __connect
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 898, in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/create.py”, line 637, in connect
    return dialect.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py”, line 615, in connect
    return self.loaded_dbapi.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/__init__.py”, line 94, in Connect
    return Connection(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 327, in __init__
    self.connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 619, in connect
    raise exc
    sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)
    (Background on this error at: https://sqlalche.me/e/20/e3q8)
    Failed connecting to database using mysql+pymysql://empire_user:empire_password@localhost:3306
    Perhaps the MySQL service is not running.
    Try executing: sudo systemctl start mysql
    root@kali:/opt/empire# cd ./ps-empier clint
    bash: cd: too many arguments
    root@kali:/opt/empire# ./ps-empier clint
    bash: ./ps-empier: No such file or directory
    root@kali:/opt/empire# ./ps-empire client

    `
    .–::///+
    -+sydmmmNNNNNNN
    ./ymmNNNNNNNNNNNNNN
    -ymmNNNNNNNNNNNNNNNNN
    `ommmmNNNNNNNNNNNNNNNNN
    .ydmNNNNNNNNNNNNNNNNNNNN
    `odmmNNNNNNNNNNNNNNNNNNNN
    `/hmmmNNNNNNNNNNNNNNNNMNNN
    +hmmmNNNNNNNNNNNNNNNNNMMN
    ..ymmmNNNNNNNNNNNNNNNNNNNN
    :.+so+//:—…….—-::-
    .….—-:///++++
    .-/osy+////:::—…-dNNNN
    :sdyyydy:mNNNNM
    -hmmdhdmm:`.+hNNNNNNM
    .odNNmdmmNNo`.:+yNNNNNNNNNN
    `-sNNNmdh/dNNhhdNNNNNNNNNNNNNNN
    `-hNNNmNo::mNNNNNNNNNNNNNNNNNNN
    `-hNNmdNo–/dNNNNNNNNNNNNNNNNNN
    :dNmmdmd-:+NNNNNNNNNNNNNNNNNNm
    `/hNNmmddmd+mNNNNNNNNNNNNNNds++o
    /dNNNNNmmmmmmmNNNNNNNNNNNmdoosydd
    `sNNNNdyydNNNNmmmmmmNNNNNmyoymNNNNN
    :NNmmmdso++dNNNNmmNNNNNdhymNNNNNNNN
    -NmdmmNNdsyohNNNNmmNNNNNNNNNNNNNNNN
    `sdhmmNNNNdyhdNNNNNNNNNNNNNNNNNNNNN
    /yhmNNmmNNNNNNNNNNNNNNNNNNNNNNmhh
    `+yhmmNNNNNNNNNNNNNNNNNNNNNNmh+:
    `./dmmmmNNNNNNNNNNNNNNNNmmd.
    `ommmmmNNNNNNNmNmNNNNmmd:
    :dmmmmNNNNNmh../oyhhhy:
    `sdmmmmNNNmmh/++-.+oh.
    `/dmmmmmmmmdo-:/ossd:
    `/ohhdmmmmmmdddddmh/
    `-/osyhdddddhyo:
    .—-.`

    ███████╗███╗ ███╗██████╗ ██╗██████╗ ███████╗
    ██╔════╝████╗ ████║██╔══██╗██║██╔══██╗ ██╔════╝
    █████╗ ██╔████╔██║██████╔╝██║██████╔╝ █████╗
    ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██║██╔══██╗ ██╔══╝
    ███████╗██║ ╚═╝ ██║██║ ██║██║ █████║███████╗
    ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚════╝╚══════╝

    Use the ‘connect’ command to connect to your Empire server.
    ‘connect -c localhost’ will connect to a local empire instance with all the defaults
    including the default username and password.
    INFO: Attempting to connect to server: localhost
    ERROR: <urllib3.connection.HTTPConnection object at 0x7efebecd6a50>: Failed to establish a new connection: [Errno 111] Connection refused

    #76332
    Hossam H.I.MHossam H.I.M
    Participant
    #76353
    Hossam H.I.MHossam H.I.M
    Participant
    #76354
    Hossam H.I.MHossam H.I.M
    Participant

    root@kali:/opt/empire# ./ps-empire server
    (pymysql.err.OperationalError) (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)
    (Background on this error at: https://sqlalche.me/e/20/e3q8)
    Traceback (most recent call last):
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 569, in connect
    sock = socket.create_connection(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/usr/lib/python3.11/socket.py”, line 851, in create_connection
    raise exceptions[0]
    File “/usr/lib/python3.11/socket.py”, line 836, in create_connection
    sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3288, in raw_connection
    return self.pool.connect()
    ^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 452, in connect
    return _ConnectionFairy._checkout(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 1267, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 716, in checkout
    rec = pool._do_get()
    ^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 169, in _do_get
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 167, in _do_get
    return self._create_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 393, in _create_connection
    return _ConnectionRecord(self)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 678, in __init__
    self.__connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 902, in __connect
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 898, in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/create.py”, line 637, in connect
    return dialect.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py”, line 615, in connect
    return self.loaded_dbapi.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/__init__.py”, line 94, in Connect
    return Connection(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 327, in __init__
    self.connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 619, in connect
    raise exc
    pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “/opt/empire/empire/server/core/db/base.py”, line 34, in try_create_engine
    with engine.connect():
    ^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3264, in connect
    return self._connection_cls(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 147, in __init__
    Connection._handle_dbapi_exception_noconnection(
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 2426, in _handle_dbapi_exception_noconnection
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 145, in __init__
    self._dbapi_connection = engine.raw_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py”, line 3288, in raw_connection
    return self.pool.connect()
    ^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 452, in connect
    return _ConnectionFairy._checkout(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 1267, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 716, in checkout
    rec = pool._do_get()
    ^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 169, in _do_get
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/impl.py”, line 167, in _do_get
    return self._create_connection()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 393, in _create_connection
    return _ConnectionRecord(self)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 678, in __init__
    self.__connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 902, in __connect
    with util.safe_reraise():
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py”, line 147, in __exit__
    raise exc_value.with_traceback(exc_tb)
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/pool/base.py”, line 898, in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/create.py”, line 637, in connect
    return dialect.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py”, line 615, in connect
    return self.loaded_dbapi.connect(*cargs, **cparams)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/__init__.py”, line 94, in Connect
    return Connection(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 327, in __init__
    self.connect()
    File “/opt/empire/.venv/lib/python3.11/site-packages/pymysql/connections.py”, line 619, in connect
    raise exc
    sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)
    (Background on this error at: https://sqlalche.me/e/20/e3q8)
    Failed connecting to database using mysql+pymysql://empire_user:empire_password@localhost:3306
    Perhaps the MySQL service is not running.
    Try executing: sudo systemctl start mysql
    root@kali:/opt/empire#

    #76454
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Now it seems you are trying to use a different empire version.I suggest to stick to the one showed in the course instead. It would be better to remove that kali and import a new one. Then follow the instructions as in the lecture and follow the steps I mentioned. I can clearly see that you are trying to delete files in /usr/lib/python3.11 and that’s not what I wrote so please read carefully otherwise things won’t work as expected.

    Greetings!
    Diego

    #76455
    Hossam H.I.MHossam H.I.M
    Participant

    You mean remove Kali Machine and install it from the beginning or what?
    And how I do that?

    #76885
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Yes, I meant to remove that kali. In Vmware interface jut right click kali and select Delete, then import it again just you already know.

    Greetings!
    Diego

    #77165
    Hossam H.I.MHossam H.I.M
    Participant
    #77413
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Cool, now follow the previous instructions that I have already told you:
    Make sure to delete any file or directory related to fastapi and pydantic in these locations:

    /usr/lib/python3/dist-packages
    /usr/local/lib/python3.11/dist-packages

    Then run:
    pip3 install pydantic==1.10.6
    pip3 install fastapi==0.74.1

    Then the server should run as expected, I tested it and it worked.

    Greetings!
    Diego

    #77423
    Hossam H.I.MHossam H.I.M
    Participant

    Here the empire server

    root@kali:~# powershell-empire server
    [INFO]: Checking submodules…
    [INFO]: No .git directory found. Skipping submodule check.
    [INFO]: v2: Loading listener templates from: /usr/share/powershell-empire/empire/server/listeners/
    [INFO]: v2: Loading stager templates from: /usr/share/powershell-empire/empire/server/stagers/
    [INFO]: v2: Loading bypasses from: /usr/share/powershell-empire/empire/server/bypasses/
    [INFO]: v2: Loading malleable profiles from: /usr/share/powershell-empire/empire/server/data/profiles/
    [INFO]: v2: Loading modules from: /usr/share/powershell-empire/empire/server/modules/
    [INFO]: Searching for plugins at /usr/share/powershell-empire/empire/server/plugins
    [INFO]: Initializing plugin: basic_reporting
    [INFO]: Initializing plugin: websockify_server
    [INFO]: Initializing plugin: reverseshell_stager_server
    [INFO]: Initializing plugin: csharpserver
    [INFO]: Initializing plugin: chiselserver
    [INFO]: Initializing plugin: socksproxyserver
    [WARNING]: Plugin csharpserver does not support db session or user_id, falling back to old method
    [INFO]: csharpserver: [*] Starting Empire C# server
    [INFO]: Plugin csharpserver ran successfully!
    [INFO]: Empire starting up…
    [INFO]: Compiler ready
    [INFO]: Starkiller served at http://localhost:1337/index.html
    [INFO]: Started server process [4023]
    [INFO]: Waiting for application startup.
    [INFO]: Application startup complete.
    [INFO]: Uvicorn running on http://0.0.0.0:1337 (Press CTRL+C to quit)
    [INFO]: 127.0.0.1:54498 – “POST /token HTTP/1.1” 200
    [INFO]: 127.0.0.1:54504 – “GET /socket.io/?transport=polling&EIO=4&t=1692859229.9271667 HTTP/1.1” 200
    [INFO]: (‘127.0.0.1’, 54518) – “WebSocket /socket.io/” [accepted]
    [INFO]: connection open
    [INFO]: empireadmin connected to socketio
    [INFO]: 127.0.0.1:54524 – “GET /api/v2/meta/version HTTP/1.1” 200
    [INFO]: 127.0.0.1:54538 – “GET /api/v2/listeners HTTP/1.1” 200
    [INFO]: 127.0.0.1:54540 – “GET /api/v2/listener-templates HTTP/1.1” 200
    [INFO]: 127.0.0.1:54542 – “GET /api/v2/stager-templates HTTP/1.1” 200
    [INFO]: Request Received 2023-08-24 06:40:30.128272
    [INFO]: Done Converting Objects 2023-08-24 06:40:30.245491
    [INFO]: 127.0.0.1:54544 – “GET /api/v2/modules HTTP/1.1” 200
    [INFO]: 127.0.0.1:54550 – “GET /api/v2/agents HTTP/1.1” 200
    [INFO]: 127.0.0.1:54560 – “GET /api/v2/plugins HTTP/1.1” 200
    [INFO]: 127.0.0.1:54574 – “GET /api/v2/users/me HTTP/1.1” 200
    [INFO]: 127.0.0.1:54582 – “GET /api/v2/malleable-profiles HTTP/1.1” 200
    [INFO]: 127.0.0.1:54596 – “GET /api/v2/bypasses HTTP/1.1” 200
    [INFO]: 127.0.0.1:54600 – “GET /api/v2/credentials HTTP/1.1” 200
    [INFO]: 127.0.0.1:54616 – “GET /api/v2/downloads?sources=upload HTTP/1.1” 200

    #77424
    Hossam H.I.MHossam H.I.M
    Participant

    Use the ‘connect’ command to connect to your Empire server.
    ‘connect -c localhost’ will connect to a local empire instance with all the defaults
    including the default username and password.
    INFO: Attempting to connect to server: localhost

    ========================================================================================
    [Empire] Post-Exploitation Framework
    ========================================================================================
    [Version] 5.4.2 | [Web] https://github.com/BC-SECURITY/Empire
    ========================================================================================
    [Starkiller] Web UI | [Web] https://github.com/BC-SECURITY/Starkiller
    ========================================================================================
    [Documentation] | [Web] https://bc-security.gitbook.io/empire-wiki/
    ========================================================================================

    ███████╗███╗ ███╗██████╗ ██╗██████╗ ███████╗
    ██╔════╝████╗ ████║██╔══██╗██║██╔══██╗ ██╔════╝
    █████╗ ██╔████╔██║██████╔╝██║██████╔╝ █████╗
    ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██║██╔══██╗ ██╔══╝
    ███████╗██║ ╚═╝ ██║██║ ██║██║ █████║███████╗
    ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚════╝╚══════╝

    412 modules currently loaded

    0 listeners currently active

    0 agents currently active

    Starkiller is now the recommended way to use Empire.
    Try it out at http://localhost:1337/index.html
    INFO: Connected to localhost
    (Empire) >

    (Empire) >
    Window too small…
    (Empire) >

    #77463
    Hossam H.I.MHossam H.I.M
    Participant
    #77466
    Hossam H.I.MHossam H.I.M
    Participant
    #77612
    Diego PérezDiego Pérez
    Moderator

    Hi!
    So it seems empire is working fine.
    Have you started your apache server? You have to do it every time you boot kali.

    Greetings!
    Diego

Viewing 15 posts - 46 through 60 (of 138 total)
  • You must be logged in to reply to this topic.