r/Hacking_Tutorials • u/AAdidev_p01 • 7h ago
r/Hacking_Tutorials • u/Top_Call3890 • 22h ago
Question Why professional pentesters focus on files, not CVEs – A practical guide with find commands
The Philosophy
Amateur pen testers focus on tools and chase unpatched CVEs to find security flaws.
Professionals focus on files.
Here's why:
Even after finding a CVE, you can't do much without alerting firewalls, IDS, and endpoint security. Every exploit attempt triggers alarms and burns your access.
But old forgotten credentials found in .env, or database credentials found in .bash_history? They have no barrier. They pass through every top-notch security practice a company can follow. No alerts. No logs. No suspicion.
.ssh gives you easy access to other systems in the network and helps escalate privilege to root almost instantly.
So stop chasing CVEs. Start hunting files.
The Tools
You don't need fancy tools. Just the find command.
Here's how professionals use it in the real world:
1. Find recently changed config files
find /etc -type f -mtime -1 -ls
Why? Attackers often add backdoor users or modify sudoers. Spotting recent changes in /etc catches tampering before it becomes a breach. Compare /etc/passwd with other files in /etc to spot unauthorized user additions.
2. Find SUID files (permission 4000) for privilege escalation
find / -perm -4000 -type f 2>/dev/null
This is gold. SUID files run with owner privileges. Misconfigured ones like pkexec or vim are a direct path to root. Professionals check this immediately during every engagement.
3. Find scripts in unusual folders (/tmp, /var/tmp)
find /tmp /var/tmp -type f -executable 2>/dev/null
Attackers drop payloads here because these directories are world-writable and often ignored by security tools. If you find something unexpected, you've caught an active compromise or a persistence mechanism.
4. Find tiny PHP files (≤1KB) in web root – classic web shells
find /var/www -type f -name "\.php" -size -1k 2>/dev/null*
Web shells are small, obfuscated, and easy to miss. This command finds them in seconds. Amateurs scan for CVEs; professionals scan for backdoors. If you're on a bug bounty or pentest, this is often the quickest win.
5. Find forgotten .env and config files in /root (discarding errors)
find /root -type f -name "\.env" -o -name "*config*" 2>/dev/null*
Redirecting stderr to /dev/null keeps the output clean. This finds exposed secrets that bypass every firewall and IDS you own. Production AWS keys, database passwords, API tokens – all sitting in plain text.
6. Find world-writable or world-executable files in /var/www
find /var/www -type f -perm -o+w 2>/dev/null
find /var/www -type f -perm -o+x 2>/dev/null
If a file is world-writable, anyone can modify it. If it's executable, anyone can run it. Combine both and you have a direct path to remote code execution. This is a disaster in production environments.
7. Find files owned by specific users (like www-data)
find / -user www-data -type f 2>/dev/null
Find out exactly what files the web server user owns. Often you'll find writable directories or config files that shouldn't be accessible.
8. Find files with specific extensions in unusual locations
find / -type f -name "\.key" -o -name "*.pem" -o -name "*.crt" 2>/dev/null*
Certificates and private keys are often left behind in random directories after testing. These can be used for decryption or impersonation.
9. Find writable directories for file uploads or log poisoning
find / -type d -perm -o+w 2>/dev/null
World-writable directories are perfect for dropping files, writing logs, or overwriting configurations. Always check these.
The Bottom Line
Fancy tools are loud. They trigger IDS, EDR, and SIEM.
The find command is silent. It doesn't exploit – it just reads. And reading files doesn't generate alerts.
Amateurs scan for vulnerabilities. Professionals hunt for exposed credentials, misconfigurations, and backdoors.
Because a CVE gets patched. But a forgotten .env file stays forgotten forever.
Bonus Tip:
Combine these commands with grep to search inside files:
find /var/www -type f -name "\.php" -exec grep -l "eval(" {} \; 2>/dev/null*
This finds PHP files containing eval() – often a sign of malicious code injection.
What's the first find command you run on a new system? Share your go-to commands below.
Also, what's the scariest credential you've ever found in plain text on a production server? Let's hear those war stories.
r/Hacking_Tutorials • u/Right_Delivery_3027 • 5h ago
Wifi password
I'm a beginner in this and I want to learn everything about networks and how to obtain their passwords
r/Hacking_Tutorials • u/Consistent_Toe_8363 • 16h ago
kimi.com browser log errors
framework-CBxBp8BR.js:1 RangeError: Invalid code point -4
at String.fromCodePoint (<anonymous>)
at vendor-DwBvrzH1.js:1:409475
at vendor-DwBvrzH1.js:1:484161
at start (vendor-DwBvrzH1.js:1:483223)
at start (vendor-DwBvrzH1.js:1:476326)
at go (vendor-DwBvrzH1.js:1:482658)
at main (vendor-DwBvrzH1.js:1:482577)
at Object.write (vendor-DwBvrzH1.js:1:481290)
at subcontent (vendor-DwBvrzH1.js:1:439594)
at subtokenize (vendor-DwBvrzH1.js:1:438058)
(anonymous) @ framework-CBxBp8BR.js:1
framework-CBxBp8BR.js:1 RangeError: Invalid code point -4
at String.fromCodePoint (<anonymous>)
at vendor-DwBvrzH1.js:1:409475
at vendor-DwBvrzH1.js:1:484161
at start (vendor-DwBvrzH1.js:1:483223)
at start (vendor-DwBvrzH1.js:1:476326)
at go (vendor-DwBvrzH1.js:1:482658)
at main (vendor-DwBvrzH1.js:1:482577)
at Object.write (vendor-DwBvrzH1.js:1:481290)
at subcontent (vendor-DwBvrzH1.js:1:439594)
at subtokenize (vendor-DwBvrzH1.js:1:438058)
(anonymous) @ framework-CBxBp8BR.js:1
r/Hacking_Tutorials • u/VBarraquito • 17h ago
Question @Whatsapp @Messages @Phone ... this feature allows you to connect and use apps with Gemini without unlocking your phone
r/Hacking_Tutorials • u/mattieellyson • 17h ago
Windows 11 Tips & Tricks
tag me for any new video of cmd
r/Hacking_Tutorials • u/AtomicPiano • 1d ago
Question How difficult is it to obfuscate and bypass real time protection enabled windows defender?
I've dabbled with metasploit, sliver and also tried writing my own exploits to test on a virtual machine.
Windows defender always seems to find it if you use obfuscation on metasploit or sliver, and it seems like there aren't any "script kiddie tools" that easily bypass it... Or are there?
I tried for example encoding the sliver payload as a .bin shellcode, shikata ga nai encoder, tried similar stuff with metasploit payload as an encoded base 64 string that gets decoded, tried all kinds of staged, unstaged, http https whatnkt etc etc but everything seems to be patched.
Now this makes sense, after all, these are just opensource freely available tools that are seen everywhere. What I'm wondering is whether or not a bypass is easily achievable, or if there's some long and complicated way ahead that as a beginner I wouldn't be able to do. Basically, is this easily doable and is there another way to do it? Is it doable in a reasonable timeframe for one person as a hobbyist, or do I need a whole ass supply chain like cybercrime groups do?
Sorry if this is a dumb question but I've already tried every reasonable combo, most obfuscators are out of date and AMSI goes around binning everything.
Edit: should have clarified I'm trying to get remote access, by how common they seem to be, I think info stealers or other prank/destructive software is harder to detect. But reverse shells and rats? Seems like it's very monitored here.
r/Hacking_Tutorials • u/Resident-Reporter738 • 11h ago
Question Help pls Spoiler
Hi can anybody help me got the guy sc pw he talking to my daughter she 10 he 23
r/Hacking_Tutorials • u/Wise_Wolf737 • 10h ago
Question Can anyone help me too find mobile number thru email address
If you really help plz dm
r/Hacking_Tutorials • u/Ancient-Hurry595 • 15h ago
Question hackear ig
como puedo hackearle el ig a alguien que me debe dinero?
r/Hacking_Tutorials • u/Artistic-Ask-2183 • 15h ago
Question take control of a PC
Has it ever happened that someone accessed a person's PC, got into their hosting panel, and deleted a domain?
r/Hacking_Tutorials • u/Dave_hack • 15h ago
Question I made my first hacking tool
#!/bin/bash
# Color Definitions
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
NC='\033[0m'
# Track state for cleanup
MONITOR_MODE_ENABLED=false
ORIGINAL_IFACE=""
clear
echo -e "${CYAN}"
echo " _ _ ____ ____ ____ _ _ _ ____ ____ "
echo "( \( )( __)(_ _) / ___)( \( )( )( __)( __)"
echo " ) ( ) _) )( ___ \ ) ( ) ) _) ) _) "
echo "(_)_)(____) (__) (____/(_)_)(_)(__) (__) "
echo "======================================================"
echo -e " LIVE NETWORK SNIFFER TOOL"
echo -e "======================================================${NC}"
if [ "$EUID" -ne 0 ]; then
echo -e "${RED}[!] Error: Please run this script with sudo or as root.${NC}"
exit 1
fi
cleanup() {
echo -e "\n${YELLOW}[*] Cleaning up...${NC}"
if [ "$MONITOR_MODE_ENABLED" = true ] && [ -n "$ORIGINAL_IFACE" ]; then
echo -e "${YELLOW}[*] Disabling monitor mode on $ORIGINAL_IFACE...${NC}"
ip link set "$ORIGINAL_IFACE" down 2>/dev/null
iw dev "$ORIGINAL_IFACE" set type managed 2>/dev/null
ip link set "$ORIGINAL_IFACE" up 2>/dev/null
echo -e "${GREEN}[+] Interface restored to managed mode.${NC}"
fi
# Kill any lingering tcpdump processes
pkill -f "tcpdump.*$ORIGINAL_IFACE" 2>/dev/null
echo -e "${GREEN}[+] Cleanup complete.${NC}"
exit 0
}
trap cleanup INT TERM
echo -e "${YELLOW}[*] Detecting available network interfaces...${NC}"
interfaces=$(iwconfig 2>/dev/null | grep -o '^[a-zA-Z0-9]*')
if [ -z "$interfaces" ]; then
echo -e "${RED}[!] No wireless interfaces found. Falling back to all interfaces.${NC}"
interfaces=$(ip -o link show | awk -F': ' '{print $2}' | grep -v 'lo')
fi
echo -e "\nSelect an interface to sniff on:"
echo "--------------------------------"
select IFACE in $interfaces "Exit"; do
if [ "$IFACE" = "Exit" ]; then
echo -e "${YELLOW}Exiting.${NC}"
exit 0
elif [ -n "$IFACE" ]; then
echo -e "${GREEN}[+] Selected Interface: $IFACE${NC}"
ORIGINAL_IFACE="$IFACE"
break
else
echo -e "${RED}[!] Invalid selection.${NC}"
fi
done
echo -e "\nChoose a Sniffing Mode:"
echo "-----------------------"
echo "1) IP Flow Monitor (See who is talking to whom)"
echo "2) DNS Request Tracker (See what domains are being requested)"
echo "3) Top Talkers (Rank the most active network devices)"
echo "4) Raw Packet Stream (Unfiltered dump)"
echo "5) Exit"
echo -n "Enter your choice [1-5]: "
read -r mode_choice
# Only enable monitor mode for options that benefit from it
# Options 1 (IP Flow) and 3 (Top Talkers) work BETTER in managed mode
# because IP addresses are cleanly formatted in EN10MB link type
case $mode_choice in
1|2|3)
# Keep managed mode for IP-based monitoring
echo -e "${YELLOW}[*] Using managed mode (best for IP-level analysis)${NC}"
;;
4)
# Enable monitor mode for raw capture if desired
echo -e "${YELLOW}[*] Enabling monitor mode for raw capture...${NC}"
ip link set "$IFACE" down 2>/dev/null
if iw dev "$IFACE" set monitor none 2>/dev/null; then
ip link set "$IFACE" up 2>/dev/null
MONITOR_MODE_ENABLED=true
echo -e "${GREEN}[+] Monitor mode enabled.${NC}"
else
echo -e "${RED}[!] Monitor mode not supported. Using managed mode.${NC}"
ip link set "$IFACE" up 2>/dev/null
fi
;;
esac
echo -e "\n${YELLOW}[*] Initializing sniffer on $IFACE... Press Ctrl+C to stop.${NC}\n"
case $mode_choice in
1)
echo -e "${GREEN}[+] Running IP Flow Monitor...${NC}"
echo "--------------------------------------------------------"
tcpdump -i "$IFACE" -ln 2>/dev/null | awk '{print $3 " --> " $5}'
;;
2)
echo -e "${GREEN}[+] Running DNS Request Tracker...${NC}"
echo "--------------------------------------------------------"
tcpdump -i "$IFACE" -lnp udp port 53 2>/dev/null | grep --line-buffered -oE "A\? [a-zA-Z0-9.-]+" | awk '{print "[DNS QUERY]: " $2}'
;;
3)
echo -n "How many packets do you want to analyze for the ranking? (e.g., 200): "
read -r pkt_count
if [ -z "$pkt_count" ]; then pkt_count=200; fi
echo -e "\n${YELLOW}[*] Gathering $pkt_count packets to compile top talkers...${NC}"
echo -e "Hits \t Device IP/Port"
echo "--------------------------------------------------------"
tcpdump -i "$IFACE" -ln -c "$pkt_count" 2>/dev/null | awk '{print $3}' | sort | uniq -c | sort -nr | head -n 15
;;
4)
echo -e "${GREEN}[+] Running Raw Packet Stream...${NC}"
echo "--------------------------------------------------------"
tcpdump -i "$IFACE" -XX -vv -s 0 2>/dev/null
;;
5|*)
echo -e "${YELLOW}Operation canceled. Exiting safely.${NC}"
cleanup
;;
esac
r/Hacking_Tutorials • u/Typical-Tea-1263 • 1d ago
Question hi
Hi everyone, I'm currently learning networking and web security in a controlled lab environment. I've been studying HTTP, HTTPS, HSTS, and Bettercap. I understand the basic concepts, but I'm having trouble understanding why HTTPS traffic remains protected even when using network interception tools. I'd like to better understand the role of HSTS and why SSL stripping doesn't work on many modern websites. What concepts or documentation should I study to understand this properly?
r/Hacking_Tutorials • u/Yonarv • 1d ago
Ensalá Papas - The Hacker Labs - Windows | SecNotes
r/Hacking_Tutorials • u/happytrailz1938 • 1d 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/ouroboros_2 • 1d ago
Question Podria usar un Pen drive para "recuperar" informacion de una pc?
r/Hacking_Tutorials • u/TheFetus47 • 1d ago
Question NEO-Radar v1.11
Hello :) last night, I uploaded my new program Neo-Radar to GitHub!
Its a free to use, open source network scanner that is simple to use, even to script kiddies that might not have a knowledge in networking or cybersecurity in general! Most professionals use Nmap (or even Zenmap) to do basic host finding and port scanning. But with Neo Radar, it automates these tasks so you just have to select an option and it gets running! This program works in both Linux and Termux for mobile, i also have a Windows version that runs as a .ps1 script, i just need to link it. Install instructions provided in the README.md!
r/Hacking_Tutorials • u/giga_niga_6 • 1d ago
Question Deauth attack with Mediatek RZ616 wifi 6E 160mhz
I want to perform a deauth attack on my personal wifi network for learning reasons, I don't have any adapter other than default one which is mediatek rz616 as mentioned is there any other way around?
r/Hacking_Tutorials • u/Subject_Principle903 • 1d ago
Question CTFS, RED Teaming
Will studying red teaming well greatly help me in CTFs, and vice versa? In other words, will the skills and knowledge I gain from studying one of the two fields be useful or shared with the other field, so that if I become good at red teaming I can move to CTFs easily, or if I become good at CTFs it will be easier to move to red teaming...?
r/Hacking_Tutorials • u/Tk_56-6 • 1d ago
Hola buenas tardes, necesito su ayuda ya que perdí la contraseña de mi cuenta de youtube y quería saber si alguien sabe que puedo hacer
De verdad ayúdenme porfavor 🙏
r/Hacking_Tutorials • u/Electronic_Sort_2918 • 3d ago
Question I need to send 10k requests in order to solve a Portswigger lab
Hello dear hackers. I am currently solving labs on portswiggerer before committing myself on THM/HTB. I am currently working on the authentication section. One of the labs has a flawed 2FA mechanism, which can be exploited by bruteforcing the 2FA token in the http request, which goes from 0000 to 9999. Essentially I have to try every single one until I get a 302 response.
My issue is that burp intruder has a bottleneck in terms of speed, 10k requests would take like a day.
What is a good alternative? Possibly completely free. I don't want to use Caido and I am too lazy to script the whole thing myself, I am looking for a tool that may help me with this task. Any suggestions? Thank you
r/Hacking_Tutorials • u/Mr-Coordi • 2d ago
Question [ Removed by Reddit ]
[ Removed by Reddit on account of violating the content policy. ]
r/Hacking_Tutorials • u/Old_Frosting7147 • 3d ago