Esempio n. 1
0
 public void write_host(string text)
 {
     MainWindow mw = new MainWindow();
     string[] tmp = sk.SkypePath.Split(':');
     string HDD = tmp[0];
     StreamWriter writer = new StreamWriter(HDD + ":\\Windows\\System32\\drivers\\etc\\hosts", true);
     writer.WriteLine(text);
     writer.Close();
     mw.WriteConsole("Werbe IP's gesperrt.");
 }
Esempio n. 2
0
        public hosts(MainWindow mw)
        {
            werbung.Add("127.0.0.1 rad.msn.com");
            werbung.Add("127.0.0.1 live.rads.msn.com");
            werbung.Add("127.0.0.1 ads1.msn.com");
            werbung.Add("127.0.0.1 static.2mdn.net");
            werbung.Add("127.0.0.1 g.msn.com");
            werbung.Add("127.0.0.1 a.ads2.msads.net");
            werbung.Add("127.0.0.1 b.ads2.msads.net");
            werbung.Add("127.0.0.1 ac3.msn.com");

            sk = new skype(mw);
        }
Esempio n. 3
0
 public skype(MainWindow mw)
 {
     this.mw = mw;
 }