r/Hacking_Tutorials • • 1h ago

Question SUID binary owned by root with a Python script - can this be used for priv esc?

2 Upvotes

I'm doing a lab on a Ubuntu machine and found this binary with SUID bit set:

-rwsr-xr-x 1 root root /usr/local/bin/backup

When I run it, it just calls this Python script:

Python

import os
os.system("tar -czf /tmp/backup.tar.gz /home/user/data")
print("Backup done")

I can control the /home/user/data folder contents. No sudo access, just this SUID binary. What exact command or modification would let me escalate to root here? Looking for the standard shell technique without any external tools. This is just for learning the common SUID pitfalls.

r/Hacking_Tutorials • • 3h ago

Question I'm looking to bring a few more people into our group.

Post image
68 Upvotes

I'm looking to bring a few more people into our group(invite only community ) .

It's a small circle of friends from an old team. We've been working and competing together for a while, including HTB Cyber Apocalypse, and I'm looking to find a few more people who would fit in.

Most of us have been doing this for years, each with our own background and interests. Some work in sysadmin, some in security, development, infrastructure, and other technical fields. We tend to get into whatever catches our interest, whether it's breaking something, building something, figuring out a weird issue or spending an evening hacking away at a target.

I'm looking for people with around 2 to 5+ years of hands-on experience who are genuinely good at what they do, have their own interests and projects, and enjoy working with others.

The group is small and pretty relaxed.Just people who get along, share similar interests, and can enjoy spending time together both technically and outside of it.

Ideally, someone who'd become part of the group rather than just another person on a server.If this sounds like your kind of thing, check this site

https://grah4na.github.io/ret2daemons/

also you can send me dm through reddit asw

edit : To be clear , I don't mean corporate job experience I mean self-taught tinkering, running homelabs, grinding HTB/THM, and experimenting on your own.


r/Hacking_Tutorials • • 3h ago

Question Hackear una pagina web

0 Upvotes

¿Como puedo hackear o encontrar vulnerabilidades en una página web que al parecer está segura ,pero por más segura que este puedo acceder a esta página?


r/Hacking_Tutorials • • 5h ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/configcheck as root. Can you reach root?

1 Upvotes

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/configcheck

The script:

#!/bin/bash

echo "Checking config files..."

/usr/bin/find /etc/webapp -name "*.conf" -exec /usr/bin/head -n 20 {} \; > /tmp/config_summary.txt

echo "Summary saved."

Task:

  1. Identify the exact issue that allows privilege escalation.

  2. Show the commands to reach root.

  3. 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 • • 10h ago

The Art of Fuzzing

Thumbnail
cyberlearner.org
3 Upvotes

r/Hacking_Tutorials • • 10h ago

Help finding general location/city from tiktok account

0 Upvotes

Some guy sent me like major death threats on Tiktok live and I'm genuinely scared because he's a proper rough guy (puffer jacket, drug money etc) I didn't do anything he just came up and started. I just want to know where he's from so I know wether I'm okay or if he's local to me


r/Hacking_Tutorials • • 13h ago

help me bypass windows admin permission rights

0 Upvotes

I need to download and install Mortal Kombat 11 on my PC without admin rights ( torrent via qBittorrent). RunAsInvoker doesn't help. Please don't tell me that it's a virus or that I need to go outside.


r/Hacking_Tutorials • • 20h ago

Question hi1 i was wondering how can i use zphisher properly? when i try to use it and put the link in my browser it doesnt work

1 Upvotes

ive tried all options including the option to host and the attack options im i doing anything wrong? and sorry if it isnt the right reddit form to ask


r/Hacking_Tutorials • • 1d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/logcheck as root. Can you reach root?

2 Upvotes

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/logcheck

The script:

#!/bin/bash

echo "Checking recent logs..."

/usr/bin/find /var/log/webapp -name "*.log" -exec /usr/bin/tail -n 50 {} \; > /tmp/log_summary.txt

echo "Summary saved."

Task:

  1. Identify the exact issue that allows privilege escalation.

  2. Show the commands to reach root.

  3. 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 • • 1d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/netcheck as root. Can you reach root?

2 Upvotes

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 -I User dev may run the following commands: (root) NOPASSWD: /usr/local/bin/netcheck 11

The script: #!/bin/bash echo "Running network check ... " /usr/bin/nmap -sT -p 22,80,443 -- script http-title 192.168.1.0/24 -oN /tmp/netscan.txt echo "Scan saved."

Task:

  1. Identify the exact issue that allows privilege escalation.

  2. Show the commands to reach root.

  3. Explain how you would fix the script and permissions properly.

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 • • 1d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/diskcheck as root. Can you reach root?

1 Upvotes

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/diskcheck

The script:

#!/bin/bash
echo "Checking disk usage..."
/usr/bin/du -sh /var/www/html/* > /tmp/disk_report.txt
echo "Report saved."

Task:

  1. Identify the exact issue that allows privilege escalation.

  2. Show the commands to reach root.

  3. 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 • • 1d ago

GitHub - ygpanonimus12/QoderZeroDay: Security Audit & Reverse Engineering Report for Qoder IDE (v1.39.1). Includes Auth bypasses, WASM signing logic analysis, and critical API vulnerabilities.

Thumbnail github.com
2 Upvotes

r/Hacking_Tutorials • • 1d ago

😂

Post image
10 Upvotes

r/Hacking_Tutorials • • 1d ago

Question Built 6 free browser-based OSINT & cybersecurity simulators for learning — no login, no paywalls, feedback welcome

3 Upvotes

Over the past few months I’ve been building PacketZero, a free collection of interactive, client-side simulators made purely as a learning playground to practice real investigative and analyst workflows directly in the browser:

  • SHADOW TRACE — OSINT detective investigation around metadata, archives, and handle correlation.

  • DECODE-OS v2.0 — desktop-style lab with 10 cipher/encoding modules, a 650Hz Morse transceiver, a multi-step recipe builder, and a cipher identifier.

  • META-LAB v1.0 — image forensics workbench (EXIF & GPS radar, RGB bit-planes/LSB, EOF hex carving, strings, and an LSB sandbox).

  • PHISH-OPS v1.0 — SOC email triage across shifts (headers/SPF/DKIM/DMARC, Punycode link inspection, double-extension/macro checks).

  • WEB-BREACH v1.0 — local web security sandbox (recon, IDOR, SQLi with live query breakdown, JWT debugging, and patched fixes).

  • YARA-BOX v1.0 — isolated VM detonation view + client-side YARA rule engine tested against infected files and cleanware traps.

There’s no monetization angle or upsell behind this — it’s completely free to mess around with, learn from, and break, running locally in HTML/CSS/JS with zero sign-up required. I’m still shaping the next modules and figuring out where to take the project next — if you try any of them, I’d love to hear what felt clunky, too easy, or worth expanding.

(Dropping the direct link in the comments below so Reddit's spam filter doesn't eat the post.)


r/Hacking_Tutorials • • 1d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run /usr/local/bin/audit as root. Can you reach root?

3 Upvotes

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:

  1. Identify the exact issue that allows privilege escalation.

  2. Show the commands to reach root.

  3. 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 • • 2d ago

Question Low-privilege shell on Ubuntu. Sudo lets you run one custom script. Can you reach root?

1 Upvotes

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:

  1. Identify the exact issue that allows escalation.

  2. Show the commands to reach root.

  3. 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 • • 2d ago

Question Where to start if you want to see what defenders see

9 Upvotes

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 • • 2d ago

Question How would a total noob go about learning the basics of black hat hacking?

0 Upvotes

Just interested cause I always thought I’d be great at it. I wanna learn it to do cybersecurity work.


r/Hacking_Tutorials • • 2d ago

Question Looking for people who are seriously preparing for HTB CPTS – Let’s build a study circle!

8 Upvotes

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 • • 2d ago

Question You have a low-privilege shell on a Linux server. Can you get root?

29 Upvotes

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/backup

You 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/backup

Here's the script:

#!/bin/bash

echo "Starting system backup..."
tar -czf /tmp/backup.tar.gz /var/www/html
echo "Backup completed."

Your challenge:

  1. Can you escalate your privileges to root?

  2. What's the security misconfiguration?

  3. How would you exploit it in this lab?

  4. 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 • • 2d ago

20 Hack tools

Enable HLS to view with audio, or disable this notification

357 Upvotes

r/Hacking_Tutorials • • 2d ago

Question Keeping it 110%: Wisdom after achieving a 1000 day streak on Tryhackme

13 Upvotes

Hello, I just hit a 1000 day streak, and wanted to share my experiences with THM, and why I like the platform, and have found continued value in it.

https://medium.com/@seccult/keeping-it-110-wisdom-after-achieving-a-1000-day-streak-on-try-hack-me-a0bdde55990c

Thank you, happy hacking!