Infinite JavaScript Scrolling | "Moar Horses" TJCTF 2018

John Hammond · Intermediate ·🔐 Cybersecurity ·7y ago

Key Takeaways

Shows infinite JavaScript scrolling for TJCTF 2018

Full Transcript

hey YouTube this is another video right up for the challenge more horses for 40 points in a web category of TJ CTF for recent capture the flag competition so the challenge from here is the horse is back and it gives us a web address and web page that we can check out I actually had better luck looking at this in Firefox and honestly true credit and props goes to giggles Emoto because I think he was the one that originally found the lead on this and figured it out because a lot of people struggled with this challenge because it didn't make a whole lot of sense it said scroll down to find the flag it's the regular infinity horse sling where the page would just keep loading and scrolling and you would just see legs in this ASCII picture of the horse over and over and over again there didn't seem to be a whole new gimmick to it there was nothing in the source code nothing on like any HTTP headers it was just nothing there so what he did and what he pointed me to was that you can actually just literally scroll like programmatically scroll cuz you'll see if you set up a network query you'll see the web page will continually get legs like this HTML page over and over and over again and that one will always have the response of okay more HTML legs and hopes you couldn't get the flag that's dumb so what we had done and what giggles had done is we had set up a okay I gotta stop saying we but he I'm showing case and show showcasing you love and then the support that this was totally your challenge so thank you for your everything you do on the team what he'd done it hit set up in a window interval so that every now and again we could just be running a new function over and over and over again to scroll and scroll by lines and I think just a thousand or whatever is fine crazy amount and then we can set it for as as often as we want to just like over and over again create requests and slowly get more legs so you can see the number of requests is going up the scroll bar is increasing because we are getting more and more so each of these HTML responses are normally in size 707 bytes but what if one of them does contain the flag as the only direction that we're told your is to scroll and to keep scrolling maybe at some point one of these will have a different result so the best way we can determine that is to sort by size and this is going to take a little bit of tie I don't honestly know how long it will take but at the very very top since we're sorting by size one of these will return something other than 707 bytes so we'll pause the recording and I'll get back to you when that happens okay it didn't take much long at all just a few seconds after I said that we did get 704 bytes which we can take a look at go ahead and view the response over here in the preview we do have our flag so that challenge was weird in that there wasn't a whole lot of guidance other than just scrolling and you literally had to kind of go with it just buy it and hold your breath hope that you would eventually get there so we can go ahead and say that if we particularly wanted to we could make a directory for more horses and save that flag just in there but that is the solution two more horses is to literally scroll forever until you get a response that is your flag cool hey I want to give a special shout out and some love to people that support me on patreon you guys are fantastic one dollar a month or more on patreon will give you a special shout-out just like this at the end of every video five dollars or more on patreon will give you early access everything that I release on YouTube before it goes live if you did like this video and you want to see more CTF video write-ups or programming tutorials or other stuff that I do please do like comment and subscribe join our discord server link in the description if you another cool community of CCI players hackers and programmers if you want to jam with me or anyone else when we're playing it cool CTF upcoming that's the awesome and best place to do it in hey I would love to see your support on patreon and I hope to see you in the next video thanks

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 · 0 of 60

← Previous Next →
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
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 Reads

📰
Treasury Sanctions Two Individuals and VPN Firm Enabling Ransomware Attacks on Americans
US Treasury sanctions individuals and a VPN firm for enabling ransomware attacks, learn how to protect against such threats and the role of cybersecurity in preventing them
Dev.to · Codego Group
📰
Inside-Out Learning
Learn how to prepare students for a career in cybersecurity by teaching them to think, build, defend, and adapt
Medium · Cybersecurity
📰
GhostExodus Forces Cybersecurity to Trust a Rule-Breaker
Learn how a former rule-breaker's transformation raises questions about trust in cybersecurity
Dev.to · XOOMAR
📰
​Supply Chain Attacks Are Forcing Threat Detection To Focus On What Code Can Do
Supply chain attacks are shifting threat detection focus to code capabilities, requiring a merge of dev speed and security scrutiny
Forbes Innovation
Up next
Cryptography Explained Visually — Watch AES, RSA, TLS & More Work Step by Step
Zariga Tongy
Watch →