HackTheBox - Networked

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 69

  • @SecurityDood
    @SecurityDood 5 ปีที่แล้ว +47

    As someone just starting out this content is so pleasing to watch

  • @skipad4306
    @skipad4306 5 ปีที่แล้ว +7

    ppl say they are begginers and just started and enjoy the video and learn from it.
    But me as im working with Linux in shell, perform some pen test etc, Learned quite few things from the vid, and tricks. many obvious things but.
    enjoyed the vid even more.
    You are a good person to learn from.

  • @shady4tv
    @shady4tv 5 ปีที่แล้ว +1

    Dude that tip about Firefox changing mtime - whereas wget will not....
    Holy shit man I learn so much stuff from each one of your videos it isn't even funny. Just WOW!
    IppSec you provide more information than any college text book. keep up the awesome work!

  • @bitfragment
    @bitfragment 5 ปีที่แล้ว +2

    Awesome! Starting this as a hobby and it's really interesting to see different techniques in action. Keep them coming! Cheers

  • @lloyd-wright
    @lloyd-wright 3 ปีที่แล้ว +1

    Thank you ippSec, I appreciate your videos and you have helped me a lot, I hope one day ill be able to buy you a beer at one of the hacker cons to say thanks again.

  • @nuridincersaygili
    @nuridincersaygili 2 ปีที่แล้ว

    excellent content and descriptions for beginners! thank you so much, this is pure gold..

  • @checkmate6732
    @checkmate6732 5 ปีที่แล้ว

    the video details in the description are so much helpful!! thanks!

  • @SP-hz5tp
    @SP-hz5tp 5 ปีที่แล้ว +7

    I was sorta sad that I‘d loose my points for this box.
    But then I rooted Postman and Craft today and now I’m not sad anymore. :D

  • @confusionofdahighestorda668
    @confusionofdahighestorda668 5 ปีที่แล้ว +1

    Thanks ippsec.. This is my first comment on your youtube channel..
    I just wanna say, get well soon ..

  • @shankaranarayana6568
    @shankaranarayana6568 4 ปีที่แล้ว

    Hey Ippsec! Could you clear this out for me, please?
    I tried finding more about "net cat stops listening on the port once it gets a connection" at 31:05 cuz it does not fit into my understanding of how communication works.
    My understanding is : The port is an endpoint of communication and ALL communication over the network needs to be through an actual port. But apparently I'm wrong. Could you point me to some resources that could help clear out my understanding. I cant find any.
    I do a bit of electronics and any physical data stream actually has to go through a port. That's adding more conflict to my understanding of how we can open two connections using the same port.
    Thanks for the videos!

  • @rianed6283
    @rianed6283 6 หลายเดือนก่อน

    this is amazing and insightful content thank you so much

  • @sakettestsakettest8009
    @sakettestsakettest8009 5 ปีที่แล้ว

    Thia is what I was just waiting for .
    And get well soon !

  • @thomapple
    @thomapple 5 ปีที่แล้ว +5

    Small mistakes at 4:17 it's HTTP GET variable, not HTML, at 12:09 it was \x7F, not a dot, 26:24 if check is not equal to zero, then the condition is false and the function returns

  • @Haxr-dq6wt
    @Haxr-dq6wt 3 ปีที่แล้ว +1

    In what way this box is related to OSCP?
    I find it on TJ_Null list
    Should I be able to read source code in order to pass the OSCP?

    • @fuffsec
      @fuffsec 3 ปีที่แล้ว +1

      i think it is about getting to know about bypass file upload and Code injection in privesc

  • @SudoSrijan
    @SudoSrijan หลายเดือนก่อน

    Really informative video.

  • @khurramwzd
    @khurramwzd 5 ปีที่แล้ว

    Thanks for another amazing walkthrough.

  • @pancudaniel2230
    @pancudaniel2230 5 ปีที่แล้ว

    Keep up the good work, thanks for the video.

  • @mistercyber1848
    @mistercyber1848 4 ปีที่แล้ว

    Thank you very much! You are the best

  • @westernvibes1267
    @westernvibes1267 5 ปีที่แล้ว

    Why did you had to write please subscribe and then command injection.. am lil bit confused in that

  • @gilfer88
    @gilfer88 5 ปีที่แล้ว +1

    How did you know to wait 3 minutes for the nc connection? Is it just a daily cronjob task and common knowledge?

    • @christianv258
      @christianv258 5 ปีที่แล้ว +3

      From the crontab.guly file. If you look into how crons look like, you'll understand it happens every 3 mins

  • @sorbet512
    @sorbet512 5 ปีที่แล้ว +3

    You should really make your own pentesting course because I would 100% pay for you to tutor me.
    I'm beginning to struggle a bit in the middle of my OSCP course, taking the exam some time around Jan/Feb

  • @Fiji_water_man
    @Fiji_water_man 5 ปีที่แล้ว

    get well soon my dear ippsec

  • @pep1878
    @pep1878 5 ปีที่แล้ว

    Btw I think the foothold is a bit over complicated. Once you get the backup and notice that upload.php includes lib.php, you can see that downloading one of the images in photos.php and put php shell as comment with exiftool it's trivial to get the shell

  • @anisbeats431
    @anisbeats431 4 ปีที่แล้ว

    The magic bytes didnt work for me
    is this system related ??

  • @007order007
    @007order007 5 ปีที่แล้ว

    Wait why did the code execute after uploading even though there wasn't a .php extension? Shouldn't it just ignore it if there's a .gif extension by default?

    • @_crys_
      @_crys_ 5 ปีที่แล้ว +1

      He explains it at 38:40, but this is where I got stuck with the box too.
      I didn't even dare to think that a file with a gif extension would execute php, so I didn't even try...
      Also it's not hinted at anywhere in the source, so you'll just have to guess/try it.

  • @رجالالعصابات
    @رجالالعصابات 4 ปีที่แล้ว

    dont say type pleasesub... again :)
    you are a beast please keep it up

  • @salahsaleh1712
    @salahsaleh1712 5 ปีที่แล้ว

    May i know How did u reset the terminal after exiting shell with stty raw -echo?

    • @imperium305
      @imperium305 5 ปีที่แล้ว

      I believe it has to do with the "export TERM=xterm" command he used at 23:13. Which as far as I know is setting your terminal as Linux. And from there ctrl l should work

    • @christianv258
      @christianv258 5 ปีที่แล้ว +3

      press "fg" then press enter twice

  • @sarmadahsan869
    @sarmadahsan869 5 ปีที่แล้ว

    Which terminal you are using??? Its an alternative to terminator.

  • @Deadshot_oo7
    @Deadshot_oo7 5 ปีที่แล้ว

    great walkthrough. Just 1 doubt. How did you figure out that the cron runs every 3 mins?

    • @luccadwellharris8678
      @luccadwellharris8678 5 ปีที่แล้ว +1

      It's there in the cron expression at 22:03. " */3 * * * *" means "every 3 minutes". Paste it in something like crontab.guru :)

  • @Marselmarsemars
    @Marselmarsemars 2 หลายเดือนก่อน

    thank for explaining root cause of apache file handling

  • @SuperMarkusparkus
    @SuperMarkusparkus 5 ปีที่แล้ว

    Why does the php code execute even when the file extension is gif and not php?

    • @SuperMarkusparkus
      @SuperMarkusparkus 5 ปีที่แล้ว

      Oh Ippsec asked the same question, or stated he didn't expect it to work. Will wait to look at the config file.

    • @christianv258
      @christianv258 5 ปีที่แล้ว

      Because of the apache conf. It executed php code as long as there is a .php in the filename

  • @magick2006
    @magick2006 5 ปีที่แล้ว +6

    bruh Easy mode in hackthebox is not easy.

  • @HatersMakeMeFAMAS
    @HatersMakeMeFAMAS 5 ปีที่แล้ว +4

    Dang I felt like I was getting closer now its retired fml lol

  • @talboris
    @talboris 5 ปีที่แล้ว

    hi, tnks for the video, is it possible to exploit the : exec("rm -f $logpath"); as rm is wildcarded ?

    • @ivanwork2028
      @ivanwork2028 4 ปีที่แล้ว

      Don't think you can as $logpath is not under your control

  • @ShabazDraee
    @ShabazDraee 5 ปีที่แล้ว

    can you still access the content on this machine, I can't seem to be able to ping the IP on HTB...

    • @ShakaFPV
      @ShakaFPV 5 ปีที่แล้ว

      Make sure the box is active on your account by starting that machine and that you're vpn download is updated and connected

    • @ShabazDraee
      @ShabazDraee 5 ปีที่แล้ว

      ShakaFPV where is the option to start that machine?

    • @ShakaFPV
      @ShakaFPV 5 ปีที่แล้ว

      @@ShabazDraee on the hack the box website, when you sign in (if you don't have an account you hack in to make one) go to the machines tab, go to retured machines, find the machine you want to start and press play! Activate the VPN and you're good to go :) you do need a paid membership to access retired machines

  • @Reelix
    @Reelix 5 ปีที่แล้ว

    Wow. From 2:30 to 19:00 - I didn't find the backup file, found a way to use exiftool to embed a shell to bypass image upload restrictions, and carried on like that.

    • @ippsec
      @ippsec  5 ปีที่แล้ว +3

      This is doing the same thing but you’re just skipping enumeration. It’s like doing a buffer overflow and skipping “bad character” checks. Nothing wrong with it but it’s important to know it for when skipping doesn’t work. For example I’ve seen code that just stomps all metadata to validate GPS cords aren’t in it. You can also just cat the shell to the end of an image, no need to do metadata

  • @TheAmzuk
    @TheAmzuk 5 ปีที่แล้ว

    Thanks for the vid! Get better!

  • @SmartLifeEnthusiast
    @SmartLifeEnthusiast 5 ปีที่แล้ว

    To print arrays or other non-string variables, I usually use var_dump().
    I.e. `var_dump(scandir('.'));`

  • @user-bg9xo2xv6v
    @user-bg9xo2xv6v 5 ปีที่แล้ว +5

    Aw, now I lose my points for this one.

  • @גלדדון-ט6נ
    @גלדדון-ט6נ 5 ปีที่แล้ว

    hey guys, I'm not sure I understand why the command injection worked.
    ippsec sent a file with the last extension as a gif so the server shouldn't be able to read it as a PHP code right?
    it should read it as a gif and also the mime-type of the file is a gif
    am I missing something? because when I tried it (almost identical to what he did I failed).
    thanks in advance for your response

    • @souravbanerjee6457
      @souravbanerjee6457 4 หลายเดือนก่อน

      Thats what he explained in the last part of the video. The apache configuration file was not properly configured thats why it was only checking if the filename has .php only and executing it.

  • @WhyClarified
    @WhyClarified 5 ปีที่แล้ว

    thank you

  • @pep1878
    @pep1878 5 ปีที่แล้ว

    Tfw I targeted this box bc I thought it would have rolled out after postman and saw my points disappear at 98.4% progress

  • @abdulrahman-5245
    @abdulrahman-5245 5 ปีที่แล้ว +1

    learn how to break it then how to fix it

  • @harleyk8073
    @harleyk8073 4 ปีที่แล้ว

    Only Ippsec will hack into a box just to fix its misconfiguration.

  • @YuKonSama
    @YuKonSama 5 ปีที่แล้ว +1

    It took me like a f***ing year to realize that .php.gif works. This is so "engineered", in the real world this would never happen.... :D

    • @martindimitrievski5703
      @martindimitrievski5703 5 ปีที่แล้ว +1

      This does happen in the real world.

    • @YuKonSama
      @YuKonSama 5 ปีที่แล้ว

      @@martindimitrievski5703 sounds like you have configured a server like this before yourself :D.

    • @martindimitrievski5703
      @martindimitrievski5703 5 ปีที่แล้ว

      @@YuKonSama More like I have encountered such server configs before, but suite yourself :)