Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
37efa65
Refactor: Remote Desktop: Shared control for the credentials of profi…
BornToBeRoot Nov 1, 2026
39e21db
Feature: IP Scanner: Windows credentials in profiles and groups (W2)
BornToBeRoot Nov 1, 2026
0a82f28
Feature: IP Scanner: Read the SMB / NTLM information of a host withou…
BornToBeRoot Nov 1, 2026
e467908
Feature: IP Scanner: Read the Windows host information with the NetAp…
BornToBeRoot Nov 1, 2026
616ae46
Feature: IP Scanner: Read Windows host information in the scan (W3c)
BornToBeRoot Nov 1, 2026
f1c286d
Feature: IP Scanner: Show the Windows host information in the result …
BornToBeRoot Nov 1, 2026
71cd23d
Fix: IP Scanner: NetApi requests could connect to another computer wi…
BornToBeRoot Nov 1, 2026
7a108ae
Fix: IP Scanner: Limit of the blocked NetApi calls per scan instead o…
BornToBeRoot Nov 1, 2026
668d077
Fix: IP Scanner: Logon failure message of a rescan counted all rows (…
BornToBeRoot Nov 1, 2026
b7ae9ee
Fix: IP Scanner: Any error of the Windows logon was shown as wrong pa…
BornToBeRoot Nov 1, 2026
2c3ffb4
Fix: IP Scanner: Unknown server build shown as a client release (revi…
BornToBeRoot Nov 1, 2026
11d77fc
Fix: IP Scanner: Search didn't find the Windows version number (revie…
BornToBeRoot Nov 1, 2026
d1e9ab3
Fix: IP Scanner: Time offset of the NTLM timestamp used the round tri…
BornToBeRoot Nov 1, 2026
104e6d5
Refactor: IP Scanner: Check once per scan if the port scan checks SMB…
BornToBeRoot Nov 1, 2026
00b26e8
Fix: IP Scanner: A wrong password of the Windows credentials could lo…
BornToBeRoot Nov 1, 2026
7b5c1b2
IP Scanner: Windows host information after the ports (O1)
BornToBeRoot Nov 1, 2026
98e3382
Fix: IP Scanner: User of the Windows credentials appended outside the…
BornToBeRoot Nov 1, 2026
ede0747
Feature: IP Scanner: Windows credentials of a tab and Scan as... (S2)
BornToBeRoot Nov 1, 2026
914e650
Docs: IP Scanner: Warning that every host with SMB receives a logon (S1)
BornToBeRoot Nov 1, 2026
4a67f15
Fix: IP Scanner: Windows values exported as text instead of number / …
BornToBeRoot Nov 1, 2026
c2f0101
Fix: IP Scanner: SMB request threw an exception for every host withou…
BornToBeRoot Nov 1, 2026
455ecab
IP Scanner: SMB signing in its own row of the row details (U1)
BornToBeRoot Nov 1, 2026
b005268
Fix: IP Scanner: Windows credentials / Scan as dialog cut off on the …
BornToBeRoot Nov 1, 2026
2a8e972
IP Scanner: Ping status and NetBIOS reachable only in the row details…
BornToBeRoot Nov 1, 2026
27d19b3
Fix: IP Scanner: Labels of the Windows credentials in the profile / g…
BornToBeRoot Nov 1, 2026
f451ff2
IP Scanner: Windows version and OS guess in one OS column (K2)
BornToBeRoot Nov 1, 2026
4b1d2da
IP Scanner: Credentials section in the options menu (S2c)
BornToBeRoot Nov 1, 2026
7f5373b
IP Scanner: Open ports as text instead of the port status icon (K3)
BornToBeRoot Nov 1, 2026
20a6d8f
Refactor: IP Scanner: Remove the unused ping / NetBIOS tooltips (K1b)
BornToBeRoot Nov 1, 2026
5ca591a
IP Scanner: Domain column also with the NetBIOS workgroup (K4)
BornToBeRoot Nov 1, 2026
e6afd90
Docs: IP Scanner: Export columns of the Windows host information (D1)
BornToBeRoot Nov 1, 2026
1d478c5
Refactor: One helper to remove control characters of network values (R1)
BornToBeRoot Nov 5, 2026
371c699
Fix: IP Scanner: A host with guest access could accept a wrong Window…
BornToBeRoot Nov 5, 2026
c7ae0fe
Fix: IP Scanner: Hosts not tried while the Windows credentials were c…
BornToBeRoot Nov 5, 2026
58ae4cb
IP Scanner: Copy menu with the OS, Open ports and Domain columns (G4)
BornToBeRoot Nov 5, 2026
ae0f95f
Docs: IP Scanner: Changelog with the five columns of the row details …
BornToBeRoot Nov 5, 2026
1b03cca
Fix: Profiles: Invalid username / domain of the credentials could be …
BornToBeRoot Nov 5, 2026
3bdbce3
Fix: IP Scanner: Next host checked the Windows credentials while a ti…
BornToBeRoot Nov 5, 2026
d845009
Fix: IP Scanner: Windows credentials without domain were rejected onl…
BornToBeRoot Nov 5, 2026
9b9abc0
Fix: IP Scanner: Windows logon always failed with "DOMAIN\user" and a…
BornToBeRoot Nov 5, 2026
0b2d74d
Fix: IP Scanner: A slow remote registry discarded the Windows values …
BornToBeRoot Nov 5, 2026
1e405ba
Fix: IP Scanner: OS column sorted by the TTL guess also if it was dis…
BornToBeRoot Nov 5, 2026
5c563c4
IP Scanner: Windows host information starts after the port scan inste…
BornToBeRoot Nov 5, 2026
95610b5
Refactor: IP Scanner: Helpers for the Win32 error and the logon error…
BornToBeRoot Nov 5, 2026
f4058a9
IP Scanner: Unchanged Windows credentials keep their profile / group …
BornToBeRoot Nov 5, 2026
ac0dbed
IP Scanner: Windows credentials in the options only with Read Windows…
BornToBeRoot Nov 5, 2026
f42d258
Refactor: IP Scanner: Dispose the copies of the Windows password of a…
BornToBeRoot Nov 5, 2026
b8fadb8
Fix: IP Scanner: Lockout protection of the Windows credentials starte…
BornToBeRoot Nov 5, 2026
5db8209
Fix: IP Scanner: Rejected Windows credentials were still used for wor…
BornToBeRoot Nov 5, 2026
54d325d
Fix: IP Scanner: Line breaks of the Windows computer description were…
BornToBeRoot Nov 5, 2026
2fa0907
Fix: IP Scanner: Sort key of the OS column not updated after the ping…
BornToBeRoot Nov 5, 2026
ec265ff
IP Scanner: Unknown Windows build without role not named Windows 11 (I7)
BornToBeRoot Nov 5, 2026
ceaae2d
Refactor: Profiles: One helper to track the invalid input of the cred…
BornToBeRoot Nov 5, 2026
94275a6
Fix: IP Scanner: Accepted Windows credentials were not checked again …
BornToBeRoot Nov 5, 2026
f7b8dce
Fix: IP Scanner: Workgroup computers skipped after a rejection by the…
BornToBeRoot Nov 5, 2026
53e379e
Fix: IP Scanner: Repeated scan could start while the Windows credenti…
BornToBeRoot Nov 5, 2026
3e52479
Fix: IP Scanner: Copy > OS / Time offset copied "-/-" without a value…
BornToBeRoot Nov 5, 2026
cfd2f99
Fix: Profiles: Passwords of the credentials decrypted to check if the…
BornToBeRoot Nov 5, 2026
ac9f401
Refactor: IP Scanner: Remove WindowsHostInfo.IsLogonFailure (J6)
BornToBeRoot Nov 5, 2026
bded95c
Refactor: IP Scanner: Compute the open ports and the Windows version …
BornToBeRoot Nov 5, 2026
abcbd9d
Refactor: IP Scanner: Report the NetApi result to the lockout protect…
BornToBeRoot Nov 5, 2026
9550989
Docs: IP Scanner: PR number in the changelog of the Windows host info…
BornToBeRoot Nov 6, 2026
2cd052e
Fix: IP Scanner: Hosts without NTLM names bypassed the lockout protec…
BornToBeRoot Nov 7, 2026
165e090
Fix: IP Scanner: Successes outside the domain accepted unchecked Wind…
BornToBeRoot Nov 7, 2026
c016684
Fix: IP Scanner: Unknown NetApi errors let every host try the Windows…
BornToBeRoot Nov 7, 2026
b3b3dc7
IP Scanner: Max. logon failures of the Windows credentials as setting…
BornToBeRoot Nov 7, 2026
ba2b139
Fix: IP Scanner: Logon restrictions rejected correct Windows credenti…
BornToBeRoot Nov 7, 2026
d5a88d3
Fix: IP Scanner: No message if the Windows credentials were rejected …
BornToBeRoot Nov 7, 2026
01878b9
Fix: IP Scanner: Local account "." logged on unchecked without the co…
BornToBeRoot Nov 7, 2026
2a06d27
Fix: IP Scanner: Rescan read the Windows host information after it wa…
BornToBeRoot Nov 7, 2026
fa97586
IP Scanner: Scan as... only with Read Windows host information (K9)
BornToBeRoot Nov 7, 2026
e95f40b
IP Scanner: Beta label for Read Windows host information (K10)
BornToBeRoot Nov 7, 2026
e86a458
Refactor: IP Scanner: Wrap the summary of the lockout protection (K5)
BornToBeRoot Nov 7, 2026
b377e1c
IP Scanner: Log of the lockout protection of the Windows credentials …
BornToBeRoot Nov 7, 2026
3b2573c
Fix: IP Scanner: Host skipped after its own logon failure showed "rej…
BornToBeRoot Nov 7, 2026
2f4c389
Docs: IP Scanner: Windows host information after the review of the lo…
BornToBeRoot Nov 7, 2026
0aaacff
Docs: FAQ: Windows account lockout protection of the IP Scanner (K14)
BornToBeRoot Nov 7, 2026
6d5f737
Fix: IP Scanner: Hosts that are not gated could send the Windows cred…
BornToBeRoot Nov 7, 2026
311badc
Fix: IP Scanner: Lockout protection of the Windows credentials only p…
BornToBeRoot Nov 7, 2026
c91877c
Fix: IP Scanner: Samba / NAS members of the domain accepted unchecked…
BornToBeRoot Nov 7, 2026
d8f15ba
Fix: IP Scanner: ERROR_GEN_FAILURE of a host let the next host try th…
BornToBeRoot Nov 7, 2026
0adb1f9
Fix: IP Scanner: No stop after the Windows credentials were accepted …
BornToBeRoot Nov 7, 2026
bf45d8e
Docs: FAQ: A spoofed accept of the Windows credentials is stopped by …
BornToBeRoot Nov 7, 2026
ca06d24
Refactor: Reusable TagTextBlock style for the Beta label and the ICMP…
BornToBeRoot Nov 7, 2026
b409747
Fix: IP Scanner: Beta label not centered next to Read Windows host in…
BornToBeRoot Nov 7, 2026
c7eead4
Settings: Remove the Experimental features setting (K23)
BornToBeRoot Nov 7, 2026
39bfcf1
Fix: IP Scanner: An exception of the NetApi call rejected correct Win…
BornToBeRoot Nov 7, 2026
626da9c
Fix: IP Scanner: "Logon failed" message after a scan without Windows …
BornToBeRoot Nov 7, 2026
2b43648
Fix: IP Scanner: OS column sorted by the untranslated name of the gue…
BornToBeRoot Nov 7, 2026
a021223
Refactor: IP Scanner: Logged-on users computed once per host (K27)
BornToBeRoot Nov 7, 2026
8f1e24a
Fix: IP Scanner: Password entered in the Windows credentials dialog n…
BornToBeRoot Nov 7, 2026
abcd5b5
Refactor: IP Scanner: Remove the Windows XP / Server 2003 names that …
BornToBeRoot Nov 7, 2026
ec04cf6
Refactor: IP Scanner: One method to open a tab for a profile, also fo…
BornToBeRoot Nov 7, 2026
eeb8fc2
Docs: Changelog 2023.11.28.0 linked to the removed Experimental featu…
BornToBeRoot Nov 7, 2026
e557547
Fix: IP Scanner: Windows credentials set after the tab was closed (K32)
BornToBeRoot Nov 7, 2026
fb84f3c
Fix: IP Scanner: Hosts of other domains could reject correct Windows …
BornToBeRoot Nov 7, 2026
ed1e6d1
Fix: IP Scanner: Windows credentials with another UPN suffix were nev…
BornToBeRoot Nov 7, 2026
59a04a9
Fix: IP Scanner: NetApi errors shown as "Unknown error" (K35)
BornToBeRoot Nov 7, 2026
fcedbf9
Feature: IP Scanner: Max. concurrent Windows host information threads…
BornToBeRoot Nov 7, 2026
db008be
Feature: IP Scanner: Windows 11 26H2 (build 26300) and 26H1 (build 28…
BornToBeRoot Nov 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions Source/NETworkManager.Converters/IPScannerOSToStringConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
using System;
using System.Globalization;
using System.Windows.Data;
using NETworkManager.Localization.Resources;
using NETworkManager.Models.Network;

namespace NETworkManager.Converters;

/// <summary>
/// Text and tooltip of the OS column of the IP Scanner: the Windows version if it was read (more precise), otherwise
/// the guess from the TTL of the ping reply (see <see cref="IPScannerOSGuessToStringConverter" />).
/// </summary>
public sealed class IPScannerOSToStringConverter : IMultiValueConverter
{
/// <summary>
/// Gets the text or tooltip of the OS column.
/// </summary>
/// <param name="values">
/// [0] <see cref="IPScannerOSGuess" />, [1] hops (<see cref="int" />), [2] the ping is running, [3] the guess was
/// enabled for the scan, [4] <see cref="WindowsHostInfo" /> (null if not read), [5] the Windows host information
/// is still read.
/// </param>
/// <param name="targetType"></param>
/// <param name="parameter">
/// "ToolTip" to get the tooltip (version of Windows, or the hops of the guess), "Copy" for the clipboard (empty
/// without value).
/// </param>
/// <param name="culture"></param>
/// <returns>Text ("..." while running, "-/-" without value) or tooltip (null without value).</returns>
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (values is not { Length: 6 })
return null;

var osGuess = values[3] is true && values[0] is IPScannerOSGuess value ? value : IPScannerOSGuess.None;
var hops = values[1] is int hopsValue ? hopsValue : 0;
var isPingPending = values[3] is true && values[2] is true;
var windows = values[4] as WindowsHostInfo;
var isWindowsPending = values[5] is true;

var isToolTip = parameter as string == "ToolTip";

if (!string.IsNullOrEmpty(windows?.OS))
{
if (!isToolTip)
return windows.OS;

// E.g. "Pro, 10.0.26200.6584"
return string.IsNullOrEmpty(windows.Edition)
? windows.Version?.ToString()
: $"{windows.Edition}, {windows.Version}";
}

if (osGuess != IPScannerOSGuess.None)
return isToolTip
? string.Format(Strings.OSGuessBasedOnTheTTLXHops, hops)
: IPScannerOSGuessToStringConverter.ToLocalizedString(osGuess);

if (isToolTip)
return null;

if (parameter as string == "Copy")
return string.Empty;

return isPingPending || isWindowsPending ? "..." : "-/-";
}

public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net.NetworkInformation;
using System.Windows.Data;
using NETworkManager.Localization;
using NETworkManager.Localization.Resources;
Expand All @@ -11,8 +10,8 @@
namespace NETworkManager.Converters;

/// <summary>
/// Convert a result of the IP Scanner to the tooltip of its status icon: ping status with time and TTL, open ports,
/// NetBIOS name and workgroup / domain - or whether the host answered a probe.
/// Convert a result of the IP Scanner to a tooltip: the open ports (Open ports column), or whether the host answered
/// a probe (status icons in the headers of the row details).
/// </summary>
public sealed class IPScannerStatusToolTipConverter : IValueConverter
{
Expand All @@ -25,8 +24,8 @@ public sealed class IPScannerStatusToolTipConverter : IValueConverter
/// Convert a result of the IP Scanner to the tooltip of its status icon.
/// </summary>
/// <param name="value">
/// <see cref="PingInfo" />, ports (<see cref="List{PortInfo}" />), <see cref="NetBIOSInfo" />, or the
/// <see cref="IPScannerDetectionMethod" /> of a host with the probe as <paramref name="parameter" />.
/// Ports (<see cref="List{PortInfo}" />), or the <see cref="IPScannerDetectionMethod" /> of a host with the probe
/// as <paramref name="parameter" />.
/// </param>
/// <param name="targetType"></param>
/// <param name="parameter">Probe as name of <see cref="IPScannerDetectionMethod" /> (e.g. "ICMP").</param>
Expand All @@ -36,18 +35,6 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
{
switch (value)
{
// Success (2 ms, TTL 64) / Timed out
case PingInfo pingInfo:
var status = ResourceTranslator.Translate(ResourceIdentifier.IPStatus, pingInfo.Status);

if (pingInfo.Status != IPStatus.Success)
return status;

var time = Models.Network.Ping.TimeToString(pingInfo.Status, pingInfo.Time);

// No TTL for IPv6
return pingInfo.TTL > 0 ? $"{status} ({time}, {Strings.TTL} {pingInfo.TTL})" : $"{status} ({time})";

// Open: 22 (ssh), 80 (http) / No open ports found! (closed or timed out - the ports that are not open may
// be hidden, see IPScanner.GetShownPorts)
case List<PortInfo> ports:
Expand All @@ -64,16 +51,6 @@ public object Convert(object value, Type targetType, object parameter, CultureIn

return $"{ResourceTranslator.Translate(ResourceIdentifier.PortState, PortState.Open)}: {list}";

// Yes (PC01, WORKGROUP) / No
case NetBIOSInfo netBIOSInfo:
if (!netBIOSInfo.IsReachable)
return Strings.No;

var names = new[] { netBIOSInfo.ComputerName, netBIOSInfo.GroupName }
.Where(x => !string.IsNullOrEmpty(x)).ToList();

return names.Count == 0 ? Strings.Yes : $"{Strings.Yes} ({string.Join(", ", names)})";

// Answered / No answer
case IPScannerDetectionMethod detectedBy:
return Enum.TryParse<IPScannerDetectionMethod>(parameter as string, out var method) &&
Expand Down
41 changes: 0 additions & 41 deletions Source/NETworkManager.Converters/PortOpenToStringConverter.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
using System;
using System.Globalization;
using System.Windows.Data;
using NETworkManager.Localization.Resources;
using NETworkManager.Models.Network;
using NETworkManager.Utilities;

namespace NETworkManager.Converters;

/// <summary>
/// Converts a value of the <see cref="WindowsHostInfo" /> of an IP Scanner host to a <see cref="string" /> for the
/// result and the row details, "-/-" if there is none. The value is selected with the converter parameter:
/// <c>OS</c>, <c>Edition</c>, <c>Version</c>, <c>Role</c>, <c>ComputerName</c>, <c>Domain</c>,
/// <c>Description</c>, <c>TimeOffset</c>, <c>Users</c> (one per line, the error if they could not be read),
/// <c>SMB</c> (dialect), <c>SMBSigning</c> (required / not required), <c>Error</c> (message of the NetApi error).
/// </summary>
public sealed class WindowsHostInfoToStringConverter : IValueConverter
{
/// <summary>
/// Text without a value: "-/-" (default), empty for Copy.
/// </summary>
public string NoValue { get; set; } = "-/-";

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var text = value is WindowsHostInfo info ? GetValue(info, parameter as string) : null;

return string.IsNullOrEmpty(text) ? NoValue : text;
}

/// <summary>
/// Gets a value of the Windows host information as text.
/// </summary>
/// <param name="info">Windows host information.</param>
/// <param name="name">Name of the value, see <see cref="WindowsHostInfoToStringConverter" />.</param>
/// <returns>Value, empty if there is none.</returns>
public static string GetValue(WindowsHostInfo info, string name)
{
return name switch
{
"OS" => info.OS,
"Edition" => info.Edition,
"Version" => info.Version?.ToString(),
"Role" => RoleToLocalizedString(info.Role),
"ComputerName" => info.ComputerName,
"Domain" => info.Domain,
"Description" => info.Description,
"TimeOffset" => info.TimeOffset is { } offset ? DateTimeHelper.TimeSpanToOffsetString(offset) : null,
"Users" => info.Users != null
? string.Join(Environment.NewLine, info.Users)
: GetErrorMessage(info.UsersError),
"SMB" => info.SMB?.Dialect,
"SMBSigning" => info.SMB == null
? null
: info.SMB.SigningRequired
? Strings.Required
: Strings.NotRequired,
"Error" => GetErrorMessage(info.Error),
_ => null
};
}

/// <summary>
/// Gets the message of an error of the NetApi requests (of Windows, or the credentials were not tried).
/// </summary>
private static string GetErrorMessage(int error)
{
return error switch
{
WindowsHostInfo.ErrorLogonSkipped => Strings.WindowsLogonSkippedMessage,
WindowsHostInfo.ErrorLogonNotChecked => Strings.WindowsLogonNotCheckedMessage,
_ => WindowsHostInfo.GetErrorMessage(error)
};
}

/// <summary>
/// Gets the translated role of a Windows host, empty if unknown.
/// </summary>
/// <param name="role">Role.</param>
/// <returns>Translated role.</returns>
public static string RoleToLocalizedString(WindowsHostRole role)
{
return role switch
{
WindowsHostRole.Workstation => Strings.Workstation,
WindowsHostRole.Server => Strings.Server,
WindowsHostRole.DomainController => Strings.DomainController,
_ => string.Empty
};
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
Loading
Loading