Skip to content

Commit c81a06d

Browse files
author
Gabe Stocco
committed
Adding license headers.
1 parent df3d206 commit c81a06d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+158
-54
lines changed

Diff for: AttackSurfaceAnalyzer.sln.licenseheader

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extensions: .cs
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License.
4+
extensions: .js
5+
// Copyright (c) Microsoft Corporation. All rights reserved.
6+
// Licensed under the MIT License.

Diff for: Gui/Controllers/HomeController.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Diagnostics;
46
using System.IO;

Diff for: Gui/Program.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using AttackSurfaceAnalyzer.Utils;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using AttackSurfaceAnalyzer.Utils;
24
using ElectronNET.API;
35
using Microsoft.AspNetCore;
46
using Microsoft.AspNetCore.Hosting;

Diff for: Gui/Startup.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Linq;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Linq;
24
using System.Threading.Tasks;
35
using AttackSurfaceAnalyzer.Utils;
46
using AttackSurfaceAnalyzer_Lib.Utils;

Diff for: Gui/wwwroot/js/Analyze.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var resultOffset = 0;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
var resultOffset = 0;
24
var monitorResultOffset = 0;
35

46
$('#AnalyzeLink').addClass('active');

Diff for: Gui/wwwroot/js/Index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
$('#TelemetryOpt').change(function () {
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
$('#TelemetryOpt').change(function () {
24
data = { 'DisableTelemetry': !$('#TelemetryOpt').is(":checked") };
35
$.getJSON('Home/ChangeTelemetryState', data, function () { });
46
})

Diff for: Gui/wwwroot/js/site.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
2-
// for details on configuring this project to bundle and minify static web assets.
3-
4-
// Write your JavaScript code.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
53
function appendDebugMessage(message, remote) {
64
$("#debug").add("<div>").html((remote ? "Service: " : "Local: ") + message);
75
}

Diff for: Lib/Collectors/BaseCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using AttackSurfaceAnalyzer.ObjectTypes;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using AttackSurfaceAnalyzer.ObjectTypes;
24

35
namespace AttackSurfaceAnalyzer.Collectors
46
{

Diff for: Lib/Collectors/BaseCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Collectors/BaseMonitor.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using AttackSurfaceAnalyzer.ObjectTypes;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using AttackSurfaceAnalyzer.ObjectTypes;
24

35
namespace AttackSurfaceAnalyzer.Collectors
46
{

Diff for: Lib/Collectors/Certificates/CertificateCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46
using System.Linq;

Diff for: Lib/Collectors/Certificates/CertificateCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.Utils;
46
using Microsoft.Data.Sqlite;

Diff for: Lib/Collectors/FileSystem/FileSystemCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46
using System.Linq;

Diff for: Lib/Collectors/FileSystem/FileSystemCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Collectors/FileSystem/FileSystemMonitor.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.IO;
35
using System.Runtime.InteropServices;
46
using AttackSurfaceAnalyzer.ObjectTypes;

Diff for: Lib/Collectors/FileSystem/FileSystemUtils.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Data.HashFunction.xxHash;
46
using System.IO;

Diff for: Lib/Collectors/FileSystem/LinuxFileSystemUtils.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.IO;
35
using AttackSurfaceAnalyzer.Utils;
46
using Mono.Unix;

Diff for: Lib/Collectors/FileSystem/WindowsFileSystemUtils.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Data.HashFunction.xxHash;
35
using System.IO;
46
using System.Security.AccessControl;

Diff for: Lib/Collectors/OpenPorts/LinuxOpenPortUtils.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AttackSurfaceAnalyzer.Collectors.OpenPort
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
namespace AttackSurfaceAnalyzer.Collectors.OpenPort
24
{
35
public class LinuxOpenPortUtils
46
{

Diff for: Lib/Collectors/OpenPorts/OpenPortCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46
using System.Net.NetworkInformation;

Diff for: Lib/Collectors/OpenPorts/OpenPortCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Collectors/OpenPorts/WindowsOpenPortUtils.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AttackSurfaceAnalyzer.Collectors.OpenPort
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
namespace AttackSurfaceAnalyzer.Collectors.OpenPort
24
{
35
public class WindowsOpenPortUtils
46
{

Diff for: Lib/Collectors/PlatformRunnable.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AttackSurfaceAnalyzer.Collectors
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
namespace AttackSurfaceAnalyzer.Collectors
24
{
35
interface PlatformRunnable
46
{

Diff for: Lib/Collectors/Registry/RegistryCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Runtime.InteropServices;
46
using System.Security.AccessControl;

Diff for: Lib/Collectors/Registry/RegistryCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Collectors/Registry/RegistryMonitor.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Diagnostics;
35
using System.IO;
46
using System.Runtime.InteropServices;

Diff for: Lib/Collectors/Service/ServiceCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Linq;
46
using System.Reflection;

Diff for: Lib/Collectors/Service/ServiceCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Collectors/UserAccount/UserAccountCollector.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46
using System.Linq;

Diff for: Lib/Collectors/UserAccount/UserAccountCompare.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using AttackSurfaceAnalyzer.ObjectTypes;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Objects/CertificateObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Text;
46

Diff for: Lib/Objects/FileSystemObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.Diagnostics;
46
using System.Linq;

Diff for: Lib/Objects/OpenPortObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Text;
35
using AttackSurfaceAnalyzer.Utils;
46
using Newtonsoft.Json;

Diff for: Lib/Objects/RegistryObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Security.AccessControl;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Security.AccessControl;
24
using AttackSurfaceAnalyzer.Utils;
35
using Microsoft.Win32;
46

Diff for: Lib/Objects/ResultObjects.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using AttackSurfaceAnalyzer.Collectors.FileSystem;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using AttackSurfaceAnalyzer.Collectors.FileSystem;
24
using AttackSurfaceAnalyzer.ObjectTypes;
35

46
namespace AttackSurfaceAnalyzer.ObjectTypes

Diff for: Lib/Objects/ServiceObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Text;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Text;
24
using AttackSurfaceAnalyzer.Utils;
35
using Newtonsoft.Json;
46

Diff for: Lib/Objects/Types.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AttackSurfaceAnalyzer.ObjectTypes
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
namespace AttackSurfaceAnalyzer.ObjectTypes
24
{
35
public enum RESULT_TYPE {
46
FILE,

Diff for: Lib/Objects/UserAccountObject.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Collections.Generic;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Collections.Generic;
24
using System.Linq;
35
using System.Text;
46
using AttackSurfaceAnalyzer.Utils;

Diff for: Lib/Utils/ConfigurationReader.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.IO;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.IO;
24
using Newtonsoft.Json;
35
using Newtonsoft.Json.Linq;
46

Diff for: Lib/Utils/CryptoHelpers.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Data.HashFunction.xxHash;
35
using System.IO;
46
using System.Security.Cryptography;

Diff for: Lib/Utils/DataWriter.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace AttackSurfaceAnalyzer.Utils
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
namespace AttackSurfaceAnalyzer.Utils
24
{
35
class DataWriter
46
{

Diff for: Lib/Utils/DatabaseManager.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using Microsoft.Data.Sqlite;
35

46
namespace AttackSurfaceAnalyzer.Utils

Diff for: Lib/Utils/DirectoryWalker.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46

Diff for: Lib/Utils/Elevation.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.ComponentModel;
35
using System.Diagnostics;
46
using System.Runtime.InteropServices;

Diff for: Lib/Utils/ExternalCommandRunner.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Diagnostics;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Diagnostics;
24

35
namespace AttackSurfaceAnalyzer.Utils
46
{

Diff for: Lib/Utils/FileWatcher.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Collections.Generic;
35
using System.IO;
46

Diff for: Lib/Utils/Helpers.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Diagnostics;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System.Diagnostics;
24
using System.Runtime.InteropServices;
35

46
namespace AttackSurfaceAnalyzer_Lib.Utils

Diff for: Lib/Utils/Logger.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using NLog;
35

46
namespace AttackSurfaceAnalyzer.Utils

Diff for: Lib/Utils/NativeMethods.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
using System;
24
using System.Runtime.InteropServices;
35
using Microsoft.Win32.SafeHandles;
46

0 commit comments

Comments
 (0)