C# Class Simulator.IpPool

Tracks the pool of IP addresses used by the simulator.
Datei anzeigen Open project: Microsoft/StopGuessing Class Usage Examples

Public Methods

Method 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 method

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
return void

GetIpAddressDebugInfo() public method

public GetIpAddressDebugInfo ( IPAddress address ) : IpAddressDebugInfo
address System.Net.IPAddress
return IpAddressDebugInfo

GetNewRandomBenignIp() public method

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

GetRandomMaliciousIp() public method

Generate a random malicious IP address
public GetRandomMaliciousIp ( ) : IPAddress
return System.Net.IPAddress

IpPool() public method

public IpPool ( ExperimentalConfiguration experimentalConfiguration ) : System
experimentalConfiguration ExperimentalConfiguration
return System