byt3bl33d3r / DeathStar

Uses Empire's (https://github.com/BC-SECURITY/Empire) RESTful API to automate gaining Domain and/or Enterprise Admin rights in Active Directory environments using some of the most common offensive TTPs.
GNU General Public License v3.0
1.58k stars 329 forks source link

Connection to Empire API Errors out on Connection. Kali 2020.4, DeathStar (Pipx install) #76

Open Scr1ptK1dd1e opened 3 years ago

Scr1ptK1dd1e commented 3 years ago

[20:00:43] INFO [deathstar] Empire login successful deathstar.py:346 INFO [deathstar] Powering up the DeathStar and waiting for agents deathstar.py:350 INFO [deathstar] R6A5MK3U => Starting recon on domain 'CORP' deathstar.py:74 INFO [deathstar] R6A5MK3U => New agent connected! deathstar.py:248 INFO [deathstar] REUFHDBW => New agent connected! deathstar.py:248 INFO [deathstar] TA9VEMBY => New agent connected! deathstar.py:248 INFO [deathstar] R5K2DE84 => New agent connected! deathstar.py:248 ERROR [deathstar] Planetary recon for agent R6A5MK3U errored out: deathstar.py:111 Traceback (most recent call last):

` File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_exce
ptions.py", line 326, in map_exceptions
yield
File
"/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",
line 1502, in _send_single_request
(status_code, headers, stream, ext,) = await transport.arequest(
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_a
sync/connection_pool.py", line 218, in arequest
response = await connection.arequest(
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_a
sync/connection.py", line 106, in arequest
return await self.connection.arequest(method, url, headers, stream, ext)
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_a
sync/http11.py", line 72, in arequest
) = await self._receive_response(timeout)
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_a
sync/http11.py", line 133, in _receive_response
event = await self._receive_event(timeout)
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_a
sync/http11.py", line 169, in _receive_event
event = self.h11_state.next_event()
File "/usr/lib/python3.9/contextlib.py", line 135, in exit
self.gen.throw(type, value, traceback)
File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpcore/_e
xceptions.py", line 12, in map_exceptions
raise to_exc(exc) from None
httpcore.RemoteProtocolError: can't handle event type ConnectionClosed when role=SERVER
and state=SEND_RESPONSE

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

                Traceback (most recent call last):                                                                       
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/d                 
                eathstar.py", line 79, in planetary_recon                                                                
                    domain_sid = await self.kybers.get_domain_sid(agent)                                                 
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/k                 
                ybercrystals.py", line 32, in wrapper                                                                    
                    return await func(*args, **kwargs)                                                                   
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/c                 
                rystals/recon/get_domain_sid.py", line 2, in crystallize                                                 
                    output = await agent.execute("powershell/management/get_domain_sid")                                 
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/e                 
                mpire.py", line 88, in execute                                                                           
                    return await self.api.modules.execute(module, self.session_id, options, timeout)                     
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/e                 
                mpire.py", line 222, in execute                                                                          
                    task = await self.execute_nowait(module, agent, options)                                             
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/e                 
                mpire.py", line 216, in execute_nowait                                                                   
                    r = await self.client.post(                                                                          
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1633, in post                                                                                       
                    return await self.request(                                                                           
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1371, in request                                                                                    
                    response = await self.send(                                                                          
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1406, in send                                                                                       
                    response = await self._send_handling_auth(                                                           
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1444, in _send_handling_auth                                                                        
                    response = await self._send_handling_redirects(                                                      
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1476, in _send_handling_redirects                                                                   
                    response = await self._send_single_request(request, timeout)                                         
                  File                                                                                                   
                "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_client.py",                 
                line 1502, in _send_single_request                                                                       
                    (status_code, headers, stream, ext,) = await transport.arequest(                                     
                  File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__                                         
                    self.gen.throw(type, value, traceback)                                                               
                  File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/httpx/_exce                 
                ptions.py", line 343, in map_exceptions                                                                  
                    raise mapped_exc(message, **kwargs) from exc  # type: ignore                                         
                httpx.RemoteProtocolError: can't handle event type ConnectionClosed when role=SERVER and                 
                state=SEND_RESPONSE  `

Traceback (most recent call last): File "/root/.local/bin/deathstar", line 8, in <module> sys.exit(run()) File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/deathstar.py", line 385, in run asyncio.run(main(args)) File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/deathstar.py", line 352, in main await deathstar.power_up() File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/deathstar.py", line 334, in power_up await asyncio.gather(*[ File "/root/.local/pipx/venvs/deathstar-empire/lib/python3.9/site-packages/deathstar/deathstar.py", line 295, in agent_spawner agent = list( IndexError: list index out of range