想测试广播风暴状态,,但没发现手动发送广播的软件,自己弄了个,,几行代码的东西,, 用的是UDP,,广播地址255.255.255.255,,端口:12345,,广播内容是:Hello Word-52pj 广播风暴大概就是:网络存在环路,,然后正常情况交换机会把收到的广播发送给每个端口,因为环路导致交换机从环路中收到了自己刚才发送的广播包,再次分发给所以端口,一直循环,,,网络资源就用完了 如果网络卡死,,可以配合抓包工具,,用这个软件发送广播,尝试抓包分析 链接:https://pan.baidu.com/s/19qkmiAthxRdgpMNqNdveag 提取码:imm5 环路, 风暴
hacker1983 发表于 2024-5-28 11:04 跪求楼主公开源代码,可否? .NET 写的程序,dnspy随便看咯 using System; using System.ComponentModel; using System.Drawing; using System.Net; using System.Net.Sockets; using System.Text; using System.Windows.Forms; namespace guangbofasong { // Token: 0x02000002 RID: 2 public class Form1 : Form { // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250 public Form1() { this.InitializeComponent(); } // Token: 0x06000002 RID: 2 RVA: 0x00002060 File Offset: 0x00000260 private void button1_Click(object sender, EventArgs e) { IPAddress address = IPAddress.Parse("255.255.255.255"); int port = 12345; using (UdpClient udpClient = new UdpClient()) { IPEndPoint endPoint = new IPEndPoint(address, port); string s = "Hello Word-52pj"; byte[] bytes = Encoding.UTF8.GetBytes(s); try { udpClient.Send(bytes, bytes.Length, endPoint); MessageBox.Show("发送成功"); } catch { MessageBox.Show("Error" + e.ToString()); } } } // Token: 0x06000003 RID: 3 RVA: 0x000020FC File Offset: 0x000002FC protected override void Dispose(bool disposing) { if (disposing && this.components != null) { this.components.Dispose(); } base.Dispose(disposing); } // Token: 0x06000004 RID: 4 RVA: 0x0000211C File Offset: 0x0000031C private void InitializeComponent() { this.button1 = new Button(); base.SuspendLayout(); this.button1.Location = new Point(51, 34); this.button1.Name = "button1"; this.button1.Size = new Size(126, 42); this.button1.TabIndex = 0; this.button1.Text = "发送"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += this.button1_Click; base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(236, 119); base.Controls.Add(this.button1); base.Name = "Form1"; this.Text = "手动广播发送小软件(Port:12345;Message:Hello Word-52pj)"; base.ResumeLayout(false); } // Token: 0x04000001 RID: 1 private IContainer components; // Token: 0x04000002 RID: 2 private Button button1; } }