leonjza / log4jpwn

log4j rce test environment and poc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in docker command

gobiasinfosec opened this issue · comments

had to run the following to get it to work:
docker build . -t log4jpwn:latest

for some reason when it runs its looking for that instead of just log4jpwn

this also just doesn't seem to be working unless there is a another variable to setting that im missing

image

The instructions say to build with docker build -t log4jpwn .. The order in the command matters. As for it not working, its hard to say what's up without the command used to exploit.

I built it with that command first, it threw the error when built that way until i used the command listed above

I'm sorry it's not working for you. The only thing I have is an example of it running fine on my machine.

image

yeah i wonder why your build sequence looks different than mine, it's only showing 9 steps on mine

image

That is just BuildKit (part of newer docker versions). That last screenshot shows the build run fine with the correct command too?

and just for further context the payload:
image

and the server:
image

That is just BuildKit (part of newer docker versions). That last screenshot shows the build run fine with the correct command too?

yeah i realized i fat fingered it so the initial post in this is fine, its not an issue

--exploit-host is wrong there. 127.0.0.1 refers to localhost in the container, not outside. You need to specify an IP outside for your Kali.

ahhh gotcha, i will play with that some more than, thank you

seems --leak works for only java:version ?