-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 1.1 🚀
- Loading branch information
Showing
27 changed files
with
539 additions
and
299 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
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,46 @@ | ||
| ||
namespace WhoYouCalling | ||
{ | ||
static class Constants | ||
{ | ||
public const uint QueryInformation = 0x00000400; | ||
public const uint LogonFlags = 0; | ||
public const uint CreationFlags = 0; | ||
|
||
public const Int32 ImpersonationSecurity = 2; | ||
public const Int32 TokenDuplicate = 2; | ||
public const Int32 TokenQuery = 8; | ||
public const Int32 TokenAssignPrimary = 1; | ||
public const Int32 TokenAdjustDefault = 0x80; | ||
public const Int32 TokenAdjustSessionID= 0x100; | ||
|
||
public const Int32 PacketCaptureTimeoutMilliseconds = 1000; | ||
|
||
public const Int32 ETWSubscriptionTimingTime = 3000; | ||
|
||
public const Int32 CombinedFilterProcessID = 0; | ||
|
||
|
||
// File names | ||
//// Root folder | ||
public const string RootFolderEntirePcapFileName = "Full network packet capture.pcap"; | ||
public const string RootFolderAllProcessesFilteredPcapFileName = "All processes network packets.pcap"; | ||
public const string RootFolderDFLFilterFileName = "All processes wireshark filter.txt"; | ||
public const string RootFolderBPFFilterFileName = "All processes BPF-filter.txt"; | ||
public const string RootFolderETWHistoryFileName = "ETW history.txt"; | ||
public const string RootFolderJSONProcessDetailsFileName = "Process details.json"; | ||
public const string RootFolderJSONDNSResponseFileName = "DNS responses.json"; | ||
|
||
//// Per Process | ||
public const string ProcessFolderPcapFileName = "Network packets.pcap"; | ||
public const string ProcessFolderBPFFilterFileName = "BPF-filter.txt"; | ||
public const string ProcessFolderDFLFilterFileName = "Wireshark filter.txt"; | ||
public const string ProcessFolderDNSQueriesFileName = "DNS queries.txt"; | ||
public const string ProcessFolderIPv4TCPEndpoints = "IPv4 TCP Endpoints.txt"; | ||
public const string ProcessFolderIPv6TCPEndpoints = "IPv6 TCP Endpoints.txt"; | ||
public const string ProcessFolderIPv4UDPEndpoints = "IPv4 UDP Endpoints.txt"; | ||
public const string ProcessFolderIPv6UDPEndpoints = "IPv6 UDP Endpoints.txt"; | ||
public const string ProcessFolderIPv4LocalhostEndpoints = "Localhost Endpoints.txt"; | ||
public const string ProcessFolderIPv6LocalhostEndpoints = "Localhost Endpoints IPv6.txt"; | ||
} | ||
} |
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
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,50 @@ | ||
| ||
namespace WhoYouCalling.Network.DNS | ||
{ | ||
public enum DnsStatusType : int | ||
{ | ||
// Official DNS standard types | ||
NoError = 0, | ||
FormErr = 1, | ||
ServFail = 2, | ||
NXDomain = 3, | ||
NotImp = 4, | ||
Refused = 5, | ||
YXDomain = 6, | ||
YXRRSet = 7, | ||
NXRRSet = 8, | ||
NotAuth = 9, | ||
NotZone = 10, | ||
BADVERS = 16, | ||
BADKEY = 17, | ||
BADTIME = 18, | ||
BADMODE = 19, | ||
BADNAME = 20, | ||
BADALG = 21, | ||
BADTRUNC = 22, | ||
BADCOOKIE = 23, | ||
|
||
// Custom Windows types | ||
InvalidParameter = 87, | ||
DnsServerUnableToInterpretFormat = 9001, | ||
DnsServerFailure = 9002, | ||
DnsNameDoesNotExist = 9003, | ||
DnsRequestNotSupportedByNameServer = 9004, | ||
DnsOperationRefused = 9005, | ||
DnsNameThatOughtNotExistDoesExist = 9006, | ||
DnsRRSetThatOughtNotExistDoesExist = 9007, | ||
DnsRRSetThatOughtToExistDoesNotExist = 9008, | ||
DnsServerNotAuthoritativeForZone = 9009, | ||
DnsNameInUpdateOrPrereqIsNotInZone = 9010, | ||
DnsSignatureFailedToVerify = 9016, | ||
DnsBadKey = 9017, | ||
DnsSignatureValidityExpired = 9018, | ||
NoRecordsFoundForGivenDnsQuery = 9501, | ||
BadDnsPacket = 9502, | ||
NoDnsPacket = 9503, | ||
UnsecuredDnsPacket = 9505, | ||
|
||
// Custom value for non-existent DNS status | ||
NA = 999999 | ||
} | ||
} |
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,57 @@ | ||
| ||
namespace WhoYouCalling.Network.DNS | ||
{ | ||
public enum DnsType : int | ||
{ | ||
A = 1, // Address record | ||
NS = 2, // Name server record | ||
CNAME = 5, // Canonical name record | ||
SOA = 6, // Start of authority record | ||
PTR = 12, // Pointer record (reverse DNS) | ||
MX = 15, // Mail exchange record | ||
TXT = 16, // Text record | ||
AAAA = 28, // IPv6 address record | ||
SRV = 33, // Service locator | ||
ANY = 255, // Any type (wildcard) | ||
RP = 17, // Responsible person | ||
AFSDB = 18, // AFS database record | ||
LOC = 29, // Location record | ||
NAPTR = 35, // Naming authority pointer | ||
KX = 36, // Key exchange | ||
CERT = 37, // Certificate record | ||
DNAME = 39, // Delegation name | ||
OPT = 41, // Option record | ||
APL = 42, // Address prefix list | ||
DS = 43, // Delegation signer | ||
SSHFP = 44, // SSH fingerprint | ||
IPSECKEY = 45, // IPSEC key | ||
RRSIG = 46, // Resource record signature | ||
NSEC = 47, // Next secure record | ||
DNSKEY = 48, // DNS key | ||
DHCID = 49, // DHCP identifier | ||
NSEC3 = 50, // Next secure record version 3 | ||
NSEC3PARAM = 51, // NSEC3 parameters | ||
TLSA = 52, // TLSA record | ||
SMIMEA = 53, // S/MIME cert association | ||
HIP = 55, // Host identity protocol | ||
CDS = 59, // Child DS | ||
CDNSKEY = 60, // Child DNSKEY | ||
OPENPGPKEY = 61, // OpenPGP key record | ||
CSYNC = 62, // Child-to-parent synchronization | ||
ZONEMD = 63, // Message digest for DNS zone | ||
SVCB = 64, // Service binding | ||
HTTPS = 65, // HTTPS binding | ||
TKEY = 249, // Transaction key | ||
TSIG = 250, // Transaction signature | ||
IXFR = 251, // Incremental zone transfer | ||
AXFR = 252, // Authoritative zone transfer | ||
URI = 256, // URI record | ||
CAA = 257, // Certification authority authorization | ||
AVC = 258, // Application visibility and control | ||
AMTRELAY = 260, // Automatic multicast tunneling relay | ||
TA = 32768, // DNSSEC Trust Authorities | ||
DLV = 32769, // DNSSEC Lookaside Validation | ||
|
||
NA = 999999 // Custom Non-existent DNS Type Value | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 2 additions & 7 deletions
9
WhoYouCalling/Utilities/PrintType.cs → WhoYouCalling/Enums/PrintType.cs
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,23 @@ | ||
| ||
namespace WhoYouCalling.Network.DNS | ||
{ | ||
public static class DnsCodeLookup | ||
{ | ||
public static string GetDnsStatusName(int statusCode) | ||
{ | ||
if (Enum.IsDefined(typeof(DnsStatusType), statusCode)) | ||
{ | ||
return ((DnsStatusType)statusCode).ToString(); | ||
} | ||
return DnsStatusType.NA.ToString(); | ||
} | ||
public static string GetDnsTypeName(int statusCode) | ||
{ | ||
if (Enum.IsDefined(typeof(DnsType), statusCode)) | ||
{ | ||
return ((DnsType)statusCode).ToString(); | ||
} | ||
return DnsType.NA.ToString(); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.