How some functions can be Dangerous | bin 0x01

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 มี.ค. 2021
  • #BinaryExploitation #ELF #Executables
    This is the second video in the series Binary Exploitation. In this video, we're gonna look at some simple attacks via dangerous functions.
    🔗 Code + Build Instructions: old.hackercamp.co/
    💬 Discord: / discord
    🐤 Twitter: / pwnfunction
    🎵 Track: Warriyo - Mortals (feat. Laura Brehm)
    NCS link: • Warriyo - Mortals (fea...

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

  • @PwnFunction
    @PwnFunction  3 ปีที่แล้ว +345

    I had to do it.
    P.S did you find the date?

  • @sovietcat4825
    @sovietcat4825 3 ปีที่แล้ว +344

    I love your color scheme and art style... even your terminal feels satisfying to look at

    • @Wpar
      @Wpar 3 ปีที่แล้ว +2

      do you know what the font is called for the terminal?

    • @sovietcat4825
      @sovietcat4825 3 ปีที่แล้ว +8

      @@Wpar yes it's monolisa...
      I worked hard to find it
      but its not free tho

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

      I believe it is the Robby Russell theme from Oh My ZSH if anyone else is looking for this in the future, if not it looks very similar

    • @SpeedingFlare
      @SpeedingFlare 3 ปีที่แล้ว +4

      The theme of his videos reminds me of the Dracula theme

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

      @@sovietcat4825 50 quid for a font lmao

  • @itskarudo
    @itskarudo 3 ปีที่แล้ว +280

    did i just get rickrolled by an ELF binary

    • @Sparkette
      @Sparkette 3 ปีที่แล้ว +7

      If you run your browser on Linux, technically that's any rickroll.

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

      @@Sparkette *on Linux kernel versions after 2.6.0,

    • @Sparkette
      @Sparkette 3 ปีที่แล้ว

      @@tsalVlog What did that add? DRM? (The good kind 😛)

    • @Ryan-xq3kl
      @Ryan-xq3kl 3 ปีที่แล้ว +2

      @@Sparkette one time i got an error that said “invalid arch independent ELF magic” and i thought it was just fucking with me

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

      @@Ryan-xq3kl If that happens again, I'd call Santa Claus

  • @oleh6738
    @oleh6738 3 ปีที่แล้ว +215

    In level 2 you could also enter 'zsh' instead of '\

    • @paulosantana9607
      @paulosantana9607 3 ปีที่แล้ว +10

      I was thinking the same, but wasn't sure if it would work

    • @enderger5308
      @enderger5308 3 ปีที่แล้ว +19

      Or sh, which is 2 characters (launching the Borne Shell)

    • @masamune5710
      @masamune5710 3 ปีที่แล้ว +2

      That’s what I immediately thought. In ctfs it’s generally desirable to look for ways to get a shell

    • @Ski4974
      @Ski4974 3 ปีที่แล้ว

      I thought that tool lol

    • @lilspelunker5613
      @lilspelunker5613 3 ปีที่แล้ว +6

      I was thinking of " -i" since the manual page had -i (interactive mode) and I thought it'd use interactive and ignore -c if you did that

  • @parente1998
    @parente1998 3 ปีที่แล้ว +68

    came here from LiveOverFlow's video and i loved your content, just what I was looking for

  • @sk8erman069
    @sk8erman069 3 ปีที่แล้ว +44

    Just about died when you made the ‘root shell on the first date’ joke. Great stuff, can’t wait for the next video!

  • @0xsudip892
    @0xsudip892 3 ปีที่แล้ว +45

    I really like your way of teaching.Cool+informative+meme😂❤️

  • @tudhaya
    @tudhaya 3 ปีที่แล้ว +27

    that was some next-level rickroll... it's a great video btw!

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

      @Hand Grabbing Fruits Well, it's a level 3 rickroll

  • @bluesillybeard
    @bluesillybeard 3 ปีที่แล้ว +9

    14:20 as soon as I saw "never gonna give" I instantly thought "OH NO"

  • @CubensisEnjoyer
    @CubensisEnjoyer 3 ปีที่แล้ว +7

    Wow this has to be one of the most interactive videos I've ever watched about this topic. I know a little bit about Linux and a decent amount about C++ and this helped me connect the two in such a sensible way.

  • @wizdakid1842
    @wizdakid1842 3 ปีที่แล้ว +2

    im really glad i found you i love how you setup you videos, you give examples and really break it down, keep up the good work

  • @gaspardbouchard6215
    @gaspardbouchard6215 3 ปีที่แล้ว +2

    I have been looking for something like this for the past 3 years, and I love this

  • @samuelisaac2984
    @samuelisaac2984 3 ปีที่แล้ว +4

    The use of þ in this video is sort of hilarious to anyone that reads it as "th"

  • @ilyboc
    @ilyboc 3 ปีที่แล้ว +8

    I like how clean your slides/interface are

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

    this is so high quality, amazing work

  • @navidmafi
    @navidmafi 2 ปีที่แล้ว +1

    This is pure gold, keep up the great work.

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

    The roll at the end was a nice touch 👌

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

    This channel is so good, loving your content

  • @okal7706
    @okal7706 3 ปีที่แล้ว

    As always, excellent video.

  • @sechvnnull1524
    @sechvnnull1524 3 ปีที่แล้ว

    Awesome job explaining this!!

  • @JasonLee-kw9ow
    @JasonLee-kw9ow 3 ปีที่แล้ว +11

    Bro, your videos are so amazing. thank you for the hard work. Have a nice day!

  • @funkykong9001
    @funkykong9001 3 ปีที่แล้ว

    Love the graphics. Very well done

  • @pbezunartea
    @pbezunartea ปีที่แล้ว

    Great video!

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

    Very nice video! Glad I found your channel :P

  • @columbasaint465
    @columbasaint465 3 ปีที่แล้ว

    Excellent content

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

    This helped a lot thank you

  • @3dnacho
    @3dnacho 3 ปีที่แล้ว

    Really good content!

  • @rayhaanbhikha9094
    @rayhaanbhikha9094 3 ปีที่แล้ว

    Amazing content 👏

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

    That's where the trouble began, that terminal. That damn terminal 🥺 It's so beautiful 😭

  • @isiraadithya
    @isiraadithya 3 ปีที่แล้ว

    Wow! No unlikes so far!!! I never seen a video like this. congrats! Keep it up. I am going to watch the whole channel today. 👌🏽👌🏽👌🏽

  • @RudraSingh-pb5ls
    @RudraSingh-pb5ls 3 ปีที่แล้ว

    Gals you are back with another video 😁😁
    Keep making such videos

  • @NinjaTech1337
    @NinjaTech1337 3 ปีที่แล้ว

    Awesome mate❤️we need more videos for binary exploitation

  • @ignaciomuriel5183
    @ignaciomuriel5183 3 ปีที่แล้ว

    Nice very good ; thanks for sharing

  • @flamingo-stabbingo
    @flamingo-stabbingo 3 ปีที่แล้ว

    Your materials are soooo go, thank you, would love to have lessons with you :)

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

    just use shell script for example 3 to save some steps! Anyway thanks for the awesome video!! I was actually surprised that after years of programming and no studying security a lot of these answers came quickly and naturally to me. I would have even tested

  • @Hassnain__622
    @Hassnain__622 3 ปีที่แล้ว

    I was waiting for binary exploitation for so long

  • @Tony_Goat
    @Tony_Goat 3 ปีที่แล้ว +4

    >Imagine what could go wrong if a user supplied input got in, it would be worse than if an asteroid hit
    I dunno man, sounds like bash but with extra steps.

  • @00xero
    @00xero ปีที่แล้ว

    "Hi simp" 😂 nice touch

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

    OMG! I fkin died when you said "only logical thing to do next: hack the Pentagon". 🤣🤣🤣 Your sense of humor is awesome!

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

    How to hack pentagon: 1. get an axe 2. go to pentagon

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

      Vote after dying, it seems to work as of lately...

  • @Omar-sr1ln
    @Omar-sr1ln 3 ปีที่แล้ว

    subbed

  • @umbra.2942
    @umbra.2942 ปีที่แล้ว

    almost died to the rickroll, it's currently 11pm, i'm alone in the dark.

  • @jadigger8695
    @jadigger8695 3 ปีที่แล้ว

    niceeeeee videeeo keeep going please

  • @ethanrushbrook3314
    @ethanrushbrook3314 3 ปีที่แล้ว

    +1 sub :)
    TH-cam served me some of these vids and the production quality is 9/10 and you've only got like 60k subs. To the moon like doge...

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

    Security cells in your brains' like *beep* *beep* *beep* WARNING! Threat detected, Defcon1 bla bla bla XD [ This guy is simply awesome! ]
    Love your content

  • @callumery119
    @callumery119 3 ปีที่แล้ว +4

    It must take you so long to make these incredibly videos.

  • @ladyViviaen
    @ladyViviaen 3 ปีที่แล้ว +4

    respects for using chr(0x69) to test inputs hehehe

  • @hectorcanizales5900
    @hectorcanizales5900 3 ปีที่แล้ว

    Great video man, subbed! Got any suggestions on how to get started on learning how to hack?

  • @Livenewme
    @Livenewme 2 ปีที่แล้ว +1

    Instructions unclear I'm now on the FBI's most wanted list

  • @cybersecurity3523
    @cybersecurity3523 3 ปีที่แล้ว

    Good bro

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

    Easier solution to *level3* that I've come up with:
    - create a C file(mw.c) that executes the command "cat flag.txt"
    - compile the C in a way that the binary executable name is only 2 chars long.
    gcc mw.c -o *mw*
    - replace the "date" text in the level3.c file by using the sed command, hence:
    *sed -i 's@date@./mw@' level3*
    - ./level3 and boom

  • @babakjan
    @babakjan 3 ปีที่แล้ว

    Great video. Can you please make video, where you show, how to customize shell like you 🙏😁.

  •  3 ปีที่แล้ว

    I love your style and the pace of the video, subscribed! Btw what font do you use? It's lovely!

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

      It's called Dank Mono

  • @crlfff
    @crlfff 3 ปีที่แล้ว

    better than liveoverflow

  • @bandanaboii3136
    @bandanaboii3136 3 ปีที่แล้ว

    Just said out loud “who the fuck is this???” Subscribed

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

    👍👍

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

    Nice video! What program do you use to make those kind of animation ?

  • @willd4686
    @willd4686 3 ปีที่แล้ว

    Haha I've used system()! Super useful. I've also done something similar with JavaScript. But sometimes you want to do something that isn't technically safe.

  • @Tclack
    @Tclack 3 ปีที่แล้ว +7

    I wish to see much success with this channel. You're setting yourself up nicely!
    subscribers+=1

    • @blank-vw2sb
      @blank-vw2sb 3 ปีที่แล้ว +3

      error: expected ';' before EOF
      subscribers += 1
      ^~~~~~

    • @Tclack
      @Tclack 3 ปีที่แล้ว

      Haha, very nice. But you see, I'm using python

    • @Tclack
      @Tclack 3 ปีที่แล้ว

      @juan francisco Minor you're totally right. My last excuse is I just don't really know C/C++ 😥

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

      @@Tclack well, once you know C++, you know C!

  • @killianoshaughnessy1174
    @killianoshaughnessy1174 3 ปีที่แล้ว +4

    I can't believe I got rick rolled.

  • @TechflashYT
    @TechflashYT ปีที่แล้ว

    Just about died when the last flag was read.

  • @scottdotjazzman
    @scottdotjazzman 3 ปีที่แล้ว

    You cheeky bastard! 😂

  • @electricz3045
    @electricz3045 3 ปีที่แล้ว

    If you have this guy you don't need other tutorials / explanations from others ♥️

  • @boblol1465
    @boblol1465 3 ปีที่แล้ว

    13:10
    big brain

  • @mospher9253
    @mospher9253 3 ปีที่แล้ว

    UHHH New Video

  • @alphatau87
    @alphatau87 3 ปีที่แล้ว +4

    Please continue making moar videos. Format, content and humor are great to my taste!

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

    this was a very interesting rickroll

  • @blank-vw2sb
    @blank-vw2sb 3 ปีที่แล้ว

    9:35
    Gnat!!

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

    First time I've heard etc pronounced as etsy

  • @ca7986
    @ca7986 3 ปีที่แล้ว

    ❤️

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

    What is your zsh profile (basically how do I get my shell to look like yours) also for vscode what fonts do you use

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

    Hey bro can you tell me which software you're using to edit these animations?

  • @winstonlopez6117
    @winstonlopez6117 3 ปีที่แล้ว

    I green to the whole writing code. Learing linux on a pie someone gave me. So to be able to have root access in a line is crazy to me. Havin Fun learning though.

  • @claugodcli
    @claugodcli 3 ปีที่แล้ว

    On 5:17 I see a daywalker indeed

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

    What's the drawing app that you're using?

  • @obitorasu1760
    @obitorasu1760 3 ปีที่แล้ว

    The only time my alarm bells start ringing is when I find people got rick rolled in the comments before I finish the video.

  • @xaxaxa764
    @xaxaxa764 3 ปีที่แล้ว

    we got ourshellves

  • @0xcyberzombiexdev448
    @0xcyberzombiexdev448 3 ปีที่แล้ว

    Where you edit your's video and how did you do your animations.

  • @alejandroalzatesanchez
    @alejandroalzatesanchez 3 ปีที่แล้ว

    Get DamnPWNed

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

    Is there permission control on setting PATH?

  • @zacwesleybrown
    @zacwesleybrown 3 ปีที่แล้ว

    For level 2 couldnt you also enter -i as then zsh would spawn a interactive shell

  • @classsix6491
    @classsix6491 ปีที่แล้ว

    I actualy got them all first try(i knew how the system worked from windows)

  • @0x13v
    @0x13v 3 ปีที่แล้ว

    hello, can you explain web object injection attack ?

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

    for #2, I would have run `sh` so that I can access a shell as root and run my cat command in there

  • @ngocphathung4463
    @ngocphathung4463 3 ปีที่แล้ว

    I think you should increase the volume of the upcoming videos, because it's still difficult to listen to you even though I've already maxed out the volume of my phone.

  • @shlomiruder4722
    @shlomiruder4722 3 ปีที่แล้ว

    what about short symbolling link?

  • @Duconi
    @Duconi 3 ปีที่แล้ว +2

    Thanks for the detailed explanation but I didn't get, how the executed commands get root access in the first place. You are starting for example level1 as a normal user. As the program is run as user it should not have access to that file. But why does it has access? If programs have access in general you could execute cat directly on the file and it would have access. But that's not the case, right? So is it because of the chmod u+s? So why don't you do chmod u+s on cat and directly read the file with cat instead of misusing another program? It's because you need root rights to set that flag right? But if you have root rights, to set that flag, why don't you use the same root rights to cat on the file? Actually the programs you wrote would be save if you didn't have put chmod u+s on them, right? So not the software is insecure the flag is. Shouldn't you tell people not to use chmod u+s then?

  • @nfsmwkarthik18
    @nfsmwkarthik18 3 ปีที่แล้ว

    Did I just....?

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

    In level 2, why does typing "zsh" for my 3 characters not open me a shell where I can type longer commands?
    If I try "zsh -c zsh" in my terminal it does what I expect it to do. Is the difference due to the way the "system" function works, or is it due to the way ncat works?

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

    My zsh doesn't let me change directories with that shorthand...

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

    PWN how do you make your thumbnails

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

      I draw in Adobe animate

  • @codebeta_cr
    @codebeta_cr 3 ปีที่แล้ว +2

    Anyone know what font the terminal is using?

  • @ananay22
    @ananay22 3 ปีที่แล้ว

    Why don't you run zsh as a command inside the zsh -c ? That'd open another zsh shell for you right?

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

    So anything running on elevated permissions mustn't use the PATH variable...

  • @ibrasome4492
    @ibrasome4492 3 ปีที่แล้ว

    I want a rice which makes the terminal look like that.

  • @harshad3767
    @harshad3767 3 ปีที่แล้ว

    Can someone tell me what type of animation he uses

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

    Did I miss something or why exactly is the process of level 2 run as root?

    • @Gramini
      @Gramini 3 ปีที่แล้ว

      Simulated human mistake maybe.

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

    One question, how in the world did you get a shell on your *local wifi????*

  • @enadalotaibi8181
    @enadalotaibi8181 3 ปีที่แล้ว +2

    Wait ! THAT'S ILLEGAL!! We do not use i we use AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

  • @abdelmajidalahyane3492
    @abdelmajidalahyane3492 3 ปีที่แล้ว

    Can u make a theme for Ubuntu with your color scheme pls ?