Homemade CTF Challenge: 03 "Web Hunt"

John Hammond · Intermediate ·🔐 Cybersecurity ·9y ago

Key Takeaways

Solves the Homemade CTF Challenge 03 'Web Hunt' using various cybersecurity tools and techniques

Full Transcript

Hello everyone. Welcome back. Uh again, my name is John Hammond and I'm in this video I'm showcasing um some more of those challenges that I put together for a local practice exercise CTF or capture the flag competition uh at my school. And so the next challenge was on web hunt. And the prompt here is it's a website scavenger hunt. And the hint that you can find if you hover over is like gre can be an extremely powerful weapon if you know how to wield the sword. So it is a zip file that you'd end up downloading. And once you actually go ahead and use this, you'll notice that it is a full and complete website with an index of HTML and CSS and images and JS and stuff like that. So the ploy is that they would go ahead and and extract all these files and begin to look at the website with a little index.html. I'll drag this down so you can see it. And it is quite simply a website where hopefully it would fool them to like look around and and and and and do things. What you might want to look at the HTML source or some of the CSS. It's literally the ploy is that it's a website scavenger hunt. But since there are a bunch of files and we want to be able to search through them for a flag. Well, at this point we should know the flag format. So what we can do is we can just search for it, right? So that is in the uh web hunts. So that is four in my case. So in the web page or in the website, what we'd end up doing is grepping in our case for anything that starts with USCGA like looking for the flag identifier, the flag format. But we wouldn't want to do it on like a specific file because we know it's probably not going to be in any of those. But we'll do it recursively. - r and we'll look at in this folder onward. So we find it eventually but that uh that d-r folder or that that uh that argument sorry what that does it reads all files under each directory recursively. So that's how I intended them to solve that challenge rather than having to look for it by hand because I actually stored the flagged in the JavaScript like jQuery file. So no one would look through that on their own like individually. The deploy and the hope was that they would use GP to to find it. So GP can of course find the line but and you can you can just go look for it because it'll be highlighted. But a uh a good ploy I think is to now use more things inside of the I think it's RP or O. I want to be able to get just the All right, there it is. Cool. ro o and the regular expressions you find simply the flag itself. So there we go. Grev can find anything if you know what you're looking for. And that is how I ended up putting that together. So the way that I built that was real easy. All I ended up doing was I was taking that nothinginthebox.com and I wget mirrored that to create that nothinginthebox.com. I think I can go ahead and start to show that and then it will no check certificates. Fine. If I need that argument to go ahead and pull it, that's fine. And then it will start to like mirror and scrape the web page. So that's why it was able to create that folder and all the other stuff. So I'll get rid of that. But once it was downloaded, I'd literally just go into the JavaScript file, see what's in there, and I'd go ahead and insert the flag in in the jQuery file. I'd just edit it in like Sublime Text, and just literally plop it in there wherever it's in the middle of a comment or or after a command. So that way it doesn't interrupt the JavaScript code itself, but it's still hidden in in in the web page. So that was it. just using simply GP to find a file, but knowing to use it on all of the files in the web page. So, that was um Did I copy the flag? I want to make sure I copy the flag. Okay, cool. Yep. We'll go ahead and submit it and get our 100 points and we're just moving right along with some of the symbol challenges that I put together for our local practice CTF exercise and competition. So, I'll see you in the next video.

Original Description

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
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from John Hammond · John Hammond · 35 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
33 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
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 Reads

📰
SQL Injection in AI-Generated Python: How It Ships
Learn how SQL injection vulnerabilities can occur in AI-generated Python code and why it matters for secure coding practices
Dev.to · CopperSunDev
📰
Casi le Enseñamos a los Bots de Spam Cómo Vencernos
Aprende cómo un bug en un motor de detección de spam puede enseñar lecciones valiosas sobre la seguridad y el filtrado de registros
Dev.to AI
📰
How to Verify Telegram Bots Before Integration
Learn to verify Telegram bots before integration to ensure authenticity and security
Dev.to AI
📰
GHSA-42H9-826W-CGV3: GHSA-42H9-826W-CGV3: Denial of Service via Uncontrolled Recursion in Axios formDataToJSON
Learn to identify and mitigate Denial of Service vulnerabilities in Axios via uncontrolled recursion in formDataToJSON
Dev.to · CVE Reports
Up next
How To Protect Facebook Account From HACKERS in 2024 [Two-Factor Authentication]
Christian Omeje - UDH
Watch →