Add a func to break the ssid.
This commit is contained in:
parent
e58a75d84e
commit
fffe00ae54
@ -3050,5 +3050,24 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
#region Break Things
|
||||||
|
public bool BreakSSID(string nicname)
|
||||||
|
{
|
||||||
|
List<string> choices = new List<string>() { "FBI_Surveillance_Van", "EduNetworkBuilderSSID","Bad_SSID",
|
||||||
|
"FreeWifi","HackMe","default","linksys",};
|
||||||
|
//find the nic. Change the ssid on it
|
||||||
|
choices.AddRange(new string[]{hostname+"_ssid", hostname+"FreeWireless", hostname+"AddHoc" });
|
||||||
|
|
||||||
|
choices = NB.Randomize<string>(choices);
|
||||||
|
string choice = choices[0]; //grab the first one
|
||||||
|
|
||||||
|
NetworkCard nic = NicFromName(nicname);
|
||||||
|
if (nic == null) return false; //we could not do it.
|
||||||
|
if (nic.SSID == choice) return false;
|
||||||
|
nic.SSID = choice; //change it
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user