Log4J Exploit Demo

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 67

  • @AV_Kumar
    @AV_Kumar 2 месяца назад

    Thanks for this poc

    • @Roelox
      @Roelox  2 месяца назад

      No problem :)

  • @georgedanicico6641
    @georgedanicico6641 6 месяцев назад

    I am trying to make a demo for this vulnerability for a homework, and I tried to make the same repo work, but I couldn't on my mac m1. It prints the message that says "redirecting to http...". The only difference is that I started the vulnerable app locally, since there is no alternative for docker network host on mac. Do you know what could be the issue?

    • @Roelox
      @Roelox  6 месяцев назад

      Sorry for the super late response, add me on discord, my name on there is roelox

  • @Michael-im5mq
    @Michael-im5mq Год назад

    This is very cool and I love your avatar. Reminds me of F-society in Mr Robot. Subscribed

    • @Roelox
      @Roelox  Год назад +1

      Thank you! And yes haha my avatar is inspired by F-society from Mr Robot.

  • @byteafterlife
    @byteafterlife 2 месяца назад

    nice!

    • @Roelox
      @Roelox  2 месяца назад

      Thank you!

  • @muhammedithban9930
    @muhammedithban9930 2 года назад +1

    Hi Roel, I'm encountering this "OSError: [Errno 8] Exec format error" after this command 'sudo python3 poc.py'. Can you please help me?

    • @Roelox
      @Roelox  2 года назад

      Did you modify the content in poc.py?

    • @scorcher7297
      @scorcher7297 2 года назад

      @@Roelox no changes have been made to poc.py file, I am also getting same error

    • @Roelox
      @Roelox  2 года назад

      @@scorcher7297 Can you send me screenshot on discord, Roel#6931

  • @davidaw104
    @davidaw104 Год назад

    I don't understand. You set netcat at port 9001 then you ran a python script that is a simple http-server running localhost at port 8000 but is listening on port 1389?

    • @Roelox
      @Roelox  Год назад

      Netcat listener on port 9001 is for the reverse shell, port 8000 is for the webserver that hosts the java file and port 1389 is for the LDAP server.

  • @pennyWise_01
    @pennyWise_01 Год назад

    Everything went well except the connection back to the netcat. Can you help me on this?

    • @Roelox
      @Roelox  Год назад

      Sure, do u have discord? My discord is Roel#6931 I can help u further on discord.

  • @dastox777
    @dastox777 Год назад

    2 questions ,
    1. why i am unable to ping to external ip ?
    2. can you provide the source for the web app ?

    • @Roelox
      @Roelox  Год назад

      External IP?
      And the source for the web app should be in the github repository I think

    • @dastox777
      @dastox777 Год назад

      @@Roelox another question , if i want to execute a remote script or command and not get the shell , is it possible ?

    • @Roelox
      @Roelox  Год назад

      Yes that should be possible, when you run the poc.py a Exploit.java is made. You can modify this Exploit.java file with for example nano. In the file you see "String cmd="/bin/bash"; and that is the line that is used to spawn a shell. So maybe if you modify that line you could execute some other command.

  • @pratikdograma4322
    @pratikdograma4322 2 года назад

    Thanks for your effort, so can this exploit be used in windows 10 as a target machine and kali linux as an attacker machine?

    • @Roelox
      @Roelox  2 года назад

      Uhh i guess if a windows machine in some way is using a vulnerable version of log4j. But idk if thats possible and idk how that works sorry.

  • @ejaku-fb8hs
    @ejaku-fb8hs 11 месяцев назад

    I know this is for dummy website. How if I want to attack the real website (lets say youtube), should I know the open port first?

    • @Roelox
      @Roelox  11 месяцев назад

      U first need to make sure they are using a vulnerable version of log4j.

    • @Roelox
      @Roelox  11 месяцев назад

      Btw attacking websites without permission is illegal!

    • @ejaku-fb8hs
      @ejaku-fb8hs 11 месяцев назад

      Yes, but how to know the port is opened or not?@@Roelox

    • @ejaku-fb8hs
      @ejaku-fb8hs 11 месяцев назад

      I just curious about that, dont worry I do not perform illegal action haha@@Roelox

  • @erichhuffman8081
    @erichhuffman8081 2 года назад

    Need to develop this for a work project. 6yr olds fighting and not letting me focus.
    But I found a new song :D

  • @kthomas5280
    @kthomas5280 2 года назад

    Why i cant access to localhost:8080 and refused to connect.. it is exactly same result when i ran the docker and no error message

    • @Roelox
      @Roelox  2 года назад

      What is the error message?

    • @kthomas5280
      @kthomas5280 2 года назад

      Hi roel, I just access to local host:8080 by chrome and said that refused to connect. I make sure that 8080 port is not using by tomcat

    • @Roelox
      @Roelox  2 года назад

      @@kthomas5280 Do you have Discord? My discord is Roel#6931

  • @AadilKB
    @AadilKB 2 года назад

    can someone help me by explaining, what is the need of the docker? And is there an alternative method if we do not want to use docker? I need to implement this log4j vuln in a simulated environment for project. I am unsure how I can replicate this video without using a docker or if using docker makes sense in my scenario!

    • @Roelox
      @Roelox  2 года назад

      I think docker is used to make the demo simple. Otherwise you would have to make an own vulnerable website.
      You can replicate this video without using docker.

    • @AadilKB
      @AadilKB 2 года назад

      @@Roelox I am unsure about which parameters I need to change because I am trying to implement this exploit where there is a vulnerable Ubuntu webserver and there is a kali attacker machine. I am unsure which parameters in the entire process needs to change or how to I do the attack. I know definitely that the evil ldap is on the attacker kali machine right so that means the poc.py needs to state the IP address of the kali machine right? What else needs to change?

    • @Roelox
      @Roelox  2 года назад

      @@AadilKB Yes the IP needs to be the kali machine's IP. I think nothing else needs to change.

    • @fatrizz
      @fatrizz Год назад

      ​@@Roelox Hi there are you able to help?

    • @Roelox
      @Roelox  Год назад

      @@fatrizz Ofcourse! What is the problem?

  • @محمد-ث5ل1ذ
    @محمد-ث5ل1ذ 2 года назад

    Thank you bro . This log4j its wtf

  • @krzysiek1918
    @krzysiek1918 2 года назад

    Nice video

  • @rationalism_communism
    @rationalism_communism 2 года назад +1

    hi thank you could you make a video about the windows diagnostic tool with opening a word document exploit because the one i do is detected by anti-virus.

  • @ametresovic6738
    @ametresovic6738 2 года назад +1

    music bakgroud it BLADE RUNNER 2049

  • @karthikbt7239
    @karthikbt7239 2 года назад

    I am getting an error at @3:00 while executing the python file, it's not able to execute lines 144,134,86,349 and it is also not able to locate the java directory. Anybody know how to fix this?

    • @Roelox
      @Roelox  2 года назад

      Did you install the right Java version? And did you moved it into the log4j-shell-poc directory?

    • @karthikbt7239
      @karthikbt7239 2 года назад

      @@Roelox yes sir. I did both. I installed the proper version and moved it to the right directory. I don't understand why the code isn't working

    • @Roelox
      @Roelox  2 года назад

      @@karthikbt7239 Do you have Discord? My discord is Roel#6931. Maybe you could send me a screenshot and i can help you.

    • @karthikbt7239
      @karthikbt7239 2 года назад

      @@Roelox that would be very helpful. I've sent you a request on discord

    • @Roelox
      @Roelox  2 года назад

      @@nishantnaik9543 check the java version again.

  • @alexmapache6389
    @alexmapache6389 2 года назад

    what's the name of background music? thanks

    • @Roelox
      @Roelox  2 года назад +1

      synthwave goose - blade runner 2049

    • @alexmapache6389
      @alexmapache6389 2 года назад

      @@Roelox thanks, good video.

  • @TheRavyk3-zg7dj
    @TheRavyk3-zg7dj 2 года назад

    can you help me?

    • @Roelox
      @Roelox  2 года назад +1

      Sure, what is the problem?