r/Hacking_Tutorials • u/Michaelkamel • 3d ago
r/Hacking_Tutorials • u/RoseyCharmzz • 2d ago
Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/audit as root. Can you reach root?
You're on a lab Ubuntu server as user dev.
dev@lab:~$ whoami
dev
dev@lab:~$ id
uid=1001(dev) gid=1001(dev) groups=1001(dev),1002(web)
dev@lab:~$ sudo -l
User dev may run the following commands:
(root) NOPASSWD: /usr/local/bin/audit
The script:
#!/bin/bash
echo "Running system audit..."
/usr/bin/find /var/log/app -name "*.log" -exec /usr/bin/awk -f /opt/scripts/parse.awk {} \;
echo "Audit complete."
Task:
- Identify the exact issue that allows privilege escalation.
- Show the commands to reach root.
- Explain how you would fix the script and permissions properly.
No Metasploit. No automated tools. Just standard Linux commands and shell knowledge.
This is a controlled lab scenario. Share your approach in the comments.
r/Hacking_Tutorials • u/ctiacademy • 3d ago
Question Where to start if you want to see what defenders see
If you're learning offense, it helps to know what the other side actually looks at. Here's the order we'd suggest for a beginner.
Start with the basics: threats, assets, how attackers get in through malware and social engineering, and Linux as a daily tool rather than a list of commands. Then networking, but through traffic: follow one web visit packet by packet in Wireshark and read TCP, DNS, HTTP and TLS from real captures. After that, Windows forensics (how Windows stores files, accounts and time, and your first real artifacts), then malware triage (handle a sample safely, pull out its config and C2).
OSINT is worth learning alongside all of it, as an investigation process, not a list of tools.
We put these together as guided paths with exercises, and every path is free to start: https://ctiacademy.io/learning-paths
What would you add to the order?

r/Hacking_Tutorials • u/Potential-Couple-745 • 3d ago
Question You have a low-privilege shell on a Linux server. Can you get root?
You're inside a Linux machine as a regular user named alex.
Your goal is to gain root access.
You start by checking your permissions.
alex@lab:~$ whoami
alex
alex@lab:~$ id
uid=1001(alex) gid=1001(alex) groups=1001(alex),1002(devops)You check what you're allowed to run:
alex@lab:~$ sudo -l
User alex may run the following commands:
(root) NOPASSWD: /usr/local/bin/backupYou investigate the backup script:
alex@lab:~$ ls -l /usr/local/bin/backup
-rwxrwxr-x 1 root devops 245 Nov 20 10:30 /usr/local/bin/backupHere's the script:
#!/bin/bash
echo "Starting system backup..."
tar -czf /tmp/backup.tar.gz /var/www/html
echo "Backup completed."Your challenge:
- Can you escalate your privileges to root?
- What's the security misconfiguration?
- How would you exploit it in this lab?
- How would you fix it without breaking the backup process?
Try solving it before checking the comments.
No Metasploit. No automated privilege escalation scripts.
Just Linux knowledge and a terminal.
This is a fictional, authorized lab scenario.
r/Hacking_Tutorials • u/duskyWinks • 2d ago
Question Low-privilege shell on Ubuntu. Sudo lets you run one custom script. Can you reach root?
You're on a lab Ubuntu server as user
dev@lab:~$ whoami dev dev@lab:~$ id uid=1001(dev) gid=1001(dev) groups=1001(dev),1002(web) dev@lab:~$ sudo -l User dev may run the following commands: (root) NOPASSWD: /usr/local/bin/backup.sh
The script looks like this:
#!/bin/bash echo "Creating backup..." tar -czf /tmp/backup_$(date +%F).tar.gz /var/www/html echo "Backup finished."
Task:
- Identify the exact issue that allows escalation.
- Show the commands to reach root.
- Explain how you would fix the script properly.
No Metasploit. No automated tools. Just standard Linux commands and shell knowledge.
This is a controlled lab scenario. Share your approach in the comments.
r/Hacking_Tutorials • u/P4R4D0X_security • 3d ago
Question Looking for people who are seriously preparing for HTB CPTS – Let’s build a study circle!
Hey everyone!
I’m currently preparing for the HTB Certified Penetration Testing Specialist (CPTS) certification, and I’m looking to connect with like-minded people who are pursuing the same goal.
I want to find people who are genuinely committed to offensive security, studying consistently, putting in the hours, solving machines, understanding concepts in depth, and not just rushing through modules to get a certificate.
A little about my journey:
- Currently working in application security / penetration testing.
- Preparing for HTB CPTS and working through HTB Academy.
- Spending time understanding enumeration, exploitation, privilege escalation, Active Directory, pivoting, and the overall penetration testing methodology.
- My goal isn’t just to pass CPTS but to become a much stronger, well-rounded penetration tester.
What I’m looking for:
- People actively preparing for CPTS.
- People who are studying consistently and taking their preparation seriously.
- Sharing notes, methodologies, interesting findings, resources and learning experiences.
- Discussing difficult concepts and helping each other when we’re stuck.
- Maybe occasional study sessions, accountability check-ins, and discussions about machines we’ve solved.
I’m not expecting everyone to be at the same stage. Beginners and people who are already deep into the path are equally welcome, as long as they’re serious about learning.
I’d love to build a small group of like-minded individuals where we can push each other, stay accountable, share knowledge, and eventually celebrate passing CPTS together!
If you’re preparing for CPTS, drop a comment or DM me. Let’s connect!
Happy hacking! 🚩
r/Hacking_Tutorials • u/seccult • 3d ago
Question Keeping it 110%: Wisdom after achieving a 1000 day streak on Tryhackme
r/Hacking_Tutorials • u/Potential-Couple-745 • 4d ago
Question We've built 12 free cybersecurity career paths, 107 learning paths and 488 rooms with labs
I'm behind Codelivly, a cybersecurity learning platform we've been working on for quite some time.
I wanted to share what we've built so far.
Right now, Codelivly has:
- 12 career paths
- 107 learning paths
- 488 rooms with hands-on labs
- 2,111 lessons with browser practice
- 42 standalone labs
- 64 CTF challenges
- 18 simulations
You can explore SOC analysis, penetration testing, digital forensics, malware analysis, red teaming, cloud security, networking and more.
The browser labs let you practise concepts without setting up an entire environment. They're simulations, so they won't replace a proper VM lab, but they're a good starting point.
Everything is completely free, including certificates on eligible paths. No subscription or credit card required.
I know this might sound promotional since I'm behind the platform, but I'm sharing it so people looking for free cybersecurity resources can find them.
Would genuinely appreciate feedback on what we should improve or build next.
r/Hacking_Tutorials • u/Suitable-Pie1093 • 3d ago
Question How would a total noob go about learning the basics of black hat hacking?
Just interested cause I always thought I’d be great at it. I wanna learn it to do cybersecurity work.
r/Hacking_Tutorials • u/OkCaterpillar1058 • 3d ago
HackYourWayIn: Beginner Hacking Challenges
r/Hacking_Tutorials • u/YummerBeef • 3d ago
Question Noob question
Hello everyone, I am passionate about pentesting and cybersecurity in general and I have decided to start learning it to boost my resume, but the inconvenience is that I currently use Fedora 45 for my programming studies. I need advice on what I can do to get pentesting tools or if you recommend using Kali in a container since I don't want to lose my main system or dual boot. I would appreciate your help
r/Hacking_Tutorials • u/Velvetblossom_Cetta • 4d ago
Question How do young black hat hackers get so skilled so quickly?
I've recently started diving into ethical hacking, and I'm constantly amazed by how many black hat hackers begin their journeys at such a young age. We're talking about actual teenagers who are getting into malware, phishing schemes, and all sorts of exploits. It's wild to think about how they learn all this stuff so quickly. Are they just really curious and exploring everything they can find online, or is there some kind of community that helps guide them through it?
I know there's a huge amount of information available, but it still blows my mind that someone who's just 16 can comprehend and execute complicated attacks. Is it all about YouTube tutorials and trial and error? Or are there hidden corners of the web where they gather and soak up this knowledge?
I definitely don't want to promote anything illegal, I'm just really intrigued from a learning standpoint. What kind of mindset or environment allows them to progress so rapidly? It seems like there's a lot to learn from their curiosity and commitment, even if you're focusing on the ethical side.
Also, if anyone has recommendations for beginner-friendly communities, Discord servers, or any other helpful spots where newbies like me can get guidance, please share! I'd really appreciate it.
r/Hacking_Tutorials • u/happytrailz1938 • 4d ago
Saturday Hacker Day - What are you hacking this week?
Weekly forum post: Let's discuss current projects, concepts, questions and collaborations. In other words, what are you hacking this week?
r/Hacking_Tutorials • u/Trick-Resolve-6085 • 5d ago
f2img: pack files into encrypted PNGs, tested round trip on Amazon Prime's unlimited photo storage
Python tool that turns files into actual images, not steganography. The encrypted bytes are the pixels.
Encodes any files or folders into lossless PNGs (tar + zstd + gpg), decodes back byte-identical. Big files get split across multiple ~10 MB images. Every image carries its own index and checksum, so renamed or shuffled images still decode and a damaged one gets caught.
r/Hacking_Tutorials • u/Potential-Couple-745 • 5d ago
Question Cybersecurity professionals, what's one skill you wish you had learned earlier?
Hey everyone,
I'm Rocky. I've been spending a lot of my time building things in the cybersecurity education space, and I'm always interested in hearing from people who actually work in the industry.
One thing I've noticed is that beginners often focus heavily on tools like Kali Linux, Metasploit, and Burp Suite, but sometimes overlook the fundamentals.
So I wanted to ask the professionals here:
What's one skill you wish you had spent more time learning when you first started in cybersecurity?
Was it networking, Linux, scripting, Active Directory, log analysis, or something completely different?
Also, do you think beginners today are spending too much time collecting certifications instead of building practical skills?
Would love to hear from SOC analysts, pentesters, red teamers, blue teamers, and anyone else working in the field.
I'm genuinely curious how different the learning process is from what the job actually demands.
r/Hacking_Tutorials
•
u/Potential-Couple-745
•
6d ago
Question We added a free Red Team Operator L1 career path covering OSINT, web attacks, privilege escalation and Active Directory
I'm behind Codelivly. We've added a Red Team Operator Level 1 career path for people who want to get into offensive security.
It covers:
- Networking, reconnaissance and OSINT
- Web application security
- Password attacks
- Windows and Linux privilege escalation
- Active Directory fundamentals
- Lateral movement and reporting
The idea is to start with the fundamentals before moving into more advanced red teaming concepts.
We've included hands-on browser practice alongside the learning material. The simulations have limitations, so pairing them with your own lab environment is useful too.
Everything on Codelivly's learning platform is free. No subscription or credit card required.
https://codelivly.com/career-paths/red-team-operator-l1
I know this sounds promotional since I'm behind the platform, but I'm sharing it so people looking for free resources can find somewhere to start.
If you try it, I'd appreciate feedback on what we should improve.
r/Hacking_Tutorials • u/Practical_Goal777 • 5d ago
Question How do you approach learning different template engines for SSTI testing?
Hi guys,
I'm new to web application pentesting, coming from a network engineering background.
I've learned the basics of HTML, CSS, JS, SQL, PHP, API pentesting, and completed some PortSwigger labs.
Currently, I'm learning SSTI, but I'm confused about the different template engines (Jinja2, Twig, FreeMarker, etc.).
It's not practical to learn every engine in depth. When testing for SSTI, how do you approach unfamiliar template engines and craft appropriate payloads?
Do you study their documentation, memorize payloads, or follow some other approach?
Would appreciate advice from experienced pentesters. Thanks!
r/Hacking_Tutorials • u/sihuca50 • 5d ago
Question unlock Moto x 1st gen
I just found my old Moto X 1st generation phone, I don't remember the password, it would be easy to reset it to factory settings since I want to use it as a camera for my PC, but I got curious about learning how to unlock it without a PIN, though I have no clue how to do it, but I have free time. Would anyone have a tutorial? I've seen that there are apps, but I don't know where to start.
r/Hacking_Tutorials • u/Royalspleasurez • 5d ago
Question Apache error.log triage: Which entry would you investigate first during a compromise assessment?
Reviewing a small web server's Apache error.log, these five lines appear in a tight window. One feels like it could indicate active exploitation rather than routine noise.
[Mon Oct 14 09:41:12 2024] [error] [client 203.0.113.19] File does not exist: /var/www/html/wp-login.php [Mon Oct 14 09:41:15 2024] [error] [client 198.51.100.7] PHP Warning: include(/var/www/html/../../../etc/passwd): failed to open stream [Mon Oct 14 09:41:18 2024] [error] [client 192.0.2.45] script '/var/www/html/admin/config.php' not found or unable to stat [Mon Oct 14 09:41:22 2024] [error] [client 203.0.113.19] PHP Fatal error: Uncaught Error: Call to undefined function system() in /var/www/html/upload.php [Mon Oct 14 09:41:25 2024] [error] [client 198.51.100.7] File does not exist: /var/www/html/.env
Questions for discussion:
- Which line would you examine first and why?
- What does the successful path traversal attempt (even if it errored) suggest about the application?
- Would the PHP fatal error on upload.php change your priority?
- What would you check next access.log for the same IPs, file timestamps, or process listings?
Bonus: Write the exact grep or awk one-liner that would extract every line containing a path traversal pattern (../) from a larger error.log.
Beginners welcome just answer the first question with your reasoning.
r/Hacking_Tutorials • u/GlossSinful • 5d ago
Question Which line in these Linux auth.log SSH entries would you investigate first during triage—and why?
I’ve been brushing up on practical log triage and incident response habits lately, and one thing that always stands out when reviewing raw authentication logs is how easy it is to get tunnel-visioned on noisy failure spam while glossing over the one entry that actually changed state. When a server is exposed to the internet on port 22, background noise is practically guaranteed, so separating routine brute-force chatter from high-impact anomalies is half the battle.
Suppose you're reviewing a Linux server's /var/log/auth.log and pull up this tight 14-second window of sshd activity:
Oct 12 14:22:01 server sshd[1234]: Failed password for invalid user admin from 192.0.2.45 port 22 ssh2
Oct 12 14:22:04 server sshd[1235]: Failed password for invalid user root from 203.0.113.19 port 22 ssh2
Oct 12 14:22:09 server sshd[1236]: Accepted password for user alice from 198.51.100.7 port 22 ssh2
Oct 12 14:22:11 server sshd[1237]: Failed password for user alice from 203.0.113.19 port 22 ssh2
Oct 12 14:22:15 server sshd[1238]: Failed password for invalid user test from 192.0.2.45 port 22 ssh2
At a glance, you've got invalid-user probes (admin, root, test), a failed password attempt against a valid local account (alice), and a successful password authentication for alice right in the middle of the sequence. Even with a small snippet like this, different analysts and sysadmins will prioritize their first pivot differently depending on whether they lead with "state change first" (successful access), "known user targeting" (a valid account being hit), or "source correlation" (seeing if the same IPs show up across broader windows or other services).
To make it easy to jump in whether you're deep into blue-team work or just learning how to read auth.log, here are four prompts to unpack it:
- First pivot: Which IP address and log line would you investigate first, and what is your reasoning behind prioritizing it over the others?
- Successful auth: What does the
Accepted password for user alice from198.51.100.7entry suggest—and what context (like known VPN/office IPs, normal login hours, or password vs. SSH key usage) would tell you whether it's legitimate or a compromise? - Automated noise vs. targeted probing: Do the repeated
invalid userattempts from192.0.2.45(and theroot/alicehits from203.0.113.19) point to automated scanning/credential stuffing, or could there be more going on here? - Next investigation steps: Once you look at that initial line, what do you check next—other log files (like
syslog,auditd, or web/auth logs),alice's account/session activity andsudohistory, active network connections, or firewall/fail2ban rules?
Beginners are more than welcome to answer just the first question—share your reasoning and how you approach reading logs like this in the real world!

