Homemade CTF Challenge: 01 "Orchestra"

John Hammond · Intermediate ·🔐 Cybersecurity ·9y ago
If you would like to support me, please like, comment & subscribe, and check me out on Patreon: https://patreon.com/johnhammond010 E-mail: johnhammond010@gmail.com PayPal: http://paypal.me/johnhammond010 GitHub: https://github.com/JohnHammond Site: http://www.johnhammond.org Twitter: https://twitter.com/_johnhammond

What You'll Learn

Builds a CTF challenge using homemade and Google CTF challenges

Full Transcript

okay so hello everyone um this is a video and hopefully going to turn into a couple more videos um explaining and depicting and showing off some of the things that I put together for a local practice like Capture the Flag uh competition for my school the United States Coast Guard Academy's uh cyber team we're trying to build out the Cyber team here and I don't think there's really anything too sensitive about explaining that because it's just something that we want to do so I've been trying to put together practice exercises and stuff like that so this whole CTF platform is something that I built in flask uh with python or in Python with flask however you particularly want to say that but this is pretty much it it works on right now it's just running on a local machine uh like where we are and it's uses SSL so any packets you send back and forth are encrypted so people can't like sniff to get flags or stuff like that and you would typically register for an account and it's stored in like the sqlite database that I typically work with with flask with the shot 256 hash so just for demonstration purposes I'll create an account um my name is John Hammond and I'll do a super simple and stupid password just so I can register and log in and and start to play the competition so these are all challenges that I cooked up and wrote myself uh with the some help from a a couple of the encryption and cryptography challenges I asked for a friend of mine on the team to help out with but a good majority I think about nine of these are mine however many there are I don't honestly know but um so I wanted to show off how I created them and how we can solve them and stuff like that or how they were put together so um typically with a capture the flag there is like a flag format and I wanted to note that and kind of show the individual or the user who is very new to ctfs and is very new to cyber type stuff um you how I was going to display hints throughout my capture flag platform in this competition so I use uscga never be ashamed of hints and you could enter a completely wrong flag and it would tell you oh you're wrong with I think uh lib notify in JavaScript and I think I saw the flag was if you hover over some of the text um never be ashamed of hints so I did this from a design design perspective to um let them know that okay some of these things are going to be things I've never seen before but if you need a little more guidance on the challenge you can hover over it and hopefully occasionally there will be a uh a hint so okay Orchestra is one that super simple um it's actually just a big file that I ended up creating that is full of random btes I'll see if I can show in folder and I actually I'll actually just pull this up we'll start to look at this stuff um cyber repo and this was in the challenges and Orchestra was the name of it so it itself the file that I ended up creating was just a massive file of disgusting bites and stuff that is completely useless so the challenge itself was to just very simply run strings on it the hint was how can we avoid all of data that we can't read so you would typically just run strings on that f F again extremely easy and you could like Loop through it look for it scroll to find it and if you were smart you could know do grep okay I want to find uscga because I know that that is part of the flag format so the flag would be there is no Orchestra without the strings so I would get points for that but the way that I created that challenge was super simple um it's actually I'll fire up Sublime Text and I'll try and close everything that I already have open so you don't see it my garbage and I'll open up that stuff okay so the get flag scrip was something that I just did so I know a solution but I ended up creating this with just a simple python thing that would really just Loop through a bunch of bytes again I decided okay I want the file size of the of the program to be just a thousand or whatever and then I give it a bunch of possible numbers being the asy range from 0 to 255 and then I shuffled them randomly and I would just add them to this mess of things that I was like adding to to the junk and then if we were just randomly in the middle I would put in the flag and then we take that array join it so it's a string and I'd read that out to a to a file in which case it was Orchestra um so that's pretty much how I did it super simple but again that's how I cook that challenge of having a bunch of random strings and being like you having to have to use the strings command to be able to actually get the flag so simple demonstration hopefully in the next couple tutorials um I'll go into more explanations of how I saw how I created and how I uh started some of the other challenges and the solutions and stuff for that um please let me know if this is something you're interested in or I should do more of or I should start to like out how I created all these things but I don't think they're too difficult and I think I could just kind of explain them to you and show off some demonstration stuff um but yeah thanks for watching guys I'll see you in the next video
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from John Hammond · John Hammond · 33 of 60

1 Code Commentaries? PHP to JavaScript in Bash and PHP!
Code Commentaries? PHP to JavaScript in Bash and PHP!
John Hammond
2 Tutorials? MySQL connection with PHP and Bash!
Tutorials? MySQL connection with PHP and Bash!
John Hammond
3 Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
John Hammond
4 JavaScript Splits The URL!
JavaScript Splits The URL!
John Hammond
5 HTML Tables in Python!
HTML Tables in Python!
John Hammond
6 HTML, Net Shares, GML!
HTML, Net Shares, GML!
John Hammond
7 Python 08 Programming Style and Comments
Python 08 Programming Style and Comments
John Hammond
8 Python 26 Object Oriented Programming
Python 26 Object Oriented Programming
John Hammond
9 75 Python Tutorials, Out Now!
75 Python Tutorials, Out Now!
John Hammond
10 Batch 14 Mathematical Expressions
Batch 14 Mathematical Expressions
John Hammond
11 Batch 85 Array Append
Batch 85 Array Append
John Hammond
12 Batch 86 Array Count
Batch 86 Array Count
John Hammond
13 Batch 87 Array Index
Batch 87 Array Index
John Hammond
14 Batch 88 Array Insert
Batch 88 Array Insert
John Hammond
15 Batch 89 Array Remove
Batch 89 Array Remove
John Hammond
16 Batch 90 Array Reverse
Batch 90 Array Reverse
John Hammond
17 Python [colorama] 00 Installing on Linux
Python [colorama] 00 Installing on Linux
John Hammond
18 Python [colorama] 09 Cursor Position
Python [colorama] 09 Cursor Position
John Hammond
19 Python [hashlib] 02 Algorithms
Python [hashlib] 02 Algorithms
John Hammond
20 Python 00 Installing IDLE on Linux
Python 00 Installing IDLE on Linux
John Hammond
21 Python [pygame] 11 Rectangular Collision Detection
Python [pygame] 11 Rectangular Collision Detection
John Hammond
22 Python [pygame] 12 Platforming Rectangular Collision Resolution
Python [pygame] 12 Platforming Rectangular Collision Resolution
John Hammond
23 Python [XML-RPC] 01 Research
Python [XML-RPC] 01 Research
John Hammond
24 Python [pyenchant] 03 Personal Word Lists
Python [pyenchant] 03 Personal Word Lists
John Hammond
25 FancyURLopener Authentication and User-Agent [urllib] 03
FancyURLopener Authentication and User-Agent [urllib] 03
John Hammond
26 Python 04: PEP8 Coding
Python 04: PEP8 Coding
John Hammond
27 Python Challenge! 17 COOKIES
Python Challenge! 17 COOKIES
John Hammond
28 Google CTF 2016: Ernst Echidna
Google CTF 2016: Ernst Echidna
John Hammond
29 Google CTF 2016: Spotted Quoll
Google CTF 2016: Spotted Quoll
John Hammond
30 Google CTF 2016: Can you Repo It?
Google CTF 2016: Can you Repo It?
John Hammond
31 Google CTF 2016: No Big Deal
Google CTF 2016: No Big Deal
John Hammond
32 Google CTF 2016: In Recorded Conversation
Google CTF 2016: In Recorded Conversation
John Hammond
Homemade CTF Challenge: 01 "Orchestra"
Homemade CTF Challenge: 01 "Orchestra"
John Hammond
34 Homemade CTF Challenge: 02 "Bae's Base"
Homemade CTF Challenge: 02 "Bae's Base"
John Hammond
35 Homemade CTF Challenge: 03 "Web Hunt"
Homemade CTF Challenge: 03 "Web Hunt"
John Hammond
36 Homemade CTF Challenge: 04 "UPX"
Homemade CTF Challenge: 04 "UPX"
John Hammond
37 Homemade CTF Challenge: 05 "The Assumption Song"
Homemade CTF Challenge: 05 "The Assumption Song"
John Hammond
38 Homemade CTF Challenge: 06 "A Brisk Stroll"
Homemade CTF Challenge: 06 "A Brisk Stroll"
John Hammond
39 Homemade CTF Challenge: 06 "I lost my password!"
Homemade CTF Challenge: 06 "I lost my password!"
John Hammond
40 web25 :: Mr. Robot : EKOPARTY CTF 2016
web25 :: Mr. Robot : EKOPARTY CTF 2016
John Hammond
41 web50 : RFC 7230 :: EKOPARTY CTF 2016
web50 : RFC 7230 :: EKOPARTY CTF 2016
John Hammond
42 misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
John Hammond
43 Hack The Vote 2016 CTF: Sander's Fan Club [web100]
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
John Hammond
44 Hack The Vote 2016 CTF Warpspeed [forensics150]
Hack The Vote 2016 CTF Warpspeed [forensics150]
John Hammond
45 Juniors CTF 2016 :: Black Suprematic Square
Juniors CTF 2016 :: Black Suprematic Square
John Hammond
46 Juniors CTF 2016 :: Six Strange Tales
Juniors CTF 2016 :: Six Strange Tales
John Hammond
47 Juniors CTF 2016 :: Lost Code
Juniors CTF 2016 :: Lost Code
John Hammond
48 Juniors CTF 2016 :: Here Goes!
Juniors CTF 2016 :: Here Goes!
John Hammond
49 Juniors CTF 2016 :: Southern Cross
Juniors CTF 2016 :: Southern Cross
John Hammond
50 Juniors CTF 2016 :: Clone Attack
Juniors CTF 2016 :: Clone Attack
John Hammond
51 Juniors CTF 2016 :: Dirty Repo
Juniors CTF 2016 :: Dirty Repo
John Hammond
52 Juniors CTF 2016 :: Hackers Blog
Juniors CTF 2016 :: Hackers Blog
John Hammond
53 Juniors CTF 2016 :: Voting!!!
Juniors CTF 2016 :: Voting!!!
John Hammond
54 Juniors CTF 2016 :: The Good, The Bad and The Junkman
Juniors CTF 2016 :: The Good, The Bad and The Junkman
John Hammond
55 Juniors CTF 2016 :: Stop Thief!
Juniors CTF 2016 :: Stop Thief!
John Hammond
56 Juniors CTF 2016 :: ROFL
Juniors CTF 2016 :: ROFL
John Hammond
57 Juniors CTF 2016 :: Restriced Area
Juniors CTF 2016 :: Restriced Area
John Hammond
58 Juniors CTF 2016 :: Oh SSH!
Juniors CTF 2016 :: Oh SSH!
John Hammond
59 HackCon CTF 2017 TRIVIA and BONUS Challenges
HackCon CTF 2017 TRIVIA and BONUS Challenges
John Hammond
60 HackCon CTF 2017 "Bacche" Challenges
HackCon CTF 2017 "Bacche" Challenges
John Hammond

Related AI Lessons

Up next
You Think Your Card Declined by Mistake? It Might Be a 2026 Scam
Tolulope Michael
Watch →