Commit 8ad304b
* chore: Update CheckPort to use ExecuteWithTimeout
* feat: getting started putting more ExecuteWithTimeouts around
* Correct ExecuteWithTimeout for simple Task functions
* fix: added timeout wrapper to ScanHttpEndpoint in ScanAsync to cover calls to PerformNtlmAuthenticationAsync
* feat: SHRegistry timeout and abstraction updates
* feat: SmbScanner.SendAndRecieveData timeout
* chore: move ExecuteWithTimeout functions to new class
* chore: Fix DCRegistryProcessor, add more tests for ExecuteWithTimeout
* chore: But this time actually add more tests for ExecuteWithTimeout
* feat: Add new parent token cancelled result to ExecuteWithTimeout, appropriate unit tests
* feat: add timeout to LdapUtils.GetDomain, lots of async plumbing
* feat: add timeout for LdapConnection.SendRequest, more async plumbing
* chore: polish up OpenSamServer; polish up LocalGroupProcessorTest
* feat: add timeout wrapper to HttpNtlmAuthenticationService.EnsureRequiresAuth
* chore: reverting wrapper under ScanAsync since we are adding timeout wrapper layers lower
* fix: Return public functions to previous signatures pt 1: Tasks
* chore: Marking External Calls
* fix: Return public functions to previous signatures pt 2: out vars
* feat: async LdapConnection.SendRequest implementation
* chore: added more unit test cases for throwing TimeoutException
* Make async tests without await sync
* Build pipeline should only run on pull_request, not on push
* chore: it can't be these tests causing Actions to hang, right?
* fix: Test max parallel threads setting on xunit config
* fix: No timeout around GetDomain, work to make RequestNETBIOSNameFromComputer more async
* chore: Marking External Calls
* chore: remove xunit.runner.json config; add warning to sync ExecuteWithTimeout methods
* fix: a few new unit tests are throwing unexpected exceptions, let's address those in a bit
* fix: removing LongRunning sync task hint to see how it affects xUnit parallel tests on Github runner
* chore: testing LongRunning sync methods with non-parallel Timeout tests
* chore: removing LongRunning for the time being
* chore: remove unnecessary async from ConnectionPoolManager Query methods
* Pass timeout token to PerformNtlmAuthenticationAsync
* chore: Passing down more timeout tokens
* fix: return OpenSamServer to previous contract
* chore: Adding Names to Return Tuple for RequestNETBIOSNameFromComputerAsync
* chore: remove an abstraction which probably causes more context switching than real value
* chore: Move Success Log in PortScanner.CheckPort
* chore: addressing coderabbit comments
* fix: dang it is those same to no-host exceptions :(
* chore: exposing async versions of public methods that we can use internally to follow the Task pattern
* fix: try/catch _utils.GetDomain
* Update test/unit/PortScannerTest.cs
This seems reasonable let's give it a shot.
I'm curious how CheckPort will respond to the non-routable IP
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Revert "Update test/unit/PortScannerTest.cs
"
This reverts commit b41bd62.
---------
Co-authored-by: Michael Cuomo <[email protected]>
Co-authored-by: Katie Strader <[email protected]>
1 parent 5f4762a commit 8ad304b
File tree
29 files changed
+1173
-729
lines changed- .github/workflows
- src/CommonLib
- DirectoryObjects
- Ntlm
- Processors
- SMB
- test/unit
- Facades
29 files changed
+1173
-729
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | | - | |
| 80 | + | |
77 | 81 | | |
78 | | - | |
79 | | - | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | | - | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
106 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
107 | 118 | | |
108 | 119 | | |
109 | 120 | | |
110 | | - | |
| 121 | + | |
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
117 | | - | |
118 | | - | |
| 128 | + | |
| 129 | + | |
119 | 130 | | |
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
123 | | - | |
| 134 | + | |
124 | 135 | | |
125 | 136 | | |
126 | 137 | | |
127 | | - | |
128 | | - | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
134 | | - | |
135 | | - | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | | - | |
| 157 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
153 | 164 | | |
154 | 165 | | |
155 | 166 | | |
| 167 | + | |
| 168 | + | |
156 | 169 | | |
157 | 170 | | |
158 | 171 | | |
159 | | - | |
| 172 | + | |
160 | 173 | | |
161 | 174 | | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
165 | | - | |
| 178 | + | |
166 | 179 | | |
167 | 180 | | |
168 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| |||
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| 179 | + | |
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
177 | 186 | | |
178 | | - | |
| 187 | + | |
| 188 | + | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
| 195 | + | |
185 | 196 | | |
186 | 197 | | |
187 | 198 | | |
| |||
0 commit comments