Вот моя писалка "sup /b/" для http://letters.otved.ru/ на C# 2.0:
using System;
using System.Net;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
private static readonly int[] X = new int[] {
/* s */ 125, 119, 108, 98, 86, 72, 57, 46, 40, 43, 56, 70, 84, 100, 116, 128, 134, 128, 117, 102, 83, 67, 56, 46, 37,
/* u */ 187, 187, 186, 187, 187, 186, 188, 193, 201, 215, 230, 246, 261, 273, 285, 286, 283, 283, 284, 284, 284, 284, 286,
/* p */ 348, 347, 347, 347, 347, 346, 348, 348, 348, 348, 348, 348, 348, 359, 372, 385, 402, 420, 437, 449, 454, 452, 445, 426, 403, 387, 373, 361,
/* / */ 580, 575, 570, 564, 559, 557, 552, 546, 542, 536, 533, 528, 523,
/* b */ 622, 622, 622, 622, 624, 624, 622, 623, 623, 623, 623, 623, 623, 639, 651, 666, 682, 701, 717, 724, 728, 728, 721, 704, 684, 666, 650, 636,
/* / */ 820, 815, 809, 805, 801, 796, 792, 786, 782, 777, 773, 768, 764};
private static readonly int[] Y = new int[] {
/* s */ 263, 253, 243, 238, 236, 237, 242, 250, 267, 282, 290, 296, 301, 306, 312, 322, 339, 354, 366, 371, 372, 368, 363, 352, 339,
/* u */ 237, 254, 266, 286, 306, 323, 341, 352, 362, 368, 369, 367, 358, 344, 236, 253, 266, 286, 303, 320, 337, 352, 370,
/* p */ 236, 252, 267, 284, 302, 319, 335, 350, 368, 385, 398, 413, 428, 265, 247, 238, 237, 241, 255, 277, 304, 325, 348, 364, 370, 368, 363, 351,
/* / */ 176, 191, 206, 223, 242, 258, 272, 291, 307, 324, 341, 359, 376,
/* b */ 177, 191, 208, 224, 238, 254, 273, 289, 307, 323, 342, 359, 374, 258, 243, 239, 239, 242, 256, 277, 303, 327, 345, 362, 371, 371, 363, 350,
/* / */ 176, 192, 207, 224, 242, 258, 275, 288, 307, 322, 340, 357, 376};
static void Main()
{
int i = 1;
while (true)
{
i++;
int w = (i - 2) % 166,
x = X[(i - 2) % 130],
y = Y[(i - 2) % 130];
byte[] p = new ASCIIEncoding().GetBytes(string.Format(@"f=save&id=w_{1}&x={2}&y={3}&z={0}", i, w, x, y));
HttpWebRequest r = (HttpWebRequest)WebRequest.Create(@"http://letters.otved.ru/magneticAjax.php");
r.Accept = @"text/javascript, text/html, application/xml, text/xml, */*";
r.ContentLength = p.Length;
r.ContentType = @"application/x-www-form-urlencoded; charset=utf-8";
r.CookieContainer = new CookieContainer(1);
r.CookieContainer.Add(new Cookie(@"b", @"b", @"/", @"letters.otved.ru"));
r.Method = @"POST";
r.Referer = @"http://letters.otved.ru/";
r.UserAgent = @"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5;fdnet";
r.GetRequestStream().Write(p, 0, p.Length);
r.GetRequestStream().Close();
Console.WriteLine(@"{0} -> ({1}, {2})", w, x, y);
r.Abort();
}
}
}
}
Выключать, или пусть пишет, Анон?
c:ceanger намекает на гнев по отношению ко мне