XML Object Exfiltration - HackTheBox Cyber Apocalypse CTF "E. Tree"

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • Moving your first steps into hacking? Start from HTB Academy: bit.ly/3vuWp08
    Hungry for more hacking training? Join Hack The Box now: bit.ly/331nQCl
    For more content, subscribe on Twitch! / johnhammond010
    If you would like to support me, please like, comment & subscribe, and check me out on Patreon: / johnhammond010
    PayPal: paypal.me/john...
    E-mail: johnhammond010@gmail.com
    Discord: johnhammond.or...
    Twitter: / _johnhammond
    GitHub: github.com/Joh...

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

  • @joseurena7116
    @joseurena7116 3 года назад +25

    I love the fact that you’re doing CTF stuff, every influencer is doing mostly box pwning and ctfs develop those quick thought skills required. Nice to see a pro do it 👊🏻

  • @durzua07
    @durzua07 3 года назад +10

    Not gonna lie, I was lost on the whole video but I loved it! Insane stuff John!

  • @mossdem
    @mossdem 3 года назад +9

    Loving these videos as always John! I'm now beginning to actually understand what it is you're writing so its a lot easier to follow along. Keep up the grind, love to see it!

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

      Call me crazy but the way he’s going through this isn’t a normal happening out in the wild. It’s too obvious and too rehearsed, he never went into anything technical, it was more of a Öh of course”kind of thing. WITH everything nice and tidy and human readable, one natural logical discovery flowing into the next, it’s like watching someone go through a page of pseudocode. Idk 🤷 I just have not seen any actual exploits work so fluidly and without any obfuscation put into the so called errors he was getting.

  • @lepsycho3691
    @lepsycho3691 3 года назад +5

    That was fun, I felt the same feeling watching you as I do when I'm not sure if this is the right track or not! Good job!

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

    Really great solution John, probably I will never figure out that challenge.

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

    Leaking the last part of flag was hard. New thing !

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

    I've been really enjoying these videos! I'm a game programmer by trade and this is far enough outside my wheelhouse
    that I'm learning a ton, but close enough that everything is super easy to follow. A lot of stuff has quickly gotten demystified for me over the past few weeks :p Keep it up!

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

      A real one? Actually that’s mean to say these days, so instead one that designs his own game engines and that does the physics and complex logic, like linear algebra and combinatorics maths (M ̈obius functions for breakfast) OR a GUI drag-n-drop Unreal Engine guy?

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

      @@cedricvillani8502 Says the guy with an "introduction to Unity's new visual scripting tool" vid in his playlist?
      For reak though, whatever it is that's making you feel so negative, I hope it passes soon

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

    algorithm, love learning by watching you learn

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

      Like algorithms you do? Ok.. Let P = Bn, the Boolean algebra of subsets of {1,2,...,n} ordered by inclusion. Let 2 be the poset with two elements (it has two elements ˆ0 ≤ ˆ1) ✅ WiTh M3 S0 FAR?? OK Cool 😎 SO….. because we can view Bn as a zero-one vector. Let us compute μ for Bn. μ for 2 is given by μ(0,0) = μ(1,1) = 1 and μ(0,1) = −1. With the lemma, we find that μ(T,S) = (−1)|T−S| i.e. μ(T,S) = (−1)# times T and S differ. I think the only thing Mr. Hammond is learning is how to make a RUclips Video about Hacking, without actually showing any real useable code so it doesn’t get the BAN hammer 🔨 and costing him a ton of money 💰. It is fun fiction though

  • @DirkBaumeister
    @DirkBaumeister 3 года назад +8

    I think the second part would have been easier if you had changed the search to ends-with starting with a closing curly braces and reversing the string afterwards :) nevertheless great video! :)

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

      Yea good idea exploiting known knowledge of the flag. His method would also not work if the first char of the second part of the flag started with a 'C'. My initial idea was to leak name, so you ignore the staff with the first part of the flag completely on your second blind sql injection. My method would have took longer, but in theory it would work irregardless what the second part of flag contained.

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

    Thanks for great video ... really enjoying python part of solving problems

  • @anthonutty
    @anthonutty 3 года назад +3

    I think one other thing you could have done is provide an XPath that selected the n-th occurrence of selfDestructCode.

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

    watching a sequential string search is fun, but painful - kinda like mxsturbating with a cheese grater. it's easier finding the string length first, then doing a binary search. still, great job getting there. i rather enjoy your content. :3

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

    This was fun to watch, thanks JH

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

    11:14 confusion
    it creates entropy
    thank you
    13:51 [✓] moving "toward" a limit, [✓] moving "towards" a limit

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

    John ! Thanks again ! Just took a little time to get how you reached the second occurence. It clicked just after asking on your Discord :-)

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

    Appreciate these videos Sir! Thanks!!

  • @Skavin1000
    @Skavin1000 3 года назад +7

    This felt a bit like everything looking like a nail once you have a hammer.
    owe knew the key ended with } so maybe "ends-with" would have been easier for the second part?

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

      It’s a logical flow, so anyone, even people who don’t program can follow along and even guess at the answer before he types it. Very mentally rewarding, I mean even the error’s were giving pseudocode answers.

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

    dude that was awesome

  • @krlst.5977
    @krlst.5977 3 года назад +1

    That was fun, thx

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

    Amazing John!!

  • @kennymd
    @kennymd 3 года назад +5

    I feel like John is gonna be so hyped about Python 3.10's new match-case statement

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

      @panda doesn't need END

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

      @panda It's basically switch-case on steroids

  • @ЮЗЛЕС
    @ЮЗЛЕС 3 года назад +1

    Good content!

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

    Almighty ALGO!!!

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

    I am not sure what the { did in the string concatenation, but both expressions should work without it as only the fist flag part starts with it.

  • @s.aravindh6227
    @s.aravindh6227 3 года назад +1

    Nice video bro 👍👍

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

    John, what song is the Outro , it sounds like a very cool instrumental? :D

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

    Great

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

    Could be a really stupid question, but what is actually the limiting factor in the speed of trying different characters? Is it Network speed to the box or could it be made faster if you used multi threading to try multiple possible combinations at once?

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

    @johnhammond, don't know if this will help in the future but there is xcat for kali that can be used. I know you use parrot and Ubuntu and stuff, but xcat is a tool for XPath injection and can be used with blind XPath. I learned about it in eWPT

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

      He knows, it was even in the document he showed in the beginning, but would not have made a very entertaining story. Not to mention it would be to close to something someone could do in the real world and possibly cost him his RUclips channel, and that is a big $$$ deal. I wouldn’t see why he would risk it, he probably wrote this CTF in the first place. John has taken on and beaten ppl in the real world, like at Def-Con.

  • @capability-snob
    @capability-snob 3 года назад +1

    Do you usually find on a job you are guessing how the sql or xpath that the developer wrote is structured or do cheat sheets and scripts usually get you all the way there?

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

      HAHA right , I wish when I got errors they gave me the fix and clue to the next step in Pseudocode

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

    Nice

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

    Nice stuff ❤️

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

    The outro is just build different

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

    Can you do a video of you explaining your videos. The methods you're using and your mindset when you're faced with the challenge.

    • @ko-Daegu
      @ko-Daegu 3 года назад

      You are kidding right ?

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

      @@ko-Daegu no, you must not get the question.

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

      You mean explains how to not only code the problem (ex. CTF) but also do a human readable “hack”that won’t actually work in the real world? Because yes I’m also curious, and I wonder if he employs a few other programmers to make sure he doesn’t step to far outa line and cost him a lot of money

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

    Are you doing all of this on a VM, wsl2 or Linux os?

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

    Can someone help me understand how exactly the second part worked for the second part of the flag!?!

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

    im confused how that 2nd injection even worked lol i kept saying the answer was //selfDestructCode[1].StartsWith
    or whatever

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

    Hay, how can someone contact you for a CTF teaching

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

    I hope HTB discord would be better than THM in terms of helping people who dont know how to solve something and also the mods😅

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

    Hello, Computer? - John Hammond 2021

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

      Or Star Trek IV when Scotty grabbed the computer mouse and tried to talk to it saying, "Hello Computer ." 🤣🤣

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

    Great content, as always! I seem to learn something new that I should've already known, every time.

  • @HoaPham-rg8rm
    @HoaPham-rg8rm 3 года назад

    What is problem with python 2 ?

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

    5INALLY !!!
    Some john hammond things
    sorry that i haven't watched the stream because of the dummy isp
    Edit : me see john do some blind things and it works 😐🤨😬🤯🤯🤯😵

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

    Can you make Hardware hacking?

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

    what Linux distro is Mr. John using ??

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

    please start with basic to advanced daily 1 ctf basic to advanced 🙏

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

    Hello

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

    hello yt algorithm

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

    more x path injection

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

    22:20 I'm no hacker lol but I'm pretty sure you could've reversed the original script to check using XPath ends-with instead of using starts-with.

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

    Burp suite 4woinders one 🕐 nod pasbul

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

    I have watched a lot of you videos and enjoy them. I guess I finally have to ask. Why is your face on the screen? It doesn't benefit the viewer at all. In fact all it does is get in the way. Is it an ego thing?