using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
string[] Base = new string[]
{
"へそクリック",
"HESO-CLICK",
};
string[] Sub = new string[]
{
"石のヤタベ",
"石のやたべ",
"慶応",
"書籍",
"栃木",
"詐欺",
"トンズラ",
"横浜",
"はまれぽ",
"ポイントサイト",
"小額詐欺",
"被害",
};
string google = "http://w...content-available-to-author-only...o.jp/search?q=";
Timer timer1 = new Timer();
TextBox textBox1 = new TextBox();
SplitContainer splitContainer1 = new SplitContainer();
int countbase = 1000;
int BaseNum = 0;
int select = 0;
private void Form1_Load(object sender, EventArgs e)
{
splitContainer1.Dock = DockStyle.Fill;
splitContainer1.Orientation = Orientation.Horizontal;
this.Controls.Add(splitContainer1);
textBox1.Multiline = true;
textBox1.Dock = DockStyle.Fill;
//this.Controls.Add(textBox1);
splitContainer1.Panel1.Controls.Add(textBox1);
//this.urlset();
timer1.Interval = countbase;
timer1.Tick += new EventHandler(timer1_Tick);
timer1.Enabled = true;
}
Random rnd = new Random();
void timer1_Tick(object sender, EventArgs e)
{
timer1.Enabled = false;
this.urlset();
timer1.Interval = 10* countbase+ rnd.Next(0, 10) * countbase;
timer1.Enabled = true;
}
void urlset()
{
//int SubNum = rnd.Next(2, Sub.Length - 1);
int SubNum = rnd.Next(1, 3);
string url = google
+ Base[BaseNum];
for (int i = 0; i < SubNum; i++)
{
url += "+" + Sub[rnd.Next(0, Sub.Length - 1)];
}
url += Environment.NewLine;
textBox1.AppendText(url);
if (select == 0)
{
WebBrowser wb = new WebBrowser();
wb.Dock = DockStyle.Fill;
wb.Navigate(url);
splitContainer1.Panel2.Controls.Clear();
splitContainer1.Panel2.Controls.Add(wb);
}
else
{
System.Diagnostics.Process.Start(url);
}
BaseNum ^= 1;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgfQogICAgICAgIHN0cmluZ1tdIEJhc2UgPSBuZXcgc3RyaW5nW10gCiAgICAgICAgewogICAgICAgICAgICAi44G444Gd44Kv44Oq44OD44KvIiwKICAgICAgICAgICAgIkhFU08tQ0xJQ0siLAogICAgICAgIH07CiAgICAgICAgc3RyaW5nW10gU3ViID0gbmV3IHN0cmluZ1tdCiAgICAgICAgewogICAgICAgICAgICAi55+z44Gu44Ok44K/44OZIiwKICAgICAgICAgICAgIuefs+OBruOChOOBn+OBuSIsCiAgICAgICAgICAgICLmhbblv5wiLAogICAgICAgICAgICAi5pu457GNIiwKICAgICAgICAgICAgIuagg+acqCIsCiAgICAgICAgICAgICLoqZDmrLoiLAogICAgICAgICAgICAi44OI44Oz44K644OpIiwKICAgICAgICAgICAgIuaoqua1nCIsCiAgICAgICAgICAgICLjga/jgb7jgozjgb0iLAogICAgICAgICAgICAi44Od44Kk44Oz44OI44K144Kk44OIIiwKICAgICAgICAgICAgIuWwj+mhjeipkOasuiIsCiAgICAgICAgICAgICLooqvlrrMiLAoKICAgICAgICB9OwogICAgICAgIHN0cmluZyBnb29nbGUgPSAiaHR0cDovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLm8uanAvc2VhcmNoP3E9IjsKICAgICAgICBUaW1lciB0aW1lcjEgPSBuZXcgVGltZXIoKTsKICAgICAgICBUZXh0Qm94IHRleHRCb3gxID0gbmV3IFRleHRCb3goKTsKICAgICAgICBTcGxpdENvbnRhaW5lciBzcGxpdENvbnRhaW5lcjEgPSBuZXcgU3BsaXRDb250YWluZXIoKTsgCiAgICAgICAgaW50IGNvdW50YmFzZSA9IDEwMDA7CiAgICAgICAgaW50IEJhc2VOdW0gPSAwOwogICAgICAgIGludCBzZWxlY3QgPSAwOwogICAgICAgIHByaXZhdGUgdm9pZCBGb3JtMV9Mb2FkKG9iamVjdCBzZW5kZXIsIEV2ZW50QXJncyBlKQogICAgICAgIHsKICAgICAgICAgICAgc3BsaXRDb250YWluZXIxLkRvY2sgPSBEb2NrU3R5bGUuRmlsbDsKICAgICAgICAgICAgc3BsaXRDb250YWluZXIxLk9yaWVudGF0aW9uID0gT3JpZW50YXRpb24uSG9yaXpvbnRhbDsKICAgICAgICAgICAgdGhpcy5Db250cm9scy5BZGQoc3BsaXRDb250YWluZXIxKTsKCiAgICAgICAgICAgIHRleHRCb3gxLk11bHRpbGluZSA9IHRydWU7CiAgICAgICAgICAgIHRleHRCb3gxLkRvY2sgPSBEb2NrU3R5bGUuRmlsbDsKICAgICAgICAgICAgLy90aGlzLkNvbnRyb2xzLkFkZCh0ZXh0Qm94MSk7CiAgICAgICAgICAgIHNwbGl0Q29udGFpbmVyMS5QYW5lbDEuQ29udHJvbHMuQWRkKHRleHRCb3gxKTsKCiAgICAgICAgICAgIC8vdGhpcy51cmxzZXQoKTsKICAgICAgICAgICAgdGltZXIxLkludGVydmFsID0gY291bnRiYXNlOwogICAgICAgICAgICB0aW1lcjEuVGljayArPSBuZXcgRXZlbnRIYW5kbGVyKHRpbWVyMV9UaWNrKTsKICAgICAgICAgICAgdGltZXIxLkVuYWJsZWQgPSB0cnVlOwogICAgICAgIH0KICAgICAgICBSYW5kb20gcm5kID0gbmV3IFJhbmRvbSgpOwogICAgICAgIHZvaWQgdGltZXIxX1RpY2sob2JqZWN0IHNlbmRlciwgRXZlbnRBcmdzIGUpCiAgICAgICAgewogICAgICAgICAgICB0aW1lcjEuRW5hYmxlZCA9IGZhbHNlOwogICAgICAgICAgICB0aGlzLnVybHNldCgpOwogICAgICAgICAgICB0aW1lcjEuSW50ZXJ2YWwgPSAxMCogY291bnRiYXNlKyBybmQuTmV4dCgwLCAxMCkgKiBjb3VudGJhc2U7CiAgICAgICAgICAgIHRpbWVyMS5FbmFibGVkID0gdHJ1ZTsKICAgICAgICB9CiAgICAgICAgdm9pZCB1cmxzZXQoKQogICAgICAgIHsKICAgICAgICAgICAgLy9pbnQgU3ViTnVtID0gcm5kLk5leHQoMiwgU3ViLkxlbmd0aCAtIDEpOwogICAgICAgICAgICBpbnQgU3ViTnVtID0gcm5kLk5leHQoMSwgMyk7CiAgICAgICAgICAgIHN0cmluZyB1cmwgPSBnb29nbGUKICAgICAgICAgICAgICAgICsgQmFzZVtCYXNlTnVtXTsKICAgICAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBTdWJOdW07IGkrKykKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdXJsICs9ICIrIiArIFN1YltybmQuTmV4dCgwLCBTdWIuTGVuZ3RoIC0gMSldOwogICAgICAgICAgICB9CiAgICAgICAgICAgIHVybCArPSBFbnZpcm9ubWVudC5OZXdMaW5lOwogICAgICAgICAgICB0ZXh0Qm94MS5BcHBlbmRUZXh0KHVybCk7CgogICAgICAgICAgICBpZiAoc2VsZWN0ID09IDApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIFdlYkJyb3dzZXIgd2IgPSBuZXcgV2ViQnJvd3NlcigpOwogICAgICAgICAgICAgICAgd2IuRG9jayA9IERvY2tTdHlsZS5GaWxsOwogICAgICAgICAgICAgICAgd2IuTmF2aWdhdGUodXJsKTsKICAgICAgICAgICAgICAgIHNwbGl0Q29udGFpbmVyMS5QYW5lbDIuQ29udHJvbHMuQ2xlYXIoKTsKICAgICAgICAgICAgICAgIHNwbGl0Q29udGFpbmVyMS5QYW5lbDIuQ29udHJvbHMuQWRkKHdiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5EaWFnbm9zdGljcy5Qcm9jZXNzLlN0YXJ0KHVybCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQmFzZU51bSBePSAxOwogICAgICAgIH0KICAgIH0KfQo=