HackTheBox - Magic

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 59

  • @InfiniteLogins
    @InfiniteLogins 4 роки тому +3

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

  • @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

  • @somethingamongthebytes9228
    @somethingamongthebytes9228 4 роки тому +3

    Great as always! 🔥

  • @alexandrataita8331
    @alexandrataita8331 4 роки тому

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

  • @archangelos7426
    @archangelos7426 4 роки тому

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

  • @loremipsum685
    @loremipsum685 4 роки тому +2

    setuid + path injection was nice

  • @AbdennacerAyeb
    @AbdennacerAyeb 4 роки тому +1

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

  • @mi2has
    @mi2has 4 роки тому

    i saw quite a few writeup, this one is cool

  • @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.

  • @disconnect3763
    @disconnect3763 3 роки тому

    cool. I like the theme of your terminal.

  • @virtulosity
    @virtulosity 4 роки тому

    Thanks for the vids :) - Awesome content

  • @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.

  • @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.

  • @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.

  • @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

  • @dinbabush6472
    @dinbabush6472 4 роки тому

    Love it!

  • @picious
    @picious 4 роки тому

    !!!! Magician !!

  • @ЮрийСтражнов-ч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.

  • @Ms.Robot.
    @Ms.Robot. 4 роки тому

    Thank You sweetheart 💗🥳

  • @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 :)

  • @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.

  • @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.

  • @laurenzkaml3864
    @laurenzkaml3864 4 роки тому

    👍👌

  • @aharonmo4188
    @aharonmo4188 4 роки тому +2

    Why you don't use kali?

  • @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

  • @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 роки тому +2

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

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

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

  • @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

  • @somasaha7934
    @somasaha7934 4 роки тому

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

    • @deepb5204
      @deepb5204 4 роки тому

      curl parrot.live 😛

  • @xyhard8603
    @xyhard8603 4 роки тому +1

    First?