Hi,
mir war gerade langweilig und hab gezaubert.
Für Idioten ihr müsst die Namespace zu eurer umändern.
PHP
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Text.RegularExpressions;
using System.IO;
namespace REGEX_HABBO_WEBBUILD
{
class Program
{
private static StreamWriter WRITER;
private static WebClient CLI = new WebClient();
private static string[] TLD = new string[]
{
"FI",
"ES",
"COM.BR",
"DK",
"SE",
"IT",
"NL",
"DE",
"NO",
"COM",
"FR"
};
private static List<string> WEBBUILDS = new List<string>();
static void Main(string[] args)
{
Console.WriteLine("WEBBUILDS IN DER WELT ");
foreach(string A in TLD)
{
foreach (string WB in GetHtmlLinks(CLI.DownloadString("http://habbo." + A), A.ToUpper()))
{
if (A.ToUpper().Equals("COM.BR") || A.ToUpper().Equals("DK"))
{
WEBBUILDS.Add(WB.Substring(61, 40));
Console.WriteLine("habbo." + A + " >> " + WB.Substring(61, 40));
}
else
{
WEBBUILDS.Add(WB.Substring(60, 40));
Console.WriteLine("habbo." + A + " >> " + WB.Substring(60, 40));
}
}
}
Console.ReadKey();
Console.WriteLine("\n\n\t\tSPEICHERN? Y/N");
Console.Write("\t\tY/N >> ");
string EINGABE = Console.ReadLine();
switch (EINGABE.ToUpper())
{
case "Y":
WRITER = new StreamWriter(@"webbuild.txt");
foreach (string A in TLD)
{
for (int i = 0; i < WEBBUILDS.Count; i++)
{
WRITER.WriteLine("WEBBUILD: habbo." + A.ToLower() + Environment.NewLine + ">> " + WEBBUILDS[i] + Environment.NewLine);
Console.WriteLine("WEBBUILD: habbo." + A.ToLower() + Environment.NewLine + ">> " + WEBBUILDS[i] + Environment.NewLine);
break;
}
}
WRITER.Close();
Console.WriteLine("\t\tDATEI ALS webbuild.txt ABGESPEICHERT!");
break;
case "N":
Environment.Exit(0);
break;
default: Environment.Exit(5); break;
}
Console.ReadKey();
}
private static List<string> GetHtmlLinks(string html, string country)
{// (.*?)
switch (country.ToUpper())
{
case "ES":
case "SE":
MatchCollection CC = Regex.Matches(html, "var habboStaticFilePath = \"http://netdna.habbo.com/habboweb/(.*?)/(.*?)/web-gallery\";", RegexOptions.Singleline);
List<string> BB = new List<string>();
foreach (Match DD in CC)
{
BB.Add(DD.Value);
}
return BB;
case "COM.BR":
case "DK":
MatchCollection CCC = Regex.Matches(html, "var habboStaticFilePath = \"http://cotendo.habbo.com/habboweb/(.*?)/(.*?)/web-gallery\";", RegexOptions.Singleline);
List<string> BBB = new List<string>();
foreach (Match DDD in CCC)
{
BBB.Add(DDD.Value);
}
return BBB;
default:
MatchCollection C = Regex.Matches(html, "var habboStaticFilePath = \"http://images.habbo.com/habboweb/(.*?)/(.*?)/web-gallery\";", RegexOptions.Singleline);
List<string> B = new List<string>();
foreach (Match D in C)
{
B.Add(D.Value);
}
return B;
}
}
}
}
Alles anzeigen
Was dabei rauskam in der webbuild.txt:
Code
WEBBUILD: habbo.fi
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.es
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.com.br
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.dk
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.se
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.it
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.nl
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.de
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.no
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.com
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.fr
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
Alles anzeigen
Debug vom CLI Fenster:
Code
WEBBUILDS IN DER WELT
habbo.FI >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.ES >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.COM.BR >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.DK >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.SE >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.IT >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.NL >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.DE >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.NO >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.COM >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
habbo.FR >> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
y
SPEICHERN? Y/N
Y/N >> Y
WEBBUILD: habbo.fi
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.es
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.com.br
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.dk
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.se
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.it
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.nl
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.de
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.no
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.com
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
WEBBUILD: habbo.fr
>> 63_1dc60c6d6ea6e089c6893ab4e0541ee0/841/
DATEI ALS webbuild.txt ABGESPEICHERT!
Alles anzeigen