-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9303f7c
commit e3dac98
Showing
6 changed files
with
171 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Window x:Class="ARPSpoofing.Detail" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:ARPSpoofing" | ||
mc:Ignorable="d" | ||
Title="查看详情" Height="450" Width="800"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="50"></RowDefinition> | ||
<RowDefinition Height="*"></RowDefinition> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock Text="{Binding ArpAttackComputer.IPAddress,UpdateSourceTrigger=PropertyChanged}" FontSize="18" FontWeight="Bold" | ||
VerticalAlignment="Center" Margin="5"></TextBlock> | ||
|
||
<DataGrid ItemsSource="{Binding ArpAttackComputer.Packets,UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" AutoGenerateColumns="False"> | ||
<DataGrid.Columns> | ||
<DataGridTextColumn Header="类型" Binding="{Binding Type}" Width="*"></DataGridTextColumn> | ||
<DataGridTextColumn Header="源ip地址" Binding="{Binding SourceIpAddress}" Width="*"></DataGridTextColumn> | ||
<DataGridTextColumn Header="目的ip地址" Binding="{Binding TargetIpAddress}" Width="*"></DataGridTextColumn> | ||
<DataGridTextColumn Header="源端口" Binding="{Binding SourcePort}" Width="*"></DataGridTextColumn> | ||
<DataGridTextColumn Header="目的端口" Binding="{Binding TargetPort}" Width="*"></DataGridTextColumn> | ||
</DataGrid.Columns> | ||
</DataGrid> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Windows; | ||
|
||
namespace ARPSpoofing | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Detail.xaml | ||
/// </summary> | ||
public partial class Detail : Window | ||
{ | ||
public Detail(DetailViewModel detailViewModel) | ||
{ | ||
InitializeComponent(); | ||
DataContext = detailViewModel; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using CommunityToolkit.Mvvm.ComponentModel; | ||
|
||
namespace ARPSpoofing | ||
{ | ||
public class DetailViewModel : ObservableObject | ||
{ | ||
public ArpAttackComputer ArpAttackComputer { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters