Skip to content

Commit a9837ab

Browse files
committed
Default custom command added
1 parent 8fa653c commit a9837ab

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Source/NETworkManager/GlobalStaticConfiguration.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using NETworkManager.Utilities;
1111
using NETworkManager.Enum;
1212
using NETworkManager.Models.RemoteDesktop;
13+
using System.Collections.ObjectModel;
1314

1415
// ReSharper disable InconsistentNaming
1516

@@ -59,6 +60,12 @@ public class GlobalStaticConfiguration
5960
public static int IPScanner_ICMPTimeout => 4000;
6061
public static ExportManager.ExportFileType IPScanner_ExportFileType => ExportManager.ExportFileType.CSV;
6162

63+
public static ObservableCollection<CustomCommandInfo> IPScanner_CustomCommands => new ObservableCollection<CustomCommandInfo>
64+
{
65+
new CustomCommandInfo(Guid.NewGuid(), "Internet Explorer", "iexplore.exe", "http://$$ipaddress$$/"),
66+
new CustomCommandInfo(Guid.NewGuid(), "Internet Explorer (https)", "iexplore.exe", "https://$$ipaddress$$/"),
67+
};
68+
6269
// Application: Port Scanner
6370
public static int PortScanner_HostThreads => 5;
6471
public static int PortScanner_PortThreds => 100;
@@ -90,16 +97,16 @@ public class GlobalStaticConfiguration
9097
// Application: RemoteDesktop
9198
public static int RemoteDesktop_ScreenWidth => 1280;
9299
public static int RemoteDesktop_ScreenHeight => 768;
93-
100+
94101
public static int RemoteDesktop_ColorDepth = 32;
95102
public static int RemoteDesktop_Port => 3389;
96103
public static RemoteDesktop.AudioRedirectionMode RemoteDesktop_AudioRedirectionMode => RemoteDesktop.AudioRedirectionMode.PlayOnThisComputer;
97104
public static RemoteDesktop.AudioCaptureRedirectionMode RemoteDesktop_AudioCaptureRedirectionMode => RemoteDesktop.AudioCaptureRedirectionMode.DoNotRecord;
98105
public static RemoteDesktop.KeyboardHookMode RemoteDesktop_KeyboardHookMode => RemoteDesktop.KeyboardHookMode.OnTheRemoteComputer;
99106
public static uint RemoteDesktop_AuthenticationLevel => 2;
100-
107+
101108
public static RemoteDesktop.NetworkConnectionType RemoteDesktop_NetworkConnectionType => RemoteDesktop.NetworkConnectionType.DetectAutomatically;
102-
109+
103110
// Application: PowerShell
104111
public static string PowerShell_ApplicationFileLocationPowerShell => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), @"System32\WindowsPowerShell\v1.0\powershell.exe");
105112
public static PowerShell.ExecutionPolicy PowerShell_ExecutionPolicy => PowerShell.ExecutionPolicy.RemoteSigned;
@@ -154,5 +161,6 @@ public class GlobalStaticConfiguration
154161
// Application: ARP Table
155162
public static ExportManager.ExportFileType ARPTable_ExportFileType => ExportManager.ExportFileType.CSV;
156163
public static AutoRefreshTimeInfo ARPTable_AutoRefreshTime => AutoRefreshTime.Defaults.First(x => x.Value == 30 && x.TimeUnit == TimeUnit.Second);
164+
157165
}
158166
}

Source/NETworkManager/Models/Settings/SettingsInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ public int IPScanner_ICMPTimeout
752752
}
753753
}
754754

755-
private ObservableCollection<CustomCommandInfo> _ipScanner_CustomCommands = new ObservableCollection<CustomCommandInfo>();
755+
private ObservableCollection<CustomCommandInfo> _ipScanner_CustomCommands = GlobalStaticConfiguration.IPScanner_CustomCommands;
756756
public ObservableCollection<CustomCommandInfo> IPScanner_CustomCommands
757757
{
758758
get => _ipScanner_CustomCommands;

0 commit comments

Comments
 (0)