Skip to content

Commit b087611

Browse files
committed
Show raw packets
1 parent 6047f52 commit b087611

2 files changed

Lines changed: 43 additions & 43 deletions

File tree

AdversaryLabSwift/Base.lproj/Main.storyboard

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,44 +1069,13 @@
10691069
<rect key="frame" x="-7" y="54" width="1211" height="638"/>
10701070
<font key="font" metaFont="system"/>
10711071
<tabViewItems>
1072-
<tabViewItem label="Data" identifier="DataMode" id="lzk-GG-MO3">
1073-
<view key="view" id="ksq-IL-4hz">
1074-
<rect key="frame" x="10" y="7" width="1191" height="600"/>
1075-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1076-
<subviews>
1077-
<customView translatesAutoresizingMaskIntoConstraints="NO" id="MmQ-Yo-R8n" customClass="LineChartView" customModule="Charts">
1078-
<rect key="frame" x="17" y="301" width="529" height="282"/>
1079-
</customView>
1080-
<customView translatesAutoresizingMaskIntoConstraints="NO" id="dYG-fi-xdx" customClass="LineChartView" customModule="Charts">
1081-
<rect key="frame" x="597" y="301" width="577" height="282"/>
1082-
</customView>
1083-
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Cwd-sz-D6E" customClass="LineChartView" customModule="Charts">
1084-
<rect key="frame" x="307" y="1" width="577" height="292"/>
1085-
</customView>
1086-
</subviews>
1087-
<constraints>
1088-
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="MmQ-Yo-R8n" secondAttribute="bottom" constant="8" symbolic="YES" id="4gs-MR-fpz"/>
1089-
<constraint firstItem="dYG-fi-xdx" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="597" id="5RV-md-yqw"/>
1090-
<constraint firstAttribute="bottom" secondItem="Cwd-sz-D6E" secondAttribute="bottom" constant="1" id="DIe-p4-NBi"/>
1091-
<constraint firstItem="dYG-fi-xdx" firstAttribute="leading" secondItem="MmQ-Yo-R8n" secondAttribute="trailing" constant="51" id="Ghs-at-oYh"/>
1092-
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="top" secondItem="dYG-fi-xdx" secondAttribute="top" id="NUr-sf-1C4"/>
1093-
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="dYG-fi-xdx" secondAttribute="bottom" constant="8" symbolic="YES" id="Nur-jB-PZS"/>
1094-
<constraint firstItem="Cwd-sz-D6E" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="307" id="SGJ-hG-aRD"/>
1095-
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="top" secondItem="ksq-IL-4hz" secondAttribute="top" constant="17" id="fv2-XE-Zuu"/>
1096-
<constraint firstAttribute="trailing" secondItem="dYG-fi-xdx" secondAttribute="trailing" constant="17" id="mrc-YW-qJD"/>
1097-
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="17" id="q7E-5R-zFl"/>
1098-
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="ksq-IL-4hz" secondAttribute="top" constant="307" id="r3E-F7-rBY"/>
1099-
<constraint firstItem="Cwd-sz-D6E" firstAttribute="centerX" secondItem="ksq-IL-4hz" secondAttribute="centerX" id="uGg-t0-51k"/>
1100-
</constraints>
1101-
</view>
1102-
</tabViewItem>
11031072
<tabViewItem label="Training" identifier="TrainingMode" id="Rlt-zU-eIh">
11041073
<view key="view" id="nkb-dB-4xB">
1105-
<rect key="frame" x="10" y="7" width="1192" height="600"/>
1074+
<rect key="frame" x="10" y="7" width="1191" height="600"/>
11061075
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
11071076
<subviews>
11081077
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="5" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="xjj-d9-0zI" userLabel="Float Stack View">
1109-
<rect key="frame" x="19" y="65" width="413" height="185"/>
1078+
<rect key="frame" x="19" y="65" width="412" height="185"/>
11101079
<subviews>
11111080
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gua-Ec-IdB">
11121081
<rect key="frame" x="-2" y="166" width="148" height="19"/>
@@ -2460,7 +2429,7 @@
24602429
</customSpacing>
24612430
</stackView>
24622431
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="3" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pDg-QR-5Xz" userLabel="Offset Stack View">
2463-
<rect key="frame" x="456" y="25" width="369" height="225"/>
2432+
<rect key="frame" x="455" y="25" width="369" height="225"/>
24642433
<subviews>
24652434
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Tei-Ib-ZQM">
24662435
<rect key="frame" x="-2" y="206" width="135" height="19"/>
@@ -3631,7 +3600,7 @@
36313600
</tabViewItem>
36323601
<tabViewItem label="Testing" identifier="TestMode" id="PfJ-vd-mAh">
36333602
<view key="view" id="8hf-BJ-0zt">
3634-
<rect key="frame" x="10" y="7" width="1192" height="600"/>
3603+
<rect key="frame" x="10" y="7" width="1191" height="600"/>
36353604
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
36363605
<subviews>
36373606
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="AJV-pc-gSa">
@@ -5644,6 +5613,37 @@
56445613
</constraints>
56455614
</view>
56465615
</tabViewItem>
5616+
<tabViewItem label="Data" identifier="DataMode" id="lzk-GG-MO3">
5617+
<view key="view" id="ksq-IL-4hz">
5618+
<rect key="frame" x="10" y="7" width="1191" height="600"/>
5619+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
5620+
<subviews>
5621+
<customView translatesAutoresizingMaskIntoConstraints="NO" id="MmQ-Yo-R8n" customClass="LineChartView" customModule="Charts">
5622+
<rect key="frame" x="17" y="301" width="529" height="282"/>
5623+
</customView>
5624+
<customView translatesAutoresizingMaskIntoConstraints="NO" id="dYG-fi-xdx" customClass="LineChartView" customModule="Charts">
5625+
<rect key="frame" x="597" y="301" width="577" height="282"/>
5626+
</customView>
5627+
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Cwd-sz-D6E" customClass="LineChartView" customModule="Charts">
5628+
<rect key="frame" x="307" y="1" width="577" height="292"/>
5629+
</customView>
5630+
</subviews>
5631+
<constraints>
5632+
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="MmQ-Yo-R8n" secondAttribute="bottom" constant="8" symbolic="YES" id="4gs-MR-fpz"/>
5633+
<constraint firstItem="dYG-fi-xdx" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="597" id="5RV-md-yqw"/>
5634+
<constraint firstAttribute="bottom" secondItem="Cwd-sz-D6E" secondAttribute="bottom" constant="1" id="DIe-p4-NBi"/>
5635+
<constraint firstItem="dYG-fi-xdx" firstAttribute="leading" secondItem="MmQ-Yo-R8n" secondAttribute="trailing" constant="51" id="Ghs-at-oYh"/>
5636+
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="top" secondItem="dYG-fi-xdx" secondAttribute="top" id="NUr-sf-1C4"/>
5637+
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="dYG-fi-xdx" secondAttribute="bottom" constant="8" symbolic="YES" id="Nur-jB-PZS"/>
5638+
<constraint firstItem="Cwd-sz-D6E" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="307" id="SGJ-hG-aRD"/>
5639+
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="top" secondItem="ksq-IL-4hz" secondAttribute="top" constant="17" id="fv2-XE-Zuu"/>
5640+
<constraint firstAttribute="trailing" secondItem="dYG-fi-xdx" secondAttribute="trailing" constant="17" id="mrc-YW-qJD"/>
5641+
<constraint firstItem="MmQ-Yo-R8n" firstAttribute="leading" secondItem="ksq-IL-4hz" secondAttribute="leading" constant="17" id="q7E-5R-zFl"/>
5642+
<constraint firstItem="Cwd-sz-D6E" firstAttribute="top" secondItem="ksq-IL-4hz" secondAttribute="top" constant="307" id="r3E-F7-rBY"/>
5643+
<constraint firstItem="Cwd-sz-D6E" firstAttribute="centerX" secondItem="ksq-IL-4hz" secondAttribute="centerX" id="uGg-t0-51k"/>
5644+
</constraints>
5645+
</view>
5646+
</tabViewItem>
56475647
</tabViewItems>
56485648
<connections>
56495649
<outlet property="delegate" destination="XfG-lQ-9wD" id="CMl-0p-sRS"/>

AdversaryLabSwift/ViewController.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ class ViewController: NSViewController, NSTabViewDelegate, ChartViewDelegate
2929
}
3030

3131
@objc dynamic var aConnectionsCountLabel = "Connections"
32-
@objc dynamic var allowedPacketsSeen = "Loading..."
32+
@objc dynamic var allowedPacketsSeen = "--"
3333
@objc dynamic var aConnectionsAnalyzedLabel = "Connections Analyzed"
34-
@objc dynamic var allowedPacketsAnalyzed = "Loading..."
34+
@objc dynamic var allowedPacketsAnalyzed = "--"
3535
@objc dynamic var bConnectionsCountLabel = "Connections"
36-
@objc dynamic var blockedPacketsSeen = "Loading..."
36+
@objc dynamic var blockedPacketsSeen = "--"
3737
@objc dynamic var bConnectionsAnalyzedLabel = "Connections Analyzed"
38-
@objc dynamic var blockedPacketsAnalyzed = "Loading..."
38+
@objc dynamic var blockedPacketsAnalyzed = "--"
3939

4040
@objc dynamic var aConnectionsOutgoingTitleLabel = "Transport A Outgoing Packets"
41-
@objc dynamic var aConnectionsOutgoingValueLabel = "Loading..."
41+
@objc dynamic var aConnectionsOutgoingValueLabel = "--"
4242
@objc dynamic var aConnectionsIncomingTitleLabel = "Transport A Incoming Packets"
43-
@objc dynamic var aConnectionsIncomingValueLabel = "Loading..."
43+
@objc dynamic var aConnectionsIncomingValueLabel = "--"
4444
@objc dynamic var bConnectionsOutgoingTitleLabel = "Transport B Outgoing Packets"
45-
@objc dynamic var bConnectionsOutgoingValueLabel = "Loading..."
45+
@objc dynamic var bConnectionsOutgoingValueLabel = "--"
4646
@objc dynamic var bConnectionsIncomingTitleLabel = "Transport B Incoming Packets"
47-
@objc dynamic var bConnectionsIncomingValueLabel = "Loading..."
47+
@objc dynamic var bConnectionsIncomingValueLabel = "--"
4848

4949
@objc dynamic var requiredTiming = "--"
5050
@objc dynamic var forbiddenTiming = "--"

0 commit comments

Comments
 (0)