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

Empire daemon stops forwarding output of emp run #1113

Open
16m opened this issue Oct 17, 2017 · 0 comments
Open

Empire daemon stops forwarding output of emp run #1113

16m opened this issue Oct 17, 2017 · 0 comments

Comments

@16m
Copy link

16m commented Oct 17, 2017

Hello,

I tried using remind101/empire:bfb5dafa5018ff8aae447154358a5ab2738d4103 and when running emp run, it looks like the empire daemon stops forwarding the container output after few seconds.

I ran a shell and quickly executed commands cmd1 to cmd9 (to make debugging easier):

$ emp run -a busybox sh

Pulling from library/busybox
Digest: sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7
Status: Image is up to date for busybox@sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7

/ # cmd1
sh: cmd1: not found
/ # cmd2
sh: cmd2: not found
/ # cmd3
sh: cmd3: not found
/ # cmd4
sh: cmd4: not found
/ # cmd5
sh: cmd5: not found
/ # c

My shell stopped outputting right after the c of cmd6, but I kept typing and running the commands, and I could see the empire daemon was still up and showing the commands in its log (I omitted some parts of the output to make it shorter):

-----------------------------------------------------
c2017/10/17 11:17:34 DEBUG: Response sqs/ReceiveMessage Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Content-Length: 240
Connection: keep-alive
Content-Type: text/xml
Date: Tue, 17 Oct 2017 11:17:34 GMT
Server: Server
X-Amzn-Requestid: XXXXX


-----------------------------------------------------
2017/10/17 11:17:34 DEBUG: Request sqs/ReceiveMessage Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: sqs.eu-west-1.amazonaws.com
User-Agent: aws-sdk-go/1.7.3 (go1.7.6; linux; amd64)
Content-Length: 165
XXXXXXX
Accept-Encoding: gzip


-----------------------------------------------------
md1
sh: cmd1: not found
/ # cmd2017/10/17 11:17:35 DEBUG: Request cloudformation/DescribeStacks Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: cloudformation.eu-west-1.amazonaws.com
User-Agent: aws-sdk-go/1.7.3 (go1.7.6; linux; amd64) Waiter
Content-Length: 87

-----------------------------------------------------
2
sh: cmd2: not found

-----------------------------------------------------

sh: cmd3: not found
/ # 2017/10/17 11:17:37 DEBUG: Response ecs/DescribeServices Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Content-Length: 12632
Connection: keep-alive
Content-Type: application/x-amz-json-1.1
Date: Tue, 17 Oct 2017 11:17:37 GMT
Server: Server
X-Amzn-Requestid: XXXXX

-----------------------------------------------------
4
sh: cmd4: not found
/ # cmd5
sh: cmd5: not found

-----------------------------------------------------

sh: cmd6: not found
/ # 2017/10/17 11:17:43 DEBUG: Response sqs/ReceiveMessage Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Content-Length: 240
Connection: keep-alive
Content-Type: text/xml
Date: Tue, 17 Oct 2017 11:17:43 GMT
Server: Server
X-Amzn-Requestid: XXXXX

-----------------------------------------------------
7
sh: cmd7: not found
/ # 2017/10/17 11:17:48 DEBUG: Response sqs/ReceiveMessage Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Content-Length: 240
Connection: keep-alive
Content-Type: text/xml
Date: Tue, 17 Oct 2017 11:17:48 GMT
Server: Server
X-Amzn-Requestid: XXXXX

I tried several times with different images/shells and the behaviour is consistent. This doesn't happen with remind101/empire:0.12.0.

Thanks for reading!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant