Image Strings | Ryan's CTF [07] "Stenography"

John Hammond · Intermediate ·🔐 Cybersecurity ·8y ago

Key Takeaways

Solves Ryan's CTF stenography challenge using image strings and base64 decoding

Full Transcript

this challenge from Ryan Nicholson CTF is called stenography I'm assuming this is supposed to be steganography whatever that's okay we'll let it pass it says find the hidden flag in this attached image file so we can go ahead and download this I will W get it into our location in the command line did not copy fail I was probably just hitting the N button whatever so we can do G this hacker file and view it if we particularly wanted to it is just some dude staring at a computer screen so maybe there's some interesting stuff hidden in different colors in this so we can use some of our own regular steganography techniques particularly take a look at this file z stag we can pass to it however it is a JPEG file which Z SEC does not have support for so what I like to do is actually run stag solve on it which is a jar file you can find online if you particularly want to use this tool it's pretty awesome in a really good go to like low-hanging fruit technique for actually viewing anything that may be steganography you can go through it and actually look at different planes or however specific bit in a specific color like green pane or blue plane the zero bit like mode ever maybe if you get a loo significant bit or actually if you it an X or inverted colors and any Alpha characters etc so that's a good tool for some challenges however it's not doing the doing for us in this one so what I actually tried at some point was just running strings on this file and I noted at the very very bottom there is a base64 line you can tell us base 64 because of the random capitalizations and numbers also the two equal signs give it away and agree just matter because equal signs at the very end tell us it's basics t4 for padding we can pass this to base64 tack D and we simply get the flag just like that there are a couple extra spaces in this so I will Rev this to actually cut out the delimiter and get the first one and then rev it back and then we have our flag so we can take this code or this command it take note of that as our get flag script and include our shebang line and we have a documented solution great so now we can mark that challenge as complete and we can submit that for points and move on so good thing to note when you're doing second ography I don't really consider this diagraph II because maybe this is forensics there's a string embedded or hidden in the file it's not in the actual color or pixels or images in the picture itself but still cool challenge good to submit that and learn about it so hey I want to give the special shout-out to my supporters people who loved me on patreon thank you I love you I was gonna start singing Barney for a second there that was weird hey $1 a month on patreon will give you a special shout-out just like this at the end of every video $5 a month on patreon will give you early access everything they're released on YouTube and I'll hopefully get more incentive soon if you did like this video please do press that like button maybe comment maybe subscribe and if you're willing to come check us out on discord hang out with us in there and support me on patreon that'd be super cool links in description see ya

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

📰
Hacker Holidays Day 1: The Concierge Knows Too Much — TryHackMe Walkthrough & Prompt Injection
Learn to exploit vulnerabilities in a virtual hotel scenario using TryHackMe and prompt injection techniques
Medium · Programming
📰
Why The Biggest AI-Driven Cyber Threat Is Still Human Nature
Human nature remains the biggest AI-driven cyber threat due to its unchanged nature despite technological advancements
Forbes Innovation
📰
Offensive audit, engineering edition — the 6-piece fix pattern in detail
Learn the 6-piece fix pattern to improve offensive audit engineering and enhance security measures
Dev.to · Dexterlung
📰
A Month in the Wild: Analyzing 53,232 Attacks on My Honeypot
Learn from a real-world honeypot experiment with 53,232 attacks analyzed, improving your cybersecurity skills
Medium · DevOps
Up next
How to: 4 password tips for online success
SiteGround.com
Watch →