Bash injection without letters or numbers - 33c3ctf hohoho (misc 350)

Поділитися
Вставка
  • Опубліковано 21 вер 2024
  • This challange was an amazing team effort. There were multiple steps necessary for the solution and different people contributed. The final big challenge was a bash eval injection, but without using any letters or numbers.
    =[ 🔴 Stuff I use ]=
    → Microphone:* geni.us/ntg3b
    → Graphics tablet:* geni.us/wacom-...
    → Camera#1 for streaming:* geni.us/sony-c...
    → Lens for streaming:* geni.us/sony-l...
    → Connect Camera#1 to PC:* geni.us/cam-link
    → Keyboard:* geni.us/mech-k...
    → Old Microphone:* geni.us/mic-at...
    US Store Front:* www.amazon.com...
    =[ ❤️ Support ]=
    → per Video: / liveoverflow
    → per Month: / @liveoverflow
    =[ 🐕 Social ]=
    → Twitter: / liveoverflow
    → Website: liveoverflow.com/
    → Subreddit: / liveoverflow
    → Facebook: / liveoverflow
    =[ 📄 P.S. ]=
    All links with "*" are affiliate links.
    LiveOverflow / Security Flag GmbH is part of the Amazon Affiliate Partner Programm.
    #CTF

КОМЕНТАРІ • 183

  • @MrCheeze
    @MrCheeze 5 років тому +202

    The biggest twist of the whole video is that 11 other teams managed to solve it.

  • @tettracoins7690
    @tettracoins7690 6 років тому +364

    That is the most dope ctf challenge i think i've ever seen, well done

    • @LegacyVision.
      @LegacyVision. 5 років тому +2

      The required "n" and "i" that are in printf sold me. Awesome builder of a challenge!

  • @sauron1427
    @sauron1427 7 років тому +281

    damn... I can follow what you're saying but I'd never have figured it out

    • @12Tsurugi
      @12Tsurugi 5 років тому +10

      Well I believe only an insanely small amount of people could resolve that on their own. Thats why they were a team lol

    • @MegaStupidMonkeys
      @MegaStupidMonkeys 5 років тому +37

      I would get stuck on the hanoi problem for a day. Forget about bash.

    • @douwehuysmans5959
      @douwehuysmans5959 5 років тому +7

      Dont say that, what you see here is the result of hours of work

  • @BogdanCalin941
    @BogdanCalin941 7 років тому +203

    That was insane. Some of these challenges are hugely complicated.

  • @nothayley
    @nothayley 6 років тому +151

    I stumbled upon this video while looking for a way to inject into a bash shell without using /lowercase/ letters (uppercase okay), but you seem to have blown that out of the water. Good job. That ö function is genius.

  • @omarhu983
    @omarhu983 4 роки тому +17

    “What language did you use to write the solution?” “German”

  • @psl101
    @psl101 6 років тому +41

    Hahahaha amazing! The people that write these CTFs are insane

  • @waqarahmed4200
    @waqarahmed4200 7 років тому +70

    LiverOverFlow god mode activated

  • @rafajanicki2456
    @rafajanicki2456 7 років тому +67

    Damn, I've learnt so much from one 11 mins. video :O

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

    The part of constructing the ascii characters by using numbers created with the amount of parameters was genius!!

  • @gaelc13
    @gaelc13 7 років тому +7

    Nicely done... this is one more proof that the arbitration between convenience and security is not easy.

  • @Ski4974
    @Ski4974 3 роки тому +1

    Damn, that's really really interesting. I would've never thought about that, but I can pretty much follow what you're saying (idk a lot about Bash escape sequences and Bash in general tbh), but as you revealed each part, with the filenames, getting numbers, and getting letters, it was so interesting.

  • @theycallmeken
    @theycallmeken 6 років тому

    I have never smiled so much while watching a video online. BRAVO!

  • @husam1919
    @husam1919 7 років тому +4

    Damn, this was creative af hahaha. Even though I barely know any bash, this was very interesting to watch. Oh, and congrats on solving it :D

  • @r.pizzamonkey7379
    @r.pizzamonkey7379 4 роки тому

    That is very clever. You essentially convert from bijective base 1 -> digits in base 8 -> ascii string. And all of this stemmed from noticing a single error when you were entering whether you were naughty or nice.

  • @Mel-qp4vq
    @Mel-qp4vq 5 років тому +1

    I thought I knew Linux but clearly I have so much more to learn . Well done

  • @TheMame82
    @TheMame82 7 років тому +28

    Well done. Reminds me in "JSFuck"

  • @VaradMahashabde
    @VaradMahashabde 5 років тому +4

    That was pure genius.... and drunk bash devs

  • @quaternaryyy
    @quaternaryyy 7 років тому +1

    I'm a noob linux user... just learned a whole lot more about my shell haha.
    amazing!

  • @ZaneHelton
    @ZaneHelton 7 років тому +5

    That was insane! Very cool process!

  • @jimbo80982
    @jimbo80982 5 років тому +2

    Totally forgot about the * in bash, nice work here

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

    This is the dopest injection I have ever seen, god, that's incredible work

  • @RobinCawthorne
    @RobinCawthorne 6 років тому +2

    this looked like it was really fun to solve.
    nicely done.

  • @rj_2190
    @rj_2190 5 років тому +1

    That is incredibly genius. Wish I could’ve taken part in that!

  • @nictuniema1249
    @nictuniema1249 7 років тому +3

    Man you should be proud !! Thats amazing work . Btw how experience are those guys which wrote the CTF , are they machines :D?

  • @Kholaslittlespot1
    @Kholaslittlespot1 5 років тому

    Very cool. Wasn't following for a while but then you made it make sense. Thanks!

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

    wow, what an amzing and unique ctf

  • @wbuchmueller
    @wbuchmueller 7 років тому +19

    0:55 club mate konsum ist stabil wie man sieht 👍

  • @a13ph0
    @a13ph0 5 років тому +1

    Knowing about jsfuck and Church encoding, I knew what to expect from the video title. Still learned a few things.

  • @huw268
    @huw268 6 років тому +12

    this really makes me want to go to a ctf
    if i could talk to people that is

    • @LiveOverflow
      @LiveOverflow  6 років тому +15

      we are all awkward weirdos ;)

  • @bool2max
    @bool2max 6 років тому +9

    4:10 running zsh lmao

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

    3:10
    Oh I got it. You have to use a fork bomb ;)
    In all seriousness I guessed using those fancy escape strings right when I saw it so like yay

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

    This is what true madlads do.

  • @ahora1026
    @ahora1026 5 років тому +12

    This made realize how dumb I'm and freaking slow my brain is :(

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

    Redstar OS, u are a genius

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

    Brilliant!

  • @abadhaiku
    @abadhaiku 5 років тому +8

    You did it. You made SHFuck.

  • @staberas
    @staberas 5 років тому +1

    me reaching 9:30 and realising what you'd done: YOU MAD LADS !

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

    beautiful!

  • @0xbro
    @0xbro 3 роки тому

    This was super smart! wow!

  • @KL-og8gg
    @KL-og8gg 7 років тому

    this blow my mind, never see this before in my life...thanks bro

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

    Holy fuck... you and your teammates are insane, I love this

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

    Amazing solution! I would never have figured that out! Any good resources on that topic to learn more about it? Kinda got hooked on the idea

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

    well done

  • @Zooiest
    @Zooiest 5 років тому +3

    The letter ä is also used in Finnish
    Edit: and obviously ö

  • @samyong4148
    @samyong4148 6 років тому

    Man this is brilliant!!

  • @roboto_
    @roboto_ 6 років тому

    what the fuck the shell expansion fuckery was amazing

  • @imgladnotu9527
    @imgladnotu9527 5 років тому

    damn with all those drinks on-site, LiveOverflow is basically the fucking demoman from team fortress 2

  • @spiros1994
    @spiros1994 7 років тому

    that was amazing...great work indeed

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

    pure beauty

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

    I'm wondering if there is always just this one solution to finding the flag?

  • @kltr007
    @kltr007 6 років тому +1

    Reminds me to the programming language called "brain fuck".
    Great job, TNX for sharing your experience.

  • @mimizdani8194
    @mimizdani8194 5 років тому +1

    i saw the Mate there, i really germany just cuz of that drink xD

  • @Davizuky
    @Davizuky 7 років тому +3

    Hi, are you planning to do some reversing on windows executables?
    Great video, as always.

    • @LiveOverflow
      @LiveOverflow  7 років тому +5

      I'm a complete noob on windows. But checkout cyberspace.camp on UA-cam. He has some awesome videos about windows.

  • @randomagent
    @randomagent 5 років тому

    Unbelievable!

  • @lordtony8276
    @lordtony8276 6 місяців тому

    picoCTF 2024 is doing something really similar to this right now, and I cannot figure it out.

  • @itaybarok9405
    @itaybarok9405 2 роки тому

    amazing!
    I have a question that :
    how did you knew that the name of the script that ran the /flag file was named "get_flag".
    besides, how did you knew that the %s in this "get_flag" file can be provided as a program terminal argument?
    Thanks a lot for the videos!
    I r34lly appreciate your work!

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

    That's such a difficult ctf

  • @darkstar2111
    @darkstar2111 7 років тому

    Wow! God work!

  • @fatcatgaming695
    @fatcatgaming695 5 років тому

    Incredible work :)

  • @Jagnathbaba
    @Jagnathbaba 5 років тому

    Amazing!!! Just mind blowing. One thing i would like to ask, couldn't you use "_" and "__" as function names instead of those German characters?

    • @a13ph0
      @a13ph0 5 років тому

      _ is in ascii chat set, so no

  • @bezmuth
    @bezmuth 6 років тому +2

    3:54 redstar-os

  • @danielsalloum3006
    @danielsalloum3006 6 років тому

    Mind blown.

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

    How can you ever dislike this video?

  • @zedwong2486
    @zedwong2486 5 років тому +1

    omg! what a player!

  • @michel_dutch
    @michel_dutch 5 років тому

    This was awesome.

  • @chuck_norris
    @chuck_norris 5 років тому +1

    "ä and ö" xD lachflash

  • @vequeemnheveque3778
    @vequeemnheveque3778 7 років тому

    The best video.... thanks

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

    As special characters are allowed (mentioned in the video) a non german could also have used characters like / and _
    I had to use ???nt? instead of ???n?? because it was expanding to:
    /???/???/???n??
    /usr/bin/printf /usr/bin/telnet /usr/lib/kernel
    here is the function definition for /
    /() { /???/???/???nt? ${@}; }
    / hey
    hey
    Love the approach :D

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

    Hey LiveOverflow, off-topic question: What color theme is that in the terminal?

  • @rexyfahrezi
    @rexyfahrezi 5 років тому

    Mind blowing

  • @bronga645
    @bronga645 5 років тому

    insane

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

    Great challange. Any chance to setup this chalange on my own? Are these CTFs open after the challange?

  • @mariusandersons
    @mariusandersons 5 років тому

    mind blowned 🙃🙃

  • @JCake
    @JCake 5 років тому

    That's actually fucking genius

  • @elidrissii
    @elidrissii 6 років тому

    Great one.

  • @zacariasbenta3910
    @zacariasbenta3910 6 років тому

    Amazing

  • @colintosh5417
    @colintosh5417 5 років тому

    In what way is this going to be useful in everyday life?

  • @renakunisaki
    @renakunisaki 5 років тому

    Holy hell that's clever.

  • @od_static
    @od_static 6 років тому

    i wasnt sure up until now after watching some random videos of yours, but now im pretty sure you're german ^^ anyway, great solution to sth i would have given up after 10 minutes xD

  • @MatasMinelga
    @MatasMinelga 6 років тому

    It reminds me of the time when I was stuck with a single PC that would not boot properly (only text mode kinda worked) and the system had only one localisation (I was/am a linux noob and didn't know how to fix that) so I wasn't able to do some characters at all and I had to use a similar workaround to use these characters (I think it was % and maybe something else) just so I could wget and dd an .iso file to my usb flashdrive to chroot into the system and do the stuff I needed to.

  • @jrmartinss
    @jrmartinss 7 років тому +7

    Sorry my English. My dream is to be like you, I really want to learn what you know, but I do not know where to start. Can you help me where to start?

    • @LiveOverflow
      @LiveOverflow  7 років тому +4

      thanks! very kind of you to say. I have a binary hacking course playlist that starts at the beginning. So check those out: liveoverflow.com/binary_hacking/index.html

    • @jrmartinss
      @jrmartinss 7 років тому +2

      LiveOverflow Thank u very much

    • @cyancoyote7366
      @cyancoyote7366 7 років тому +1

      I also wish you the best of luck :) Keep learning!

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

    hmm.....u guys crazy lah

  • @MrRetro78
    @MrRetro78 7 років тому

    very cool....
    I missed the cingress this time :-(

  • @friendly_alkali
    @friendly_alkali 6 років тому

    I haven't ctfed in a while, but I

  • @TeeDawl
    @TeeDawl 7 років тому

    wow, awesome!

  • @r.pizzamonkey7379
    @r.pizzamonkey7379 3 роки тому

    I'm surprised Unicode characters were allowed through, how were they doing the filtering?

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

      They only filtered ASCII, not Unicode. At least that's what I think. Correct me if i'm wrong

  • @Delectarix
    @Delectarix 5 років тому

    [GERMAN]
    Ich denke mit eurer ersten Reaktion auf das Rätsel wart ihr schon ganz richtig ich hätte auch instant äh öh gesagt....
    [ENGLISH]
    I think with your first reaction to the riddle you were quite right I would have said "äh öh" (German for huh?, Wait what?) immediately ...

  • @joirnpettersen
    @joirnpettersen 5 років тому +2

    YES 3B1B

  • @georgecostanza7316
    @georgecostanza7316 6 років тому

    around the 6 min mark how do you make your screen show some char in purple and the other chars in white?

  • @pinekel1081
    @pinekel1081 5 років тому +1

    Delitefully devilish seimor

  • @anteconfig5391
    @anteconfig5391 5 років тому

    omg that's insane

  • @JTguwnu
    @JTguwnu 6 років тому +3

    Wie einfach alle Club Mate konsumieren! xD

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

    this dude is using redstar os. wow

  • @mashmax98
    @mashmax98 6 років тому +6

    3blue1brown ❤️

  • @noob3132
    @noob3132 5 років тому +2

    Can't you extract the password with a bunch of var=${ü#*NULL CHARACTER} or similar? Start with ü="$(that cat command you used to find it)"

    • @jimbo80982
      @jimbo80982 5 років тому

      Getting tha password from the file would have been easy it was the bash eval that needed to be exploited.

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

    crazy

  • @enhboldotgonbaatar248
    @enhboldotgonbaatar248 6 років тому

    just wow

  • @brainstorm8445
    @brainstorm8445 5 років тому

    Satisfactory is an actual game

  • @eliassjogreen5817
    @eliassjogreen5817 7 років тому

    ä (å too) and ö is also used in nordic languages such as Swedish

    • @avamander.
      @avamander. 5 років тому

      And Estonian also uses õ.