C# 클래스 Simulator.SimulatedLoginAttemptGenerator

This class generates simulated login attempts to be sent to the StopGuessing algorithms by the simulator
파일 보기 프로젝트 열기: Microsoft/StopGuessing 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ScheduledBenignAttempts SortedSet

공개 메소드들

메소드 설명
AddTypoToPassword ( string originalPassword ) : string

Add a typo to a password for simulating user typo errors

BenignLoginAttempt ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Get a benign login attempt to simulate

MaliciousAttemptToSantiizeIpViaAValidLogin ( IPAddress ipAddressToSanitizeThroughLogin ) : SimulatedLoginAttempt

Attacker login with correct accounts he has, trying to fool our service into thinking his IP is benign

MaliciousLoginAttemptBreadthFirst ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

MaliciousLoginAttemptBreadthFirstAvoidMakingPopular ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

MaliciousLoginAttemptWeighted ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution

SimulatedLoginAttemptGenerator ( ExperimentalConfiguration experimentalConfiguration, SimulatedAccounts simAccounts, IpPool ipPool, SimulatedPasswords simPasswords ) : System

The attempt generator needs to know about the experimental configuration and have access to the sets of simulated accounts, IP addresses, and simulated passwords.

메소드 상세

AddTypoToPassword() 공개 정적인 메소드

Add a typo to a password for simulating user typo errors
public static AddTypoToPassword ( string originalPassword ) : string
originalPassword string The original password to add a typo to
리턴 string

BenignLoginAttempt() 공개 메소드

Get a benign login attempt to simulate
public BenignLoginAttempt ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
리턴 SimulatedLoginAttempt

MaliciousAttemptToSantiizeIpViaAValidLogin() 공개 메소드

Attacker login with correct accounts he has, trying to fool our service into thinking his IP is benign
public MaliciousAttemptToSantiizeIpViaAValidLogin ( IPAddress ipAddressToSanitizeThroughLogin ) : SimulatedLoginAttempt
ipAddressToSanitizeThroughLogin System.Net.IPAddress
리턴 SimulatedLoginAttempt

MaliciousLoginAttemptBreadthFirst() 공개 메소드

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptBreadthFirst ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
리턴 SimulatedLoginAttempt

MaliciousLoginAttemptBreadthFirstAvoidMakingPopular() 공개 메소드

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptBreadthFirstAvoidMakingPopular ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
리턴 SimulatedLoginAttempt

MaliciousLoginAttemptWeighted() 공개 메소드

Attacker issues one guess by picking an benign account at random and picking a password by weighted distribution
public MaliciousLoginAttemptWeighted ( System.DateTime eventTimeUtc ) : SimulatedLoginAttempt
eventTimeUtc System.DateTime
리턴 SimulatedLoginAttempt

SimulatedLoginAttemptGenerator() 공개 메소드

The attempt generator needs to know about the experimental configuration and have access to the sets of simulated accounts, IP addresses, and simulated passwords.
public SimulatedLoginAttemptGenerator ( ExperimentalConfiguration experimentalConfiguration, SimulatedAccounts simAccounts, IpPool ipPool, SimulatedPasswords simPasswords ) : System
experimentalConfiguration ExperimentalConfiguration
simAccounts SimulatedAccounts
ipPool IpPool
simPasswords SimulatedPasswords
리턴 System

프로퍼티 상세

ScheduledBenignAttempts 공개적으로 프로퍼티

public SortedSet ScheduledBenignAttempts
리턴 SortedSet