ITÊýÂë ¹ºÎï ÍøÖ· Í·Ìõ Èí¼þ ÈÕÀú ÔĶÁ ͼÊé¹Ý
TxTС˵ÔĶÁÆ÷
¡ýÓïÒôÔĶÁ,С˵ÏÂÔØ,¹ÅµäÎÄѧ¡ý
ͼƬÅúÁ¿ÏÂÔØÆ÷
¡ýÅúÁ¿ÏÂÔØͼƬ,ÃÀŮͼ¿â¡ý
ͼƬ×Ô¶¯²¥·ÅÆ÷
¡ýͼƬ×Ô¶¯²¥·ÅÆ÷¡ý
Ò»¼üÇå³ýÀ¬»ø
¡ýÇáÇáÒ»µã,Çå³ýϵͳÀ¬»ø¡ý
¿ª·¢: C++֪ʶ¿â Java֪ʶ¿â JavaScript Python PHP֪ʶ¿â È˹¤ÖÇÄÜ Çø¿éÁ´ ´óÊý¾Ý Òƶ¯¿ª·¢ ǶÈëʽ ¿ª·¢¹¤¾ß Êý¾Ý½á¹¹ÓëËã·¨ ¿ª·¢²âÊÔ ÓÎÏ·¿ª·¢ ÍøÂçЭÒé ϵͳÔËά
½Ì³Ì: HTML½Ì³Ì CSS½Ì³Ì JavaScript½Ì³Ì GoÓïÑÔ½Ì³Ì JQuery½Ì³Ì VUE½Ì³Ì VUE3½Ì³Ì Bootstrap½Ì³Ì SQLÊý¾Ý¿â½Ì³Ì CÓïÑÔ½Ì³Ì C++½Ì³Ì Java½Ì³Ì Python½Ì³Ì Python3½Ì³Ì C#½Ì³Ì
ÊýÂë: µçÄÔ ±Ê¼Ç±¾ ÏÔ¿¨ ÏÔʾÆ÷ ¹Ì̬ӲÅÌ Ó²ÅÌ ¶ú»ú ÊÖ»ú iphone vivo oppo СÃ× »ªÎª µ¥·´ ×°»ú ͼÀ­¶¡
 
   -> ϵͳÔËά -> ÓÃC#±àдһ¸ö¼òµ¥µÄÍøÓοͻ§¶Ë -> ÕýÎÄÔĶÁ

[ϵͳÔËά]ÓÃC#±àдһ¸ö¼òµ¥µÄÍøÓοͻ§¶Ë

1,´úÂë

ÏÈн¨ÏîÄ¿
ÔÚÕâÀï²åÈëͼƬÃèÊö
Éè¼Æ½çÃæ
ÔÚÕâÀï²åÈëͼƬÃèÊö¼Çס,»¹ÓÐÍ϶¯Ò»¸ötimerµ½pictureboxÉÏ

Ë«»÷¿ªÊ¼ÓÎÏ·,½øÈë´úÂë±àд½çÃæ

private void button4_Click(object sender, EventArgs e)
        {
            tcpClient = new TcpClient();
            //Ì×½Ó×Ö½¨Á¢Á¬½Ó


            socket_send = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            IPEndPoint point = new IPEndPoint(IPAddress.Parse("10.1.230.74"), 3900);
            socket_send.Connect(point);
            try
            {
                //ÏòÖ¸¶¨µÄIPµØÖ·µÄ·þÎñÆ÷·¢ËÍÁ¬½ÓÇëÇó
                tcpClient.Connect("10.1.230.74", 3900);
                listBox1.Items.Add("Á¬½Ó³É¹¦");
                stream = tcpClient.GetStream();
                receive_stream();//½ÓÊÕ×Ö½ÚÁ÷²¢ÏÔʾÔÚÆÁÄ»ÉÏ

            }
            catch
            {
                listBox1.Items.Add("·þÎñÆ÷δÆô¶¯");
            }

        }

Ë«»÷·¢ËÍ,½ñ½øÈë´úÂë±àд

private void button1_Click(object sender, EventArgs e)
        {
            if (tcpClient.Connected)
            {
                string action = textBox1.Text.ToString();
                listBox1.Items.Add("ÊäÈëµÄÐÅϢΪ:" + action);
                send_stream(action);
                receive_stream();

            }
            else
            {
                listBox1.Items.Add("Á¬½ÓÒѶϿª");
            }
        }

Ë«»÷²¥·Å,½øÈë´úÂë±àд

private void button2_Click(object sender, EventArgs e)
        {
            player.Load();
            player.Play();
        }
private void music_play()
        {
            SoundPlayer sp = new SoundPlayer();
            sp.SoundLocation = @"ÐíáÔ.wav";       //ÄãµÄÒôÀÖÎļþÃû³Æ,ÇÒ×¢Òâ±ØÐëÊÇwavÎļþ
            sp.PlayLooping();
        }

½øÈëresxÎļþ,°´ÕÕÒÔÏÂÎļþÌí¼ÓÒª²¥·ÅµÄÒôÀÖ
ÔÚÕâÀï²åÈëͼƬÃèÊö

½«×Ö½ÚÁ÷ÓÃGBK¸ñʽ±àÂëÔÚlistboxÀïÏÔʾ

void receive_stream()
        {
            byte[] receive_data = new byte[1024];
            //¶¨Òå±àÂë¸ñʽ
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);//ΪʹÓÃGB2312×ö×¼±¸
            System.Text.Encoding GBK = System.Text.Encoding.GetEncoding("GBK");
            if (stream.CanRead)
            {

                int len = stream.Read(receive_data, 0, receive_data.Length);
                string msg = GBK.GetString(receive_data, 0, receive_data.Length);

                string str = "\r\n";
                char[] str1 = str.ToCharArray();
                //ÂÒÂ뼯ºÏ
                string[] messy_code = { "ÿ?ÿ?[2J ", "[5m", "[44m", "[37;0m", "[1;33m", "[1;32m", "[1;31m" };
                string[] msg1 = msg.Split(str1);//ÒÔ»»ÐзûΪ·Ö¸ô·û
                for (int j = 0; j < msg1.Length; j++)//ÖðÐÐÏÔʾ
                {
                    //¹ýÂËÂÒÂë
                    msg1[j] = msg1[j].Replace(messy_code[0], " ");
                    msg1[j] = msg1[j].Replace(messy_code[1], " ");
                    msg1[j] = msg1[j].Replace(messy_code[2], " ");
                    msg1[j] = msg1[j].Replace(messy_code[3], " ");
                    msg1[j] = msg1[j].Replace(messy_code[4], " ");
                    msg1[j] = msg1[j].Replace(messy_code[5], " ");
                    msg1[j] = msg1[j].Replace(messy_code[6], " ");
                    listBox1.Items.Add(msg1[j]);
                }
            }
        }

Ë«»÷Í˳ö,½øÐбàд

 void send_stream(string str)
        {
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);//ΪʹÓÃGB2312×ö×¼±¸
            System.Text.Encoding GBK = System.Text.Encoding.GetEncoding("GBK");
            byte[] buffer = GBK.GetBytes(str + "\n");
            stream.Write(buffer, 0, buffer.Length);
        }

        private void button5_Click(object sender, EventArgs e)
        {
            {
                if (stream != null)//¹Ø±ÕÁ¬½Ó,¹Ø±ÕÁ÷
                {
                    stream.Close();
                    tcpClient.Close();
                    socket_send.Close();
                }
                listBox1.Items.Add("ÒѾ­Í˳öÓÎÏ·");
            }
        }

Ë«»÷Í£Ö¹,½øÐб༭

private void button3_Click(object sender, EventArgs e)
        {
            player.Stop();
        }

½øÐÐͼÏñÌî³ä,ÒÀ¾ÉË«»÷

private void timer1_Tick(object sender, EventArgs e)
        {
            picture++;
            string picturePath = @"C:\\Users\\hp\source\\repos\\game\\game\\game\" + picture + ".jpg";
            //ÉèÖÃͼƬÌî³ä
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            pictureBox1.Image = Image.FromFile(picturePath);
            if (picture == 5)
                picture = 0;
        }

2,½á¹ûÈçÏÂ

ÓÉÓÚ30Ì«³¤,²»Ì«ÈÝÒ׿´µ½Ê±¼ä±ä»¯,ÎÒ¼ÆÁÊÇÉèÖõÄ1000,¼´1ÃëÖÓ»»Ò»ÕÅͼƬ

C#Á¬½ÓÓÎÏ·²¢²¥·ÅÒôÀÖ

3,ÍêÕû´úÂë

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
using System.Media;
using System.Threading;

namespace game
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private NetworkStream stream;
private TcpClient tcpClient;
SoundPlayer player = new SoundPlayer(¡°C:/Users/hp/Desktop/ÐíáÔ.wav¡±);
Socket socket_send;
private int picture = 0;

    private void button4_Click(object sender, EventArgs e)
    {
        tcpClient = new TcpClient();
        //Ì×½Ó×Ö½¨Á¢Á¬½Ó


        socket_send = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        IPEndPoint point = new IPEndPoint(IPAddress.Parse("10.1.230.74"), 3900);
        socket_send.Connect(point);
        try
        {
            //ÏòÖ¸¶¨µÄIPµØÖ·µÄ·þÎñÆ÷·¢ËÍÁ¬½ÓÇëÇó
            tcpClient.Connect("10.1.230.74", 3900);
            listBox1.Items.Add("Á¬½Ó³É¹¦");
            stream = tcpClient.GetStream();
            receive_stream();//½ÓÊÕ×Ö½ÚÁ÷²¢ÏÔʾÔÚÆÁÄ»ÉÏ

        }
        catch
        {
            listBox1.Items.Add("·þÎñÆ÷δÆô¶¯");
        }

    }
    private void button1_Click(object sender, EventArgs e)
    {
        if (tcpClient.Connected)
        {
            string action = textBox1.Text.ToString();
            listBox1.Items.Add("ÊäÈëµÄÐÅϢΪ:" + action);
            send_stream(action);
            receive_stream();

        }
        else
        {
            listBox1.Items.Add("Á¬½ÓÒѶϿª");
        }
    }
    private void music_play()
    {
        SoundPlayer sp = new SoundPlayer();
        sp.SoundLocation = @"ÐíáÔ.wav";       //ÄãµÄÒôÀÖÎļþÃû³Æ,ÇÒ×¢Òâ±ØÐëÊÇwavÎļþ
        sp.PlayLooping();
    }
    /*
    * ½«×Ö½ÚÁ÷ÓÃGBK¸ñʽ±àÂëÔÚlistboxÀïÏÔʾ
    */
    void receive_stream()
    {
        byte[] receive_data = new byte[1024];
        //¶¨Òå±àÂë¸ñʽ
        System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);//ΪʹÓÃGB2312×ö×¼±¸
        System.Text.Encoding GBK = System.Text.Encoding.GetEncoding("GBK");
        if (stream.CanRead)
        {

            int len = stream.Read(receive_data, 0, receive_data.Length);
            string msg = GBK.GetString(receive_data, 0, receive_data.Length);

            string str = "\r\n";
            char[] str1 = str.ToCharArray();
            //ÂÒÂ뼯ºÏ
            string[] messy_code = { "ÿ?ÿ?[2J ", "[5m", "[44m", "[37;0m", "[1;33m", "[1;32m", "[1;31m" };
            string[] msg1 = msg.Split(str1);//ÒÔ»»ÐзûΪ·Ö¸ô·û
            for (int j = 0; j < msg1.Length; j++)//ÖðÐÐÏÔʾ
            {
                //¹ýÂËÂÒÂë
                msg1[j] = msg1[j].Replace(messy_code[0], " ");
                msg1[j] = msg1[j].Replace(messy_code[1], " ");
                msg1[j] = msg1[j].Replace(messy_code[2], " ");
                msg1[j] = msg1[j].Replace(messy_code[3], " ");
                msg1[j] = msg1[j].Replace(messy_code[4], " ");
                msg1[j] = msg1[j].Replace(messy_code[5], " ");
                msg1[j] = msg1[j].Replace(messy_code[6], " ");
                listBox1.Items.Add(msg1[j]);
            }
        }
    }

    void send_stream(string str)
    {
        System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);//ΪʹÓÃGB2312×ö×¼±¸
        System.Text.Encoding GBK = System.Text.Encoding.GetEncoding("GBK");
        byte[] buffer = GBK.GetBytes(str + "\n");
        stream.Write(buffer, 0, buffer.Length);
    }

    private void button5_Click(object sender, EventArgs e)
    {
        {
            if (stream != null)//¹Ø±ÕÁ¬½Ó,¹Ø±ÕÁ÷
            {
                stream.Close();
                tcpClient.Close();
                socket_send.Close();
            }
            listBox1.Items.Add("ÒѾ­Í˳öÓÎÏ·");
        }
    }

    private void button2_Click(object sender, EventArgs e)
    {
        player.Load();
        player.Play();
    }

    private void button3_Click(object sender, EventArgs e)
    {
        player.Stop();
    }

    private void timer1_Tick(object sender, EventArgs e)
    {
        picture++;
        string picturePath = @"C:\\Users\\hp\source\\repos\\game\\game\\game\" + picture + ".jpg";
        //ÉèÖÃͼƬÌî³ä
        pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
        pictureBox1.Image = Image.FromFile(picturePath);
        if (picture == 5)
            picture = 0;
    }


}

}

4,×ܽá

ÀûÓÃc#д¿ÉÊÓ»¯½çÃæºÍQT²î²»¶à,¶¼ÊÇÍ϶¯×é¼þ,È»ºóд´úÂë,²»¹ý±ÈQTҪдµÄ¼òµ¥Ò»Ð©

5,²Î¿¼

C#±àдÓÎÏ·¿Í»§¶Ë

  ÏµÍ³ÔËά ×îÐÂÎÄÕÂ
ÅäÖÃСÐ͹«Ë¾ÍøÂçWLAN»ù±¾ÒµÎñ£¨ACͨ¹ýÈý²ã
ÈçºÎÔÚ½»¸¶ÔËά¹ý³ÌÖн¨Á¢·çÏÕµ×ÏßÒâʶ£¬Ìá
¿ìËÙ´«Êä´óÎļþ£¬Ôõôͨ¹ýÍøÂç´«´óÎļþ¸ø¶Ô
´ÓÓÎÏ··þÎñ¶Ë½Ç¶È·ÖÎöÒƶ¯Í¬²½£¨×´Ì¬Í¬²½£©
MySQLʹÓÃMyCatʵÏÖ·Ö¿â·Ö±í
ÈçºÎÓÃDWDMÉäƵ¹âÏ˼¼ÊõʵÏÖ200¹«ÀïÍâµÄÕ¾µã
¹úÄÚ˳³©ÏÂÔØk8s.gcr.ioµÄ¾µÏñ
×Ô¶¯»¯²âÊÔappium
ctfshow ssrf
Linux²Ù×÷ϵͳѧϰ֮ʵÓÃÖ¸ÁCentos7/8¾ù
ÉÏһƪÎÄÕ      ÏÂһƪÎÄÕ      ²é¿´ËùÓÐÎÄÕÂ
¼Ó:2021-11-28 11:39:26  ¸ü:2021-11-28 11:40:48 
 
¿ª·¢: C++֪ʶ¿â Java֪ʶ¿â JavaScript Python PHP֪ʶ¿â È˹¤ÖÇÄÜ Çø¿éÁ´ ´óÊý¾Ý Òƶ¯¿ª·¢ ǶÈëʽ ¿ª·¢¹¤¾ß Êý¾Ý½á¹¹ÓëËã·¨ ¿ª·¢²âÊÔ ÓÎÏ·¿ª·¢ ÍøÂçЭÒé ϵͳÔËά
½Ì³Ì: HTML½Ì³Ì CSS½Ì³Ì JavaScript½Ì³Ì GoÓïÑÔ½Ì³Ì JQuery½Ì³Ì VUE½Ì³Ì VUE3½Ì³Ì Bootstrap½Ì³Ì SQLÊý¾Ý¿â½Ì³Ì CÓïÑÔ½Ì³Ì C++½Ì³Ì Java½Ì³Ì Python½Ì³Ì Python3½Ì³Ì C#½Ì³Ì
ÊýÂë: µçÄÔ ±Ê¼Ç±¾ ÏÔ¿¨ ÏÔʾÆ÷ ¹Ì̬ӲÅÌ Ó²ÅÌ ¶ú»ú ÊÖ»ú iphone vivo oppo СÃ× »ªÎª µ¥·´ ×°»ú ͼÀ­¶¡

360ͼÊé¹Ý ¹ºÎï Èý·á¿Æ¼¼ ÔĶÁÍø ÈÕÀú ÍòÄêÀú 2024Äê11ÈÕÀú -2024/11/16 2:23:39-

ͼƬ×Ô¶¯²¥·ÅÆ÷
¡ýͼƬ×Ô¶¯²¥·ÅÆ÷¡ý
TxTС˵ÔĶÁÆ÷
¡ýÓïÒôÔĶÁ,С˵ÏÂÔØ,¹ÅµäÎÄѧ¡ý
Ò»¼üÇå³ýÀ¬»ø
¡ýÇáÇáÒ»µã,Çå³ýϵͳÀ¬»ø¡ý
ͼƬÅúÁ¿ÏÂÔØÆ÷
¡ýÅúÁ¿ÏÂÔØͼƬ,ÃÀŮͼ¿â¡ý
  ÍøÕ¾ÁªÏµ: qq:121756557 email:121756557@qq.com  ITÊýÂë