C# Class Simulator.IpPool

Tracks the pool of IP addresses used by the simulator.
Afficher le fichier Open project: Microsoft/StopGuessing Class Usage Examples

Méthodes publiques

Méthode Description
GenerateAttackersIps ( ) : void

Generate a set of IP addresses to be owned by attackers. Must be called after all benign users accounts have been created so as to create the desired level of overlap between those benign addresses and the malicious ones.

GetIpAddressDebugInfo ( IPAddress address ) : IpAddressDebugInfo
GetNewRandomBenignIp ( ) : IPAddress

Get a new IP address for use in a benign request

GetRandomMaliciousIp ( ) : IPAddress

Generate a random malicious IP address

IpPool ( ExperimentalConfiguration experimentalConfiguration ) : System

Method Details

GenerateAttackersIps() public méthode

Generate a set of IP addresses to be owned by attackers. Must be called after all benign users accounts have been created so as to create the desired level of overlap between those benign addresses and the malicious ones.
public GenerateAttackersIps ( ) : void
Résultat void

GetIpAddressDebugInfo() public méthode

public GetIpAddressDebugInfo ( IPAddress address ) : IpAddressDebugInfo
address System.Net.IPAddress
Résultat IpAddressDebugInfo

GetNewRandomBenignIp() public méthode

Get a new IP address for use in a benign request
public GetNewRandomBenignIp ( ) : IPAddress
Résultat System.Net.IPAddress

GetRandomMaliciousIp() public méthode

Generate a random malicious IP address
public GetRandomMaliciousIp ( ) : IPAddress
Résultat System.Net.IPAddress

IpPool() public méthode

public IpPool ( ExperimentalConfiguration experimentalConfiguration ) : System
experimentalConfiguration ExperimentalConfiguration
Résultat System