Esempio n. 1
0
        private void extractKeys(string s,ref KeyList tmp)
        {
            string[] out1 = Regex.Split(s,"<br />");
            string Username = out1[0];
            string[] out2 = Regex.Split(out1[1],"</p>");
            string pass = Regex.Split((Regex.Split(out2[0], "\r\n"))[1], "Password:")[1];

            KeyPair k = new KeyPair();
            k.Username = Username;
            k.Password = pass;

            tmp.Kies.Add(k);
        }
Esempio n. 2
0
        private KeyList getKeys()
        {
            WebClient wc = new WebClient();
            string httpRawData = wc.DownloadString(new Uri("http://anonymouse.org/cgi-bin/anon-www.cgi/http://www.nod325.com", UriKind.Absolute));
            string[] words = Regex.Split(httpRawData, "<p>Username:");

            KeyList kl = new KeyList();

            for (int i = 1; i < words.Length;i++ )
            {
                extractKeys(words[i], ref kl);
            }

            return kl;
        }