Sudo ltrace | Ryan's CTF [15] Strings wont help you
Skills:
Security Basics80%
Key Takeaways
Uses sudo ltrace to crack a password in a Ryan's CTF challenge
Full Transcript
this challenge from Ryan Nicholson's cap from flag competition is called strings won't help you for 100 points in the extreme category it says determine the password that the program asks for and receive the flag recover the flag so it gives us a show that we can connect to credentials to login with CTF 9 and challenge 9 if we check in our home directory we have a file program ok we still don't have the file command whatever let's run the program and it says cat root md5 hash permission denied that's weird enter the password for the flag please sub nope try again I was originally weirded out by why we're getting a permission denied notion thing here for root md5 if I check out this program it's not a set UID binary so it's very strange but it's owned by root and everyone can run it but I'm not able to open up this file that's in the root home directory so I checked out what I can run with sudo or with root privileges and it says these user may run the following commands no password competitor program ok we see that here and L Trace that was really weird so I figured all right let's sudo L trace and the program and this will show us ok what is it which is actually trying to happen here looks like it tries to read this file md5 hash and it gets this md5 hash cool it enters the password for the flag as we input it so please sub and then it tries to oh it uses some bash code to determine the md5 sum of that get the actual hash and it tries to compare that you can see strcmp with the hash that it read out of md5 hash so all we need is to figure out what this hash is originally what the real plane tax is from that write like that should be our goal here because please sub is not the correct password but whatever yields this hash is the correct password so let's go ahead and try and crack this I'll google it or a crack station whatever we need to do to actually I don't need command-line I just need the actual thing whatever we need to do to crack this hash let's paste it in here run through that stupid CAPTCHA and the hash is supposedly Big Bang one okay so back to our program here now we can run program again we'll have to sudo it because so we can read that proper hash file and then we'll enter Big Bang three one and it says okay sweet that was the flag that's here's what you need a foo material I that wasn't a set UID binary I thought that was kind of strange but I was going to use L trace and s trace to begin with so it's an interesting thing that those our noted in sudo that we would be able to run them so always always at least when you're in a shell try and run that basic enumeration sudo attack l lista well you can run without a password or anything also in the system you might have access to that's kind of a cool thing to note for a capture flag competitions and this one was just a simple okay reverse this hash pretty much what we did like in the beginner section hey I want to give a special shout out and some love the people that are willing to support me on patreon you guys are phenomenal I'm gonna do it I'm gonna run through hero Spencer Clark L Horowitz so hey Attila I'm sorry always put your name or Gaddafi and religious world's bastion of Harwich and Rob Timothy County Jacob hr1 FL Thomas for Rob Dacus JT ton Maurice contour oh it's Ben's Queenie William woodcomb Justin man Kim Bono pixel richard smith you guys are phenomenal hey $1 a month on patreon will give you a special shout-out just like this at the end of every video where I can butcher your name along with everyone else's $5 a month on patreon will give you early access to every video that I create before it's uploaded onto YouTube and if you did like this video please do press that like button maybe leave me a comment if you're willing to subscribe join us on discord linked to the server is in the description and you would be awesome if I could see some support on patreon you're the best guys see you soon
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Code Commentaries? PHP to JavaScript in Bash and PHP!
John Hammond
Tutorials? MySQL connection with PHP and Bash!
John Hammond
Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
John Hammond
JavaScript Splits The URL!
John Hammond
HTML Tables in Python!
John Hammond
HTML, Net Shares, GML!
John Hammond
Python 08 Programming Style and Comments
John Hammond
Python 26 Object Oriented Programming
John Hammond
75 Python Tutorials, Out Now!
John Hammond
Batch 14 Mathematical Expressions
John Hammond
Batch 85 Array Append
John Hammond
Batch 86 Array Count
John Hammond
Batch 87 Array Index
John Hammond
Batch 88 Array Insert
John Hammond
Batch 89 Array Remove
John Hammond
Batch 90 Array Reverse
John Hammond
Python [colorama] 00 Installing on Linux
John Hammond
Python [colorama] 09 Cursor Position
John Hammond
Python [hashlib] 02 Algorithms
John Hammond
Python 00 Installing IDLE on Linux
John Hammond
Python [pygame] 11 Rectangular Collision Detection
John Hammond
Python [pygame] 12 Platforming Rectangular Collision Resolution
John Hammond
Python [XML-RPC] 01 Research
John Hammond
Python [pyenchant] 03 Personal Word Lists
John Hammond
FancyURLopener Authentication and User-Agent [urllib] 03
John Hammond
Python 04: PEP8 Coding
John Hammond
Python Challenge! 17 COOKIES
John Hammond
Google CTF 2016: Ernst Echidna
John Hammond
Google CTF 2016: Spotted Quoll
John Hammond
Google CTF 2016: Can you Repo It?
John Hammond
Google CTF 2016: No Big Deal
John Hammond
Google CTF 2016: In Recorded Conversation
John Hammond
Homemade CTF Challenge: 01 "Orchestra"
John Hammond
Homemade CTF Challenge: 02 "Bae's Base"
John Hammond
Homemade CTF Challenge: 03 "Web Hunt"
John Hammond
Homemade CTF Challenge: 04 "UPX"
John Hammond
Homemade CTF Challenge: 05 "The Assumption Song"
John Hammond
Homemade CTF Challenge: 06 "A Brisk Stroll"
John Hammond
Homemade CTF Challenge: 06 "I lost my password!"
John Hammond
web25 :: Mr. Robot : EKOPARTY CTF 2016
John Hammond
web50 : RFC 7230 :: EKOPARTY CTF 2016
John Hammond
misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
John Hammond
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
John Hammond
Hack The Vote 2016 CTF Warpspeed [forensics150]
John Hammond
Juniors CTF 2016 :: Black Suprematic Square
John Hammond
Juniors CTF 2016 :: Six Strange Tales
John Hammond
Juniors CTF 2016 :: Lost Code
John Hammond
Juniors CTF 2016 :: Here Goes!
John Hammond
Juniors CTF 2016 :: Southern Cross
John Hammond
Juniors CTF 2016 :: Clone Attack
John Hammond
Juniors CTF 2016 :: Dirty Repo
John Hammond
Juniors CTF 2016 :: Hackers Blog
John Hammond
Juniors CTF 2016 :: Voting!!!
John Hammond
Juniors CTF 2016 :: The Good, The Bad and The Junkman
John Hammond
Juniors CTF 2016 :: Stop Thief!
John Hammond
Juniors CTF 2016 :: ROFL
John Hammond
Juniors CTF 2016 :: Restriced Area
John Hammond
Juniors CTF 2016 :: Oh SSH!
John Hammond
HackCon CTF 2017 TRIVIA and BONUS Challenges
John Hammond
HackCon CTF 2017 "Bacche" Challenges
John Hammond
More on: Security Basics
View skill →Related Reads
📰
📰
📰
📰
Your HIPAA Posture, in Version Control
Medium · Cybersecurity
What is gobuster?
Medium · Programming
Web3 Development Surges Amidst Critical Supply Chain Malware Threats and Bearish Sentiment
Dev.to AI
Lab: SQL injection UNION attack, retrieving multiple values in a single column
Medium · Cybersecurity
🎓
Tutor Explanation
DeepCamp AI