WRITE BASH SCRIPTS for CTF Solutions (PicoCTF 08 'file-run1')

  Рет қаралды 51,506

John Hammond

John Hammond

Күн бұрын

Пікірлер: 83
@_JohnHammond
@_JohnHammond 2 жыл бұрын
Check out Snyk's Capture the Flag 101 Workshop! snyk.co/ctf101 (pssst, click the link. hey you. yeah you. click the link) (click it) (click the link) CLICK THE LINK
@_AN203
@_AN203 2 жыл бұрын
**Subliminal message** :/ Me : meh
@StreamNexus
@StreamNexus 2 жыл бұрын
Good for you by prefacing your experience and being honest. I’ve seen your videos and honestly I grumbled at some of the “easy” things you were talking about but that’s me being pretentious…keep it up!
@StreamNexus
@StreamNexus 2 жыл бұрын
You use push/pop d for when you are traversing frequently to multiple various, typical distant dirs, to keep a stack of paths. Usually useful for shell scripting in scenarios to shorthand running commands without having to rewrite cd /a/long/ass/path for working directories
@willbill5684
@willbill5684 Жыл бұрын
Sir how about start python series or JS series for writing own scripts for CTF it's gonna be real one heck of series and i can't wait for this one to start. Thanks.
@ЯнДьяконов-е9м
@ЯнДьяконов-е9м 4 ай бұрын
It's a workshop, but it's free. Sounds strange.
@0xbitbybit
@0xbitbybit 2 жыл бұрын
Looks like we need you to do more crappy "challenges", loved the bash scripting side-quest! Super interesting and useful!
@SuperSohaizai
@SuperSohaizai 2 жыл бұрын
Just when I am planning to pick up bash scripting again, perfect timing. Thanks John!
@CorporateMonk
@CorporateMonk 2 жыл бұрын
Fantastic demo, John! I've been looking for a practical demo of Bash scripting applied to CTF for awhile! Great job!
@micleh
@micleh 2 жыл бұрын
This is your strong suit and shows your excellence as a KZbinr and educator: A challenge that seemed to be a trifle turned out to be a worth-while lesson.
@darkivy7207
@darkivy7207 2 жыл бұрын
I had a good laugh when you cracked that puzzle. Thanks for uploading it.
@tobisdevelopercorner1190
@tobisdevelopercorner1190 2 жыл бұрын
John, thank you for pointing out Snyk's workshop! Much appreciated!
@seclilc
@seclilc 2 жыл бұрын
Love how you made an entire video on this simple challenge and i learned a little something along the way!
@Shad33
@Shad33 2 жыл бұрын
The fumbling is why I love your channel. If the John Hammond fumbles then I shouldn't feel bad when I do lol
@m4rt_
@m4rt_ 2 жыл бұрын
it shows that he is human humans are not perfect
@evenblackercrow4476
@evenblackercrow4476 2 жыл бұрын
Thank you. Helps me to learn linux, which makes everything I learn a CTF exercise.
@zaviermiller8980
@zaviermiller8980 2 жыл бұрын
genius concept, getting to learn unix and ctf at the same time very nice
@marco201ful
@marco201ful 2 жыл бұрын
Your eyes seem tired but your voice show drive and motivation toward your content. Awesome work man. Hopefully I'll have the opportunity to meet you one day. Vegas local here!!
@NoONE-bk7ud
@NoONE-bk7ud 2 жыл бұрын
it's all about learning John
@cruzalex9662
@cruzalex9662 2 жыл бұрын
Have really learnt alot from you Chief....am grateful
@mjtonyfire
@mjtonyfire 2 жыл бұрын
Super excellent John, I've been thinking about the same problem lol
@berthold9582
@berthold9582 2 жыл бұрын
J' ai besoin d'un prof comme toi John
@duscraftphoto
@duscraftphoto 2 жыл бұрын
I love BASH and I love your content. This was a great display of how you can use BASH scripts to save so much time!
@jeremirynkiewicz4913
@jeremirynkiewicz4913 2 жыл бұрын
Very cool! Didn't know you could do cat file
@CA-FE-C0-FF-EE-00
@CA-FE-C0-FF-EE-00 2 жыл бұрын
Thanks... Found the video where you explained the scripts :) thank you so much for you videos, they are really motivating me and hyping me for the htb CTF on Saturday :)
@greyether777
@greyether777 2 жыл бұрын
Another informative vid. Always learning from you. Thanks so much for taking the time to make these John.
@mossdem
@mossdem 2 жыл бұрын
Ah another video I never knew I needed lol! Discovered I could use bash for a lot more than I knew. Learning a lot from your channel as always
@azizutkuozdemir
@azizutkuozdemir 2 жыл бұрын
When u use bash, u have my hearth 💓
@devonburelle400
@devonburelle400 2 жыл бұрын
Great video! I'd love to see more bash scripting in the scope of cyber security!
@nuridincersaygili
@nuridincersaygili 2 жыл бұрын
You create your own challenge! So cook!
@TheH2OWeb
@TheH2OWeb 2 жыл бұрын
We love you too man !!!!
@notme9801
@notme9801 2 жыл бұрын
Awesome! I think I've found my new hobby
@decoder6878
@decoder6878 2 жыл бұрын
Wonderful as always
@andrecosta4979
@andrecosta4979 2 жыл бұрын
eheh you are awasome johnnyyy. "embarrassed to upload this" eheheh Keep the good work. I am big fan :)
@m4rt_
@m4rt_ 2 жыл бұрын
7:35 If you move a directory while inside it, you still kinda have it, but when you go out of it, it is gone. In Linux you can continue using something you deleted until you close it, and then it is gone
@VA3KAMA3
@VA3KAMA3 2 жыл бұрын
is it not dangerous in certain environments?
@TechieGuy82
@TechieGuy82 2 жыл бұрын
Really super cool Thank you thumbs up
@pranav9068
@pranav9068 2 жыл бұрын
Ik i am a beginner but using xxd to see the flag or run a binary to get the flag is a bit absurd The video helped me learn tho
@mattkelly2938
@mattkelly2938 2 жыл бұрын
"I don't like saying that out loud." fucking dying!!!!
@StreamNexus
@StreamNexus 2 жыл бұрын
Me yelling…”cut”…”just use cut” “CUT” …I get way to into it
@lancemarchetti8673
@lancemarchetti8673 2 жыл бұрын
Genius eyedear 😎
@REDSPYTECH
@REDSPYTECH 2 жыл бұрын
I love Bash script 😍
@ancestrall794
@ancestrall794 2 жыл бұрын
We love you too
@cheikhdione2895
@cheikhdione2895 2 жыл бұрын
Keep going 👏🏾
@tonyitalia7798
@tonyitalia7798 2 жыл бұрын
I try: file-run1 strings run | grep picoCTF file-run2 (you help me) strings run |grep -oE "picoCTF{.*}"
@michaelhawthorn8254
@michaelhawthorn8254 Жыл бұрын
Hi John I am a complete noob to coding, is zsh another type of bash shell or language.
@stumbling
@stumbling 2 жыл бұрын
0:53 These poor people have been hacked! Look at the code writing itself on their screens! :O
@steemycoinz
@steemycoinz 9 ай бұрын
good stuff
@EricSchmeling
@EricSchmeling 2 жыл бұрын
Why you no chmod 755? 😊
@josephseed3393
@josephseed3393 2 жыл бұрын
whats that song at the end of your video?
@c1chef206
@c1chef206 2 жыл бұрын
I'll be playing
@m4rt_
@m4rt_ 2 жыл бұрын
13:55 I wrote the exact same as you, but I couldn't get it to work also the history thing just ends up returning the command used to run the script
@BristlyBright
@BristlyBright 2 жыл бұрын
I encountered the same thing. history command returns itself as the last line. I found this to be the solution: history | tail -2 | head -1
@m4rt_
@m4rt_ 2 жыл бұрын
@@BristlyBright thanks, I'll try it later.
@papsnap9724
@papsnap9724 2 жыл бұрын
@@BristlyBright i use ubuntu and it solve the problem
@MiguelDevOps
@MiguelDevOps 2 жыл бұрын
W
@EricSchmeling
@EricSchmeling 2 жыл бұрын
👍👍
@danielbigombe3024
@danielbigombe3024 2 жыл бұрын
The first flag was a big joke, I agree 😂
@apozlevich
@apozlevich 2 жыл бұрын
So many comments and no mention of $PWD and $OLDPWD...
@ashleydelgado-r7e
@ashleydelgado-r7e Жыл бұрын
"i dont like saying that out loud" lmaoooo
@shyhotboy1352
@shyhotboy1352 2 жыл бұрын
5:39 What did he say???
@m4rt_
@m4rt_ 2 жыл бұрын
can i pushd
@ChrisLeftBlank
@ChrisLeftBlank 9 ай бұрын
Can i make a suggestion @yt-algorithms. When you refer someone to a video its polite to leave a link i think. Especially when its relevant. So next time you reference an already covered video - leave a link. Pl0x
@errollgnargnar9534
@errollgnargnar9534 2 жыл бұрын
🧙‍♂️
@masudrahman253
@masudrahman253 2 жыл бұрын
Continue
@ghm2188
@ghm2188 2 жыл бұрын
oHHHHHHHHHHHHHHh looooolll
@hassenfadl990
@hassenfadl990 2 жыл бұрын
3:50 😂😂😂
@bhagyalakshmi1053
@bhagyalakshmi1053 Жыл бұрын
C,c++ details
@vymvn6
@vymvn6 2 жыл бұрын
To be even more lazy, make a cron tab that checks the picoCTF sub directories for a “flag.txt” and it exists then it marks it done
@_AN203
@_AN203 2 жыл бұрын
Gosh no 😂😂😂😂😂😂😂 Really 😂😂😂
@cyclops74air11
@cyclops74air11 2 жыл бұрын
You can love me all you want
@tvathome562
@tvathome562 2 жыл бұрын
Lol pushd XD
@StreamNexus
@StreamNexus 2 жыл бұрын
Or read some Man-Pages and source code…oh yeah and stay off my lawn
@bech2342
@bech2342 2 жыл бұрын
don't be mad at me, but this video is a bit nonsense. looks like it was just to fill the video. i'm a bit disappointed.
@m4rt_
@m4rt_ 2 жыл бұрын
it was literally the point, he says it at the end
@bech2342
@bech2342 2 жыл бұрын
@@m4rt_ doesn't make it better
@angz2717
@angz2717 2 жыл бұрын
However it still has more sense then other type of 'content creator' videos
@m4rt_
@m4rt_ 2 жыл бұрын
@@bech2342 He is teaching us stuff, that's why you are watching this, right? to learn stuff. if not just leave the video after he completes the ctf challenge.
@bech2342
@bech2342 2 жыл бұрын
@@angz2717 I would never deny
@lfcbpro
@lfcbpro 2 жыл бұрын
pushd - slight snigger :P
@JNET_Reloaded
@JNET_Reloaded 2 жыл бұрын
how av you not made a function or alias for chmod command yet? thats like the 1st thing i do on linux! lol i litrally use x instead of sudo chmod +x *.sh
@m4rt_
@m4rt_ 2 жыл бұрын
the ones I always do is alias ll="ls --color=auto -lha" alias rm="rm -i" alias cp="cp -i" alias mv="mv -i"
Punctuation on the Command-Line! (PicoCTF 2022 #09 file-run2)
3:59
GHIDRA for Reverse Engineering (PicoCTF 2022 #42 'bbbloat')
17:44
John Hammond
Рет қаралды 220 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 132 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 109 МЛН
Intro to Debugging w/ GDB (PicoCTF 2022 #11 'gdb-test-drive')
11:03
PicoCTF 2022 #01 - WELCOME & Basic File Exploit
27:23
John Hammond
Рет қаралды 167 М.
Hacking Bank from Hackthebox |  HTB Bank Walkthrough | Ethical Hacking
28:17
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 68 М.
Let's Write A Script! | How To Create BASH Scripts In Linux
49:45
Joe Collins (EzeeLinux)
Рет қаралды 25 М.
OSCP Practice Lab: Active Directory Attack Path #1
1:57:02
Derron C
Рет қаралды 65 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 385 М.
TryHackMe! SweetRice Exploit & Stabilizing Shells
20:25
John Hammond
Рет қаралды 55 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН