C# Class PSAttackBuildTool.Utils.PSABTUtils

ファイルを表示 Open project: jaredhaight/PSAttackBuildTool Class Usage Examples

Public Methods

Method Description
BuildConfigFile ( Attack attack, GeneratedStrings generatedStrings ) : void
BuildCsproj ( List modules, Attack attack, GeneratedStrings generatedStrings ) : void
BuildPSAttack ( Attack attack, GeneratedStrings generatedStrings ) : int
DownloadFile ( string url, string dest ) : string
GetModuleList ( MemoryStream JSON ) : List
GetPSAttack ( Uri URL ) : Attack
GetPSAttackBuildToolDir ( ) : string
RandomString ( int length, Random rand ) : string
UnzipFile ( string zipPath ) : string

Method Details

BuildConfigFile() public static method

public static BuildConfigFile ( Attack attack, GeneratedStrings generatedStrings ) : void
attack PSAttackBuildTool.PSAttack.Attack
generatedStrings GeneratedStrings
return void

BuildCsproj() public static method

public static BuildCsproj ( List modules, Attack attack, GeneratedStrings generatedStrings ) : void
modules List
attack PSAttackBuildTool.PSAttack.Attack
generatedStrings GeneratedStrings
return void

BuildPSAttack() public static method

public static BuildPSAttack ( Attack attack, GeneratedStrings generatedStrings ) : int
attack PSAttackBuildTool.PSAttack.Attack
generatedStrings GeneratedStrings
return int

DownloadFile() public static method

public static DownloadFile ( string url, string dest ) : string
url string
dest string
return string

GetModuleList() public static method

public static GetModuleList ( MemoryStream JSON ) : List
JSON System.IO.MemoryStream
return List

GetPSAttack() public static method

public static GetPSAttack ( Uri URL ) : Attack
URL System.Uri
return PSAttackBuildTool.PSAttack.Attack

GetPSAttackBuildToolDir() public static method

public static GetPSAttackBuildToolDir ( ) : string
return string

RandomString() public static method

public static RandomString ( int length, Random rand ) : string
length int
rand System.Random
return string

UnzipFile() public static method

public static UnzipFile ( string zipPath ) : string
zipPath string
return string