HackTheBox - Magic

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

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

  • @InfiniteLogins
    @InfiniteLogins 3 года назад +2

    "that's there because of... reasons" - Ippsec
    I love this dude.

  • @loremipsum685
    @loremipsum685 4 года назад +2

    setuid + path injection was nice

  • @alexandrataita8331
    @alexandrataita8331 4 года назад

    @IppSec great job. I have been to your channel since I discovered. Am really learning a lot from Kenya. Kudos!!!👍👌

  • @il2626
    @il2626 4 года назад

    It's the first machine on release day i did. Was really proud for being in top 100 xD I liked the root of this machine very much but also your video explained me many concepts that are behind the machine (why stuff works). thank you for this videos always

  • @AbdennacerAyeb
    @AbdennacerAyeb 4 года назад +1

    Thank you for your efforts open sourcing knowledge.. great jov

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

    I think the last PE would only work for something like `popen` or `execv` those open other processes. The bash script can work under popen('div-script ...snip...').
    In other more common scenarios, bash scripts don't honour SUID for security reasons.
    Please correct me if I'm wrong. Thank you.

  • @archangelos7426
    @archangelos7426 4 года назад

    My favorite and most enjoyable box so far !!!!!

  • @somethingamongthebytes9228
    @somethingamongthebytes9228 4 года назад +3

    Great as always! 🔥

  • @mi2has
    @mi2has 4 года назад

    i saw quite a few writeup, this one is cool

  • @mikemutter4521
    @mikemutter4521 3 года назад

    in the SQL " 'or 1=1 -- - " what does the last slash mean? i know double slashes are for comments and when I try it myself it only works if there is a space and another slash and i don't understand why.

    • @ippsec
      @ippsec  3 года назад +2

      A comment is two dashes and a space. Sometimes the webapp will append a and not , so if you don't do it will be inconsistent. In no situation will adding the hurt, it can only help. Just like when I do "bash -c' bash -i ..." its just a stability thing... The which i use for is just there so you can visually see the space.

  • @disconnect3763
    @disconnect3763 3 года назад

    cool. I like the theme of your terminal.

  • @clarb027
    @clarb027 4 года назад

    Always interesting to see a different (far more technical) way of working. I just used exiftool to embed the php into a jpg and uploaded it to give me command exe.

  • @virtulosity
    @virtulosity 4 года назад

    Thanks for the vids :) - Awesome content

  • @brettnieman3453
    @brettnieman3453 4 года назад

    Curious, if you had code exec through PHP, why do you go for a web shell first? Why not go directly to php rev shell?

    • @huhwhatwho7895
      @huhwhatwho7895 4 года назад

      Its best to step slowly through untill a revtcp, sometimes firewalls or routing tables are in place. Thus with a webshell you can step your way up. In practice its best to leak phpinfo() first and then enumerate which php functions are enabled/disabled. But then again this is a CTF machine so it wont be difficult :D

  • @darshanakhare6676
    @darshanakhare6676 4 года назад +6

    Kali 2020.4 getting zsh as default shell what's your opinion
    Caught you at 11:22 99s 😜🤭

    • @DHIRAL2908
      @DHIRAL2908 4 года назад

      Haha lol was gonna comment it!

    • @amoghnath3330
      @amoghnath3330 4 года назад

      lol can you mind explaining?

    • @terror403
      @terror403 4 года назад

      i did it, i love it :)

  • @damnmayneunfiltered
    @damnmayneunfiltered 3 года назад

    hope you or some die hard fan reads this:
    can we get a playlist where you go into a box blind? i would do it, but im not as familiar with your entire collection.
    when you go into a box blind, we hear the depth and breadth of your methodologies.

    • @ippsec
      @ippsec  3 года назад

      A lot of the easy boxes, i go at it blind

    • @damnmayneunfiltered
      @damnmayneunfiltered 3 года назад

      @@ippsec thanks. should be no problem putting together a good playlist.

  • @h8handles
    @h8handles 3 года назад +1

    it is funny seeing this after the 9 year sudo vuln was release he said @ 37:00 cant exploit it because we dont have access to sudo....yes you do as we now know.

  • @ЮрийСтражнов-ч6ь
    @ЮрийСтражнов-ч6ь 4 года назад +1

    the content type was screwed up because of that uglish burp, which tends to pop up and become the main window even when you fcn don't ask it to. and all typing goes there spoiling everything. I've seen this so many times.

  • @trashandchaos
    @trashandchaos 4 года назад

    You can use the -b flag on strace to specify syscalls, i.e. strace -b execve.

  • @panosklainos3031
    @panosklainos3031 4 года назад +4

    There is actually an easier way of uploading a shell by using exiftool to write the code in a real image.

    • @padaloni
      @padaloni 4 года назад

      That sounds interesting. can you give me a simple example of how to do that?

    • @panosklainos3031
      @panosklainos3031 4 года назад +1

      @@padaloni I just used 'exiftool -Comment {php code} image.png'. Notice that this only works with the png extension and not jpg or jpeg. I think it's a way easier method and I never would have thought about adding the magic bytes.

  • @aharonmo4188
    @aharonmo4188 4 года назад +2

    Why you don't use kali?

  • @nicoswd
    @nicoswd 4 года назад +1

    There's actually a second way to get to upload.php. While it's password protected, they're just doing a "Location:" redirect without exiting the script afterwards. So I just removed the redirect header from the response in Burp

    • @jannmoon
      @jannmoon 4 года назад

      Smart man, I went the unnecessary extra step by changing it to "200 OK" and really thought I was foolin' my browser 🤷‍♂️

    • @nicoswd
      @nicoswd 4 года назад

      ​@@jannmoon While I fooled mine, I guess yours was lot less confused about that response 🙃. But nice to see someone else caught this bug too!

    • @NytNaatitaan
      @NytNaatitaan 3 года назад +1

      Did the same :)

  • @Ms.Robot.
    @Ms.Robot. 4 года назад

    Thank You sweetheart 💗🥳

  • @dinbabush6472
    @dinbabush6472 4 года назад

    Love it!

  • @leon1985ist
    @leon1985ist 4 года назад

    Hi Ippsec few questions and advises you could give here hope not to bother, , am a big fun here am starting to support , and truing to get my build PC on I just want to have the same environment , Soo first I have 16 RAM should I put more RAM ? Other questions, you use the CRACKING u say is a different machine do you run a Linux base system on it or is other virtual machine? , And is it a Good idea to run Linux as a base system on a PC or not , hope you can understand my silly question hope to have advised Abt them thanks

    • @jannmoon
      @jannmoon 4 года назад +1

      I know you didn't ask my opinion but here ya go anyways. I have 32 GB and haven't really seen it all burn up yet (besides hashcat getting my CPU to 90 C) - last year with 16 it did slow down some. 16 is near perfect but 32 is flawless for me. Got into VPS and I love it especially with all the credits for free from aws and Google cloud etc, I use it for any web heavy directory fuzzing for bug bounties and the speed and lack of IP bans is great . Finally I use Kali as my main OS and it died a lot at first, then as soon as I finally start making 2-3 backups, no issues. It can be done but be prepared and back up stuff regularly, windows workarounds are kinda necessary sometimes so kinda wish I kept it as a dual boot instead of full Linux . Oh well!

    • @leon1985ist
      @leon1985ist 4 года назад

      @@jannmoon how do I get VPS? What's stands for

  • @picious
    @picious 4 года назад

    !!!! Magician !!

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

    I ithought it was gonna be a magic video after he said " i am doing magic "

  • @laurenzkaml3864
    @laurenzkaml3864 4 года назад +2

    Could u just enter in the username “admin-” that should in Theorie do the job 🧐

  • @aneeshnadh5377
    @aneeshnadh5377 4 года назад

    How to setup the os you are using?

    • @MohmdSy5
      @MohmdSy5 4 года назад +1

      github.com/theGuildHall/pwnbox
      I guess this what you’re looking for

    • @MohmdSy5
      @MohmdSy5 4 года назад +1

      It’s a collaboration between Hackthebox and parrotOS

    • @aneeshnadh5377
      @aneeshnadh5377 4 года назад

      @@MohmdSy5 thankyou

  • @laurenzkaml3864
    @laurenzkaml3864 4 года назад

    👍👌

  • @IvanRandomDude
    @IvanRandomDude 4 года назад

    Site vulnerable to the most basic sql injection in 2020 omegalul.

    • @Xbotto
      @Xbotto 4 года назад

      found the same broken login irl in 2018 kekw

  • @user-fp6dt1os1l
    @user-fp6dt1os1l 4 года назад

    I swear I've seen this one before... am I going mad?

    • @imperium305
      @imperium305 4 года назад +1

      Don't think so, he has done a bunch of magic byte trickery boxes in the past though

  • @jack_brannan
    @jack_brannan 4 года назад

    Thanks.
    To semicolon be very nice

  • @xyhard8603
    @xyhard8603 4 года назад +1

    First?

  • @somasaha7934
    @somasaha7934 4 года назад

    can you tell me please , how to make parrot window screen !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • @deepb5204
      @deepb5204 4 года назад

      curl parrot.live 😛