Тёмный

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

John Hammond
Подписаться 1,8 млн
Просмотров 50 тыс.
50% 1

Check out Snyk's Capture the Flag 101 Workshop! jh.live/snykct...
Help the channel grow with a Like, Comment, & Subscribe!
❤️ Support ➡ j-h.io/patreon ↔ j-h.io/paypal ↔ j-h.io/buymeac...
Check out the affiliates below for more free or discounted learning!
🖥️ Zero-Point Security ➡ Certified Red Team Operator j-h.io/crto
💻Zero-Point Security ➡ C2 Development with C# j-h.io/c2dev
👨🏻‍💻7aSecurity ➡ Hacking Courses & Pentesting j-h.io/7asecurity
📗Humble Bundle ➡ j-h.io/humbleb...
🐶Snyk ➡ j-h.io/snyk
🌎Follow me! ➡ j-h.io/discord ↔ j-h.io/twitter ↔ j-h.io/linkedin ↔ j-h.io/instagram ↔ j-h.io/tiktok
📧Contact me! (I may be very slow to respond or completely unable to)
🤝Sponsorship Inquiries ➡ j-h.io/sponsor...
🚩 CTF Hosting Requests ➡ j-h.io/ctf
🎤 Speaking Requests ➡ j-h.io/speaking
💥 Malware Submission ➡ j-h.io/malware
❓ Everything Else ➡ j-h.io/etc

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 11 месяцев назад
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м 2 месяца назад
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!
@CorporateMonk
@CorporateMonk 2 года назад
Fantastic demo, John! I've been looking for a practical demo of Bash scripting applied to CTF for awhile! Great job!
@SuperSohaizai
@SuperSohaizai 2 года назад
Just when I am planning to pick up bash scripting again, perfect timing. Thanks John!
@darkivy7207
@darkivy7207 2 года назад
I had a good laugh when you cracked that puzzle. Thanks for uploading it.
@micleh
@micleh Год назад
This is your strong suit and shows your excellence as a RU-vidr and educator: A challenge that seemed to be a trifle turned out to be a worth-while lesson.
@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
@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!!
@evenblackercrow4476
@evenblackercrow4476 2 года назад
Thank you. Helps me to learn linux, which makes everything I learn a CTF exercise.
@mjtonyfire
@mjtonyfire 2 года назад
Super excellent John, I've been thinking about the same problem lol
@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!
@greyether777
@greyether777 2 года назад
Another informative vid. Always learning from you. Thanks so much for taking the time to make these John.
@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 :)
@cruzalex9662
@cruzalex9662 2 года назад
Have really learnt alot from you Chief....am grateful
@zaviermiller8980
@zaviermiller8980 2 года назад
genius concept, getting to learn unix and ctf at the same time very nice
@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
@andrecosta4979
@andrecosta4979 2 года назад
eheh you are awasome johnnyyy. "embarrassed to upload this" eheheh Keep the good work. I am big fan :)
@berthold9582
@berthold9582 2 года назад
J' ai besoin d'un prof comme toi John
@mattkelly2938
@mattkelly2938 2 года назад
"I don't like saying that out loud." fucking dying!!!!
@NoONE-bk7ud
@NoONE-bk7ud Год назад
it's all about learning John
@jeremirynkiewicz4913
@jeremirynkiewicz4913 2 года назад
Very cool! Didn't know you could do cat file
@devonburelle400
@devonburelle400 2 года назад
Great video! I'd love to see more bash scripting in the scope of cyber security!
@azizutkuozdemir
@azizutkuozdemir 2 года назад
When u use bash, u have my hearth 💓
@notme9801
@notme9801 2 года назад
Awesome! I think I've found my new hobby
@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?
@lancemarchetti8673
@lancemarchetti8673 Год назад
Genius eyedear 😎
@nuridincersaygili
@nuridincersaygili 2 года назад
You create your own challenge! So cook!
@decoder6878
@decoder6878 2 года назад
Wonderful as always
@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
@TheH2OWeb
@TheH2OWeb 2 года назад
We love you too man !!!!
@tonyitalia7798
@tonyitalia7798 2 года назад
I try: file-run1 strings run | grep picoCTF file-run2 (you help me) strings run |grep -oE "picoCTF{.*}"
@TechieGuy82
@TechieGuy82 2 года назад
Really super cool Thank you thumbs up
@steemycoinz
@steemycoinz 7 месяцев назад
good stuff
@REDSPYTECH
@REDSPYTECH 2 года назад
I love Bash script 😍
@StreamNexus
@StreamNexus 2 года назад
Me yelling…”cut”…”just use cut” “CUT” …I get way to into it
@cheikhdione2895
@cheikhdione2895 2 года назад
Keep going 👏🏾
@user-gg1mx2jg3t
@user-gg1mx2jg3t Год назад
"i dont like saying that out loud" lmaoooo
@ancestrall794
@ancestrall794 2 года назад
We love you too
@stumbling
@stumbling 2 года назад
0:53 These poor people have been hacked! Look at the code writing itself on their screens! :O
@michaelhawthorn8254
@michaelhawthorn8254 Год назад
Hi John I am a complete noob to coding, is zsh another type of bash shell or language.
@ChrisLeftBlank
@ChrisLeftBlank 7 месяцев назад
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
@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
@apozlevich
@apozlevich 2 года назад
So many comments and no mention of $PWD and $OLDPWD...
@josephseed3393
@josephseed3393 2 года назад
whats that song at the end of your video?
@c1chef206
@c1chef206 2 года назад
I'll be playing
@MiguelDevOps
@MiguelDevOps 2 года назад
W
@EricSchmeling
@EricSchmeling 2 года назад
Why you no chmod 755? 😊
@danielbigombe3024
@danielbigombe3024 2 года назад
The first flag was a big joke, I agree 😂
@masudrahman253
@masudrahman253 2 года назад
Continue
@shyhotboy1352
@shyhotboy1352 2 года назад
5:39 What did he say???
@m4rt_
@m4rt_ 2 года назад
can i pushd
@ghm2188
@ghm2188 2 года назад
oHHHHHHHHHHHHHHh looooolll
@errollgnargnar9534
@errollgnargnar9534 2 года назад
🧙‍♂️
@EricSchmeling
@EricSchmeling 2 года назад
👍👍
@bhagyalakshmi1053
@bhagyalakshmi1053 Год назад
C,c++ details
@hassenfadl990
@hassenfadl990 2 года назад
3:50 😂😂😂
@_AN203
@_AN203 2 года назад
Gosh no 😂😂😂😂😂😂😂 Really 😂😂😂
@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
@tvathome562
@tvathome562 2 года назад
Lol pushd XD
@cyclops74air11
@cyclops74air11 2 года назад
You can love me all you want
@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"
Далее
9월 15일 💙
1:23:23
Просмотров 1,1 млн
ДОМИК ДЛЯ БЕРЕМЕННОЙ БЕЛКИ #cat
00:38
Finding WEIRD Devices on the Public Internet
27:48
Просмотров 283 тыс.
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Do This When You Get Stuck on a CTF
9:23
Просмотров 2,5 тыс.
Hacking Windows TrustedInstaller (GOD MODE)
31:07
Просмотров 624 тыс.
Best Antivirus/EDR vs Unknown Ransomware
11:38
Просмотров 99 тыс.
PicoCTF 2022 #01 - WELCOME & Basic File Exploit
27:23
Просмотров 160 тыс.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Просмотров 180 тыс.