- This topic has 137 replies, 2 voices, and was last updated 11 months, 3 weeks ago by Diego PΓ©rez.
- AuthorPosts
- August 19, 2023 at 7:13 am #76227Hossam H.I.MParticipant
This the only way I can install pydantic & fastapi, same results
https://drive.google.com/file/d/1eHPIh1UuF8TjkP-FweYFMRJYEZfDNl0D/view?usp=drivesdk
https://drive.google.com/file/d/12FXXrBGT6M1o51Sw1HnsLJM9i1–NBs7/view?usp=drivesdk
https://drive.google.com/file/d/1SrEehQPdHaejWgfSP8daT8eymq-xZ-iC/view?usp=drivesdk
https://drive.google.com/file/d/1oD1_hWY5mPWvD-Qmp29vczzSrN9lx1K8/view?usp=drivesdk
https://drive.google.com/file/d/13NDKIQjJ2uKQLiwdsITITU1ltEYSFPd6/view?usp=drivesdk
August 19, 2023 at 7:16 am #76228Hossam H.I.MParticipantroot@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 refusedDuring 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 refusedAugust 19, 2023 at 12:39 pm #76332Hossam H.I.MParticipantBoth are deleted now i will try to install it again
https://drive.google.com/file/d/1sxNQ_NNO1P2Kpd8gg1ZrFfPmOINqMD3M/view?usp=drivesdk
https://drive.google.com/file/d/1X3jHocugCxG-Nr2SL7Lek7tFeftLdTzL/view?usp=drivesdk
August 19, 2023 at 1:16 pm #76353Hossam H.I.MParticipantI tried this way after deleting them still error
https://drive.google.com/file/d/1FIND59Ex_e1rH16whpeIrHxDRFGM7sGb/view?usp=drivesdk
https://drive.google.com/file/d/1gyHOjglRzkTwSi69SwGoa-r1hDqnGr0I
August 19, 2023 at 1:18 pm #76354Hossam H.I.MParticipantroot@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 refusedDuring 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#August 19, 2023 at 7:00 pm #76454Diego PΓ©rezModeratorHi!
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!
DiegoAugust 19, 2023 at 7:05 pm #76455Hossam H.I.MParticipantYou mean remove Kali Machine and install it from the beginning or what?
And how I do that?August 21, 2023 at 4:55 pm #76885Diego PΓ©rezModeratorHi!
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!
DiegoAugust 23, 2023 at 12:42 am #77165Hossam H.I.MParticipantAugust 23, 2023 at 9:10 pm #77413Diego PΓ©rezModeratorHi!
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-packagesThen run:
pip3 install pydantic==1.10.6
pip3 install fastapi==0.74.1Then the server should run as expected, I tested it and it worked.
Greetings!
DiegoAugust 24, 2023 at 7:50 am #77423Hossam H.I.MParticipantHere 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” 200August 24, 2023 at 8:06 am #77424Hossam H.I.MParticipantUse 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) >August 24, 2023 at 9:08 am #77463Hossam H.I.MParticipantI make sure that the files are deleted
https://drive.google.com/file/d/1TsRUQlfN8EmPPmRYPN8-HgPjQjqnX3I1/view?usp=drivesdk
https://drive.google.com/file/d/1r60QibgGUxlDuGHb7QgAVzTn9gSvPtDe/view?usp=drivesdk
https://drive.google.com/file/d/19u-XewdOenda9nFwRlD_P5zucBXJxKri/view?usp=drivesdk
https://drive.google.com/file/d/1Bio48Ux3aXWccPR6KU676udnRYtVPf1z/view?usp=drivesdk
https://drive.google.com/file/d/1fErVtTLCB8fVe46fPbcgcWDhp03vqQ4y/view?usp=drivesdk
https://drive.google.com/file/d/1gL-s9dW0osQmZ-cTELqGoutlSjkjYLPa/view?usp=drivesdk
August 24, 2023 at 9:09 am #77466Hossam H.I.MParticipantAnd this web never opened
https://drive.google.com/file/d/1r60QibgGUxlDuGHb7QgAVzTn9gSvPtDe/view?usp=drivesdk
August 24, 2023 at 4:23 pm #77612Diego PΓ©rezModeratorHi!
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 - AuthorPosts
- You must be logged in to reply to this topic.