0x17. Web stack debugging #3 (using tmux and strace to debug an apache server.)

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 43

  • @CappyAlemayehu
    @CappyAlemayehu 7 місяців тому +1

    Once again, I come back to thank you! I had no idea on how to do it. thanks man

    • @randommall
      @randommall  7 місяців тому +1

      Welcome. Glad it helped

  • @Given_A
    @Given_A 5 місяців тому +1

    You are a legend. Thanks bro

  • @pimobb
    @pimobb 5 місяців тому +1

    ran it but gave me 200 ok msg not 500 error why and how to fix it?

  • @randommall
    @randommall  Рік тому +1

    Please like the video, and then subscribe to this channel if you're yet to do so. Thank you

    • @SasafenViko
      @SasafenViko Рік тому

      Can you kindly assist with code for 0x16 api_advanced I’ll truly appreciate your help

    • @randommall
      @randommall  Рік тому

      I will, when I get home.

    • @randommall
      @randommall  Рік тому +1

      docs.google.com/document/d/1lcddaJ-khf00x8wMQK7dii-o9PS6orL8kvy_7bE1bBY/edit?usp=sharing@@SasafenViko

    • @SasafenViko
      @SasafenViko Рік тому

      @@randommall thank you

    • @randommall
      @randommall  Рік тому

      @user-py9hw5yp1y welcome

  • @classlol2785
    @classlol2785 5 місяців тому

    What's the name of the sandboxe you using in the video ??

    • @randommall
      @randommall  5 місяців тому

      Can't remember. Been a while

    • @classlol2785
      @classlol2785 5 місяців тому

      @@randommall if you can help me. After I writed "sudo strace -p 155", they showed me this (strace: attach: ptrace(PTRACE_ATTACH, ...): No such process). If you can please tell me what to do here.

    • @randommall
      @randommall  5 місяців тому

      @classlol2785 you have to use the container provided for the task. It has been set up for this task.

    • @classlol2785
      @classlol2785 5 місяців тому

      @@randommall I found the right container but still nothing changes.

  • @WalidHirwa
    @WalidHirwa 5 місяців тому

    Hello @RANDOMMALL no pid is running in mine, and i followed thesame thing you did by typing "ps aux | grep apache" can please help out?

    • @randommall
      @randommall  5 місяців тому

      Ensure you are using the provided container for the project.
      And my PC is down.😂

    • @WalidHirwa
      @WalidHirwa 5 місяців тому

      @@randommall sorry about u pc, by container you mean the sandbox or??

    • @randommall
      @randommall  5 місяців тому

      Yeah.

  • @RAWTECH-gc1ht
    @RAWTECH-gc1ht 11 місяців тому +1

    Nice One Boss, can you do anything on 0x16 API Advanced

    • @randommall
      @randommall  11 місяців тому

      i just did the advanced task.
      ua-cam.com/video/wUPSq26aXJ0/v-deo.html

  • @Elektra001
    @Elektra001 Рік тому +1

    SIMPLY THE BEST

  • @RAWTECH-gc1ht
    @RAWTECH-gc1ht 11 місяців тому

    Hello chief... no pid is running in mine, and i follow thesame thing you did by typing "ps aux | grep apache"

    • @emmaatieno8221
      @emmaatieno8221 8 місяців тому

      I have the same issue as well. RANDOMALL kindly assist on this, And thank you for your wonderful videos

    • @randommall
      @randommall  8 місяців тому

      @emmaatieno8221
      If ps aux | grep apache did not show any PID for apache, try
      pidof apache
      pidof httpd
      pgrep apache
      pgrep httpd
      If none of them worked, check that you are working on the expected terminal. The one set up for the project.

    • @bantu_queen
      @bantu_queen 8 місяців тому

      @@randommall hie. ive tried all options above and no success.the provided sandboxes doesnt open just spins and displays limit reached

    • @randommall
      @randommall  8 місяців тому +1

      @bantu_queen
      Destroy one sandbox to be able to run the one for this project.
      They made it so that only two can run at a time, you need a third one? Destroy one of the available two.

  • @AbdullahiAmina-qx9bo
    @AbdullahiAmina-qx9bo Рік тому +3

    Hi please kindly help with the code

  • @tauraimasaire919
    @tauraimasaire919 9 місяців тому +1

    Thank you so much, this really helped

  • @belsoi9799
    @belsoi9799 8 місяців тому

    Hi,@randommall after using this command sudo strace -p , this is the error I am getting "strace: could not attach to process. If your uid matches the target process , check the settings of /proc/sys/kernel/yama/ptrace_scope. kindly assist, I have tried my best but I am still getting the same error.

    • @randommall
      @randommall  8 місяців тому +1

      looks like you are trying to use a different user to attach strace to a process been run by a different user.
      Ensure you are attaching strace using 'sudo'. if this is what you are doing already, try using root.
      sudo -u root strace -p

    • @belsoi9799
      @belsoi9799 8 місяців тому

      @@randommall Thank you, let me try this

  • @soukainarizki-fv6wx
    @soukainarizki-fv6wx Рік тому +1

    hey can u help us with this project Python - Web framework if u can it would be cool

    • @randommall
      @randommall  Рік тому

      You mean AirBnB clone - Web Framework?

  • @nidalelamin5940
    @nidalelamin5940 8 місяців тому +1

    how did strace helped I didn't understand?

    • @randommall
      @randommall  8 місяців тому

      Strace is a powerful tool for debugging system calls made by a process.
      Nginx failing and returning a 500 error indicates an issue with configuration file(s).
      How Strace Helps:
      Strace allows us to monitor every system call made by the Nginx process during startup. By analyzing these calls, we gain valuable insights into the start-up attempt, we can see every response from every system call, that way, we will pin-point the configuration(file) that has any particular error or unexpected response. Finally we can trace the error to its nginx configuration file and deal with the issue.

  • @pimobb
    @pimobb 5 місяців тому

    how to install sudo>>

  • @cwaitanobongoza6057
    @cwaitanobongoza6057 10 місяців тому

    @randommall, please provide link of the files for referral

  • @TheTucor
    @TheTucor 7 місяців тому

    stop putting sound it makes it so boring and un matured please!!!!!!!!!!!!!

    • @randommall
      @randommall  7 місяців тому

      Alright. Thank you for your input.