Skip to content

Commit ce919a2

Browse files
author
Andrea Pierini
committed
Initil Release v1.0V1.0 /1
1 parent a9e1baf commit ce919a2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

KrbRelayEx/Clients/Attacks/Smb/ServiceManager.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,20 @@ public static string serviceStart(SMB2Client smb2, string serviceName)
171171
if (status != NTStatus.STATUS_SUCCESS)
172172
{
173173
//Console.WriteLine("[-] Could not bind to SCMR");
174-
return "[-] Could not bind to SCMR\n";
174+
return "[-] Could not bind to SCMR\r\n";
175175
}
176176
var lpScHandle = ScmrServiceHelper.rOpenSCManagerW(rpc, out status);
177177
if (status != NTStatus.STATUS_SUCCESS)
178178
{
179179
//Console.WriteLine("[-] Failed to open SCMR handle: {0}", status);
180-
return String.Format("[-] Failed to open SCMR handle: {0}\n", status);
180+
return String.Format("[-] Failed to open SCMR handle: {0}\r\n", status);
181181
}
182182
var newHandle = ScmrServiceHelper.rOpenServiceW(rpc, lpScHandle, serviceName, out status);
183183

184184
if (status != NTStatus.STATUS_SUCCESS)
185185
{
186186
//Console.WriteLine("[-] Failed to open service: {0}", status);
187-
return String.Format("[-] Failed to open service: {0}\n", status);
187+
return String.Format("[-] Failed to open service: {0}\r\n", status);
188188
}
189189
else
190190

@@ -194,16 +194,17 @@ public static string serviceStart(SMB2Client smb2, string serviceName)
194194
if (status != NTStatus.STATUS_SUCCESS)
195195
{
196196
//Console.WriteLine("[-] Service failed to start: {0}", status);
197-
return String.Format("[-] Service failed to start: {0}\n", status);
197+
return String.Format("[-] Service failed to start: {0}\r\n", status);
198198
}
199199
else
200200
{
201201
//Console.WriteLine("[+] Service started {0}", serviceName);
202-
return String.Format("[+] Service started {0}\n", serviceName);
202+
return String.Format("[+] Service started {0}\r\n", serviceName);
203203
}
204204
}
205205

206206
//ScmrServiceHelper.rCloseServiceHandle(rpc, lpScHandsele, out status);
207+
207208
ScmrServiceHelper.rCloseServiceHandle(rpc, newHandle, out status);
208209
}
209210
}

0 commit comments

Comments
 (0)