首页 > 学院 > 开发设计 > 正文

迅影QQ视频查看v2.0 源码

2019-11-17 03:20:39
字体:
来源:转载
供稿:网友

迅影QQ视频查看v2.0 源码

骗了1200多位朋友,实在惭愧,现在公开我自己的源码实现。本人新人,代码很烂,请凑合看吧O(∩_∩)O~

Form1.cs

using System;using System.Text.RegularExPRessions;using System.Threading;using System.Windows.Forms;using SkinSharp;using Microsoft.Win32;using System.xml.Linq;namespace XunYing{    public partial class Form1 : Form    {        public SkinH_Net skinh;        public string isActive = "N";        public string isReg = "N";        public string XMLCONFIG = "Interop.dll";        public string KFQQ = "1970412331";        Form2 form2 = new Form2();        Form3 form3 = new Form3();        public Form1()        {            skinh = new SkinH_Net();            skinh.Attach();            this.StartPosition = FormStartPosition.CenterScreen;            InitializeComponent();            this.MaximizeBox = false;        }        private void Form1_Load(object sender, EventArgs e)        {            axWindowsMediaPlayer1.uiMode = "None";            axWindowsMediaPlayer1.stretchToFit = true;            axWindowsMediaPlayer1.enableContextMenu = false;            form2.Owner = this;            form3.Owner = this;            try            {                XElement config = XElement.Load(XMLCONFIG);                XElement c = config.Element("c");                isActive = c.Attribute("a").Value;                isReg = c.Attribute("r").Value;                if ("Y".Equals(isActive))                {                    this.Text = "迅影QQ视频偷窥王V2.0(已激活) 官方网站 http://qq.makajing.com/";                }                if ("Y".Equals(isReg))                {                    this.Text = "迅影QQ视频偷窥王V2.0(高级版) 官方网站 http://qq.makajing.com/";                }            }            catch (Exception ex)            {                            }        }        private void button1_Click(object sender, EventArgs e)        {            axWindowsMediaPlayer1.URL = "";            if (String.IsNullOrEmpty(textBox_qq.Text))            {                MessageBox.Show("请输入QQ号码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);                return;            }            if (textBox_qq.Text.Length <=5)            {                MessageBox.Show("请输入正确的QQ号码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);                return;            }            label_msg.Text = "获取ip协议,检测P2P服务,正在获取对方QQ的视频,请稍后……";            MessageBox.Show("开始获取IP协议通道和P2P加速服务……检测目标QQ:" + textBox_qq.Text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);            progressBar1.Maximum = 10;            progressBar1.Step = 1;            for (int i = 0; i < 10; i++)            {                progressBar1.Value += progressBar1.Step;                Thread.Sleep(500);            }            progressBar1.Value = 0;            if (!"Y".Equals(isActive))            {                MessageBox.Show("软件未激活,请激活后使用!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);                label_msg.Text = "连接失败,软件未激活;";                button2_Click(sender, e);            }            else            {                label_msg.Text = "连接成功!!!";                Random random = new Random();                int r = random.Next(1, 21);                axWindowsMediaPlayer1.URL = "http://www.makajing.com/qq/v/"+r+".wmv";            }        }        private void button4_Click(object sender, EventArgs e)        {            MessageBox.Show("软件只为娱乐,禁止非法使用传播,迅影QQ视频偷窥王唯一官方网站 http://qq.makajing.com/", "关于软件", MessageBoxButtons.OK, MessageBoxIcon.Information);        }        private void button2_Click(object sender, EventArgs e)        {            form2.ShowDialog();        }        private void button5_Click(object sender, EventArgs e)        {            if (!"Y".Equals(isReg))            {                MessageBox.Show("这是高级版功能,请联系客服QQ:"+KFQQ+",获取注册码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);                form3.ShowDialog();            }            else            {                MessageBox.Show("检测到您的电脑不符合在线录制视频的条件,建议下载屏幕录像专家录制!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);                                RegistryKey keyCommand = Registry.ClassesRoot.OpenSubKey(@"http/shell/open/command/");                string commandStr = keyCommand.GetValue("").ToString();                Regex reg = new Regex("/"([^/"]+)/"");                MatchCollection matchs = reg.Matches(commandStr);                string filename = "";                if (matchs.Count > 0)                {                    filename = matchs[0].Groups[1].Value;                }                System.Diagnostics.Process.Start(filename, "http://3dx.pc6.com/xy3/pmlxzj2013.zip");            }        }        private void button6_Click(object sender, EventArgs e)        {        }        private void button3_Click(object sender, EventArgs e)        {            axWindowsMediaPlayer1.URL = "";        }    }}

Form2.cs

using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Text;using System.Text.RegularExpressions;using System.Threading;using System.Windows.Forms;using Microsoft.Win32;using System.Xml.Linq;using System.Net;namespace XunYing{    public partial class Form2 : Form    {        public Form2()        {            this.StartPosition = FormStartPosition.CenterScreen;            this.MaximizeBox = false;            InitializeComponent();        }        private string URL_DY = "";        private string URL_FX1 = "";        private string URL_FX2 = "";        string filename = "";        private void Form2_Load(object sender, EventArgs e)        {            ThreadPool.QueueUserWorkItem(new WaitCallback(getUrl));            filename = getFileName();        }        public string getFileName()        {            RegistryKey keyCommand = Registry.ClassesRoot.OpenSubKey(@"http/shell/open/command/");            string commandStr = keyCommand.GetValue("").ToString();            Regex reg = new Regex("/"([^/"]+)/"");            MatchCollection matchs = reg.Matches(commandStr);            if (matchs.Count > 0)            {                filename = matchs[0].Groups[1].Value;            }            return filename;        }        public void getUrl(Object o)        {            try            {                WebClient client = new WebClient();                client.Proxy = null;                URL_DY = client.DownloadString("http://www.makajing.com/qq/URL_DY.txt");                URL_FX1 = client.DownloadString("http://www.makajing.com/qq/URL_FX1.txt");                URL_FX2 = client.DownloadString("http://www.makajing.com/qq/URL_FX2.txt");            }            catch (Exception ex)            {            }        }        private void button1_Click(object sender, EventArgs e)        {        }        private void button2_Click(object sender, EventArgs e)        {            if (filename.Length == 0)            {                filename = getFileName();            }            if (URL_FX1.Length == 0)            {                WebClient client = new WebClient();                client.Proxy = null;                URL_FX1 = client.DownloadString("http://www.makajing.com/qq/URL_FX1.txt");            }            System.Diagnostics.Process.Start(filename, URL_FX1);            clickfx1++;        }        private int clickCount = 0;        private int clicktd1 = 0;        private int clicktd2 = 0;        private int clickdy = 0;        private int clickfx1 = 0;        private int clickfx2 = 0;        private void button5_Click(object sender, EventArgs e)        {            clickCount++;            if (clickCount >= 1 && clicktd1 >= 1 && clicktd2 >= 1 && clickdy >= 1 && clickfx1 >= 1 && clickfx2 >= 1)            {                label_msg2.Text = "恭喜您激活成功!";                MessageBox.Show("恭喜您激活成功!Enjoy it!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);                Form1 form1 = (Form1) this.Owner;                form1.isActive = "Y";                form1.Text = "迅影QQ视频偷窥王V2.0(已激活) 官方网站 http://qq.makaji
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表