-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP Blazor Interface * Namespace move * Add Collector Options * More Options Files * Update Guided.razor * WIP * WIP * Collecting through working * Guided mode end to end * Update Analysis Options Section to have a header * Component breakdowns * Update site.css * Fix versioning * Add GitHub Link * Update Sidebar * Glows * Add Pages, Update Sidebar * Update MainLayout.razor * Redo Glow * Finish gglowing * Update NavMenu.razor * Update top bar * Update site.css * Refactor Glow toggling * Update Nav * Update site.css * Update site.css * Update NavMenu.razor * Update MainLayout.razor * Add Options Card CSS * Add FileCollector Options Card * Improve FileCollector Directory Selection * Fix glow on add/remove entries from selected directories * Card-ify Rest Of Options * Move Cards Into Containers * Style Card Containers * Update Options Panes * Update Guided Styling, Move Containers * Update checkbox sizes * Update RunID Input Box * Fix build break * Respect UseTimestamp Checkbox * Tone Down the Glow * Update UserCollectorOptions.Razor * Registry collector Add paths * Update Title & Icon * Fix Add/Removing selected directories in options * Update Collector Titles * Fix FileMonitor * Fix Monitor mode analysis results showing * Remove unneeded glow * Remove old cli * Guided Page Fixes * Format Results * Remove Results Counter HTML * Add NoLaunch options to disable launching browser * Remove old Cli references * Update <p> Font * Add Spinners * Update FileCollectorOptions.razor * Fix Options and Label Sizes * Update RegistryCollectorOptions.razor * Remove Random Div * Build break fix * Move Blazor to Cli * Update Tests.csproj * Implementes Analyze and Scan Pages Report page is WIP. Doesn't appear to be refreshing when needed to grab the right results. Co-authored-by: David Alcantar <daalcant@microsoft.com>
- Loading branch information
Showing
197 changed files
with
3,525 additions
and
14,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
<Router AppAssembly="@typeof(AttackSurfaceAnalyzerClient).Assembly"> | ||
<Found Context="routeData"> | ||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | ||
</Found> | ||
<NotFound> | ||
<LayoutView Layout="@typeof(MainLayout)"> | ||
<p>Sorry, there's nothing at this address.</p> | ||
</LayoutView> | ||
</NotFound> | ||
</Router> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using Microsoft.CST.AttackSurfaceAnalyzer.Objects; | ||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.CST.AttackSurfaceAnalyzer.Cli | ||
{ | ||
public class AppData | ||
{ | ||
public CollectCommandOptions CollectOptions { get; set; } = new CollectCommandOptions(); | ||
public MonitorCommandOptions MonitorOptions { get; set; } = new MonitorCommandOptions(); | ||
public ExportCollectCommandOptions ExportCollectCommandOptions { get; set; } = new ExportCollectCommandOptions(); | ||
public string FirstRunId | ||
{ | ||
get | ||
{ | ||
return $"{RunId}-before"; | ||
} | ||
} | ||
|
||
public string SecondRunId | ||
{ | ||
get | ||
{ | ||
return $"{RunId}-after"; | ||
} | ||
} | ||
|
||
public string MonitorRunId | ||
{ | ||
get | ||
{ | ||
return $"{RunId}-monitoring"; | ||
} | ||
} | ||
|
||
public string RunId { get; set; } = string.Empty; | ||
public CompareCommandOptions CompareCommandOptions { | ||
get | ||
{ | ||
return new CompareCommandOptions(ExportCollectCommandOptions.FirstRunId, ExportCollectCommandOptions.SecondRunId) | ||
{ | ||
ApplySubObjectRulesToMonitor = true, | ||
AnalysesFile = RuleFile.LoadEmbeddedFilters(), | ||
DatabaseFilename = ExportCollectCommandOptions.DatabaseFilename, | ||
DisableAnalysis = ExportCollectCommandOptions.DisableAnalysis, | ||
SaveToDatabase = ExportCollectCommandOptions.SaveToDatabase, | ||
RunScripts = ExportCollectCommandOptions.RunScripts | ||
}; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.