Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
LanmanServer?
Browse files Browse the repository at this point in the history
  • Loading branch information
akbaryahya committed May 17, 2017
1 parent ef1af7f commit 134f7f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WannaCrypt Detection/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public bool FindService(string nama)
Logme(Color.Gold, $"{resultx.Members["Status"].Value}|{resultx.Members["Name"].Value}|{resultx.Members["DisplayName"].Value}");
if (resultx.Members["Name"].Value.ToString().Contains(nama))
{
if ((resultx.Members["Status"].Value).ToString().Contains("Running"))
if (resultx.Members["Status"].Value.ToString().Contains("Running"))
{
return true;
}
Expand Down Expand Up @@ -429,6 +429,10 @@ private void smboff_Click(object sender, EventArgs e)
ExecuteCmd("sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi");
ExecuteCmd("sc.exe config mrxsmb20 start= disabled");

//disable and stop LanmanServer?
ExecuteCmd("sc.exe config \"LanmanServer\" start= disabled");
ExecuteCmd("sc.exe stop \"LanmanServer\"");

Logme(Color.Gold, "Please restart your pc to see results");
}

Expand Down

0 comments on commit 134f7f6

Please sign in to comment.