Skip to content

Commit 2d8854f

Browse files
committed
Added source code for HexBox to resolve issue #66.
1 parent 9fe86a4 commit 2d8854f

28 files changed

Lines changed: 6651 additions & 4 deletions

EditSection/EditSection.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
<ApplicationIcon>main.ico</ApplicationIcon>
4444
</PropertyGroup>
4545
<ItemGroup>
46-
<Reference Include="Be.Windows.Forms.HexBox">
47-
<HintPath>..\third_party\Be.Windows.Forms.HexBox\Be.Windows.Forms.HexBox.dll</HintPath>
48-
</Reference>
4946
<Reference Include="NDesk.Options, Version=0.2.1.0, Culture=neutral, processorArchitecture=MSIL">
5047
<HintPath>..\packages\NDesk.Options.0.2.1\lib\NDesk.Options.dll</HintPath>
5148
</Reference>
@@ -144,6 +141,10 @@
144141
<Project>{6aeb5004-6093-4c23-aeae-911d64cacc58}</Project>
145142
<Name>NtApiDotNet</Name>
146143
</ProjectReference>
144+
<ProjectReference Include="..\third_party\Be.Windows.Forms.HexBox\Be.Windows.Forms.HexBox.csproj">
145+
<Project>{26c5f25f-b450-4caf-ad8b-b8d11ae73457}</Project>
146+
<Name>Be.Windows.Forms.HexBox</Name>
147+
</ProjectReference>
147148
</ItemGroup>
148149
<ItemGroup>
149150
<Content Include="main.ico" />

EditSection/SectionEditorForm.Designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandbox-attacksurface-analysis-tools.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ViewSecurityDescriptor", "V
1515
EndProject
1616
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NtApiDotNet.Forms", "NtApiDotNet.Forms\NtApiDotNet.Forms.csproj", "{FD4CB5F2-24ED-4561-B0E1-BB397AE5C636}"
1717
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Be.Windows.Forms.HexBox", "third_party\Be.Windows.Forms.HexBox\Be.Windows.Forms.HexBox.csproj", "{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}"
19+
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
@@ -45,6 +47,10 @@ Global
4547
{FD4CB5F2-24ED-4561-B0E1-BB397AE5C636}.Debug|Any CPU.Build.0 = Debug|Any CPU
4648
{FD4CB5F2-24ED-4561-B0E1-BB397AE5C636}.Release|Any CPU.ActiveCfg = Release|Any CPU
4749
{FD4CB5F2-24ED-4561-B0E1-BB397AE5C636}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}.Release|Any CPU.Build.0 = Release|Any CPU
4854
EndGlobalSection
4955
GlobalSection(SolutionProperties) = preSolution
5056
HideSolutionNode = FALSE
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
using System;
2+
using System.Reflection;
3+
using System.Runtime.CompilerServices;
4+
using System.Security.Permissions;
5+
using System.Runtime.InteropServices;
6+
7+
//
8+
// General Information about an assembly is controlled through the following
9+
// set of attributes. Change these attribute values to modify the information
10+
// associated with an assembly.
11+
//
12+
[assembly: AssemblyTitle("Be.Windows.Forms.HexBox")]
13+
[assembly: AssemblyDescription("hex edit control (C# DOTNET)")]
14+
[assembly: AssemblyConfiguration("")]
15+
[assembly: AssemblyCompany("Be")]
16+
[assembly: AssemblyProduct("Be.Windows.Forms.HexBox")]
17+
[assembly: AssemblyCopyright("")]
18+
[assembly: AssemblyTrademark("")]
19+
[assembly: AssemblyCulture("")]
20+
21+
//
22+
// Version information for an assembly consists of the following four values:
23+
//
24+
// Major Version
25+
// Minor Version
26+
// Build Number
27+
// Revision
28+
//
29+
// You can specify all the values or you can default the Revision and Build Numbers
30+
// by using the '*' as shown below:
31+
32+
[assembly: AssemblyVersion("1.4.2.1")]
33+
[assembly: AssemblyFileVersion("1.4.2.40003")]
34+
35+
//
36+
// In order to sign your assembly you must specify a key to use. Refer to the
37+
// Microsoft .NET Framework documentation for more information on assembly signing.
38+
//
39+
// Use the attributes below to control which key is used for signing.
40+
//
41+
// Notes:
42+
// (*) If no key is specified, the assembly is not signed.
43+
// (*) KeyName refers to a key that has been installed in the Crypto Service
44+
// Provider (CSP) on your machine. KeyFile refers to a file which contains
45+
// a key.
46+
// (*) If the KeyFile and the KeyName values are both specified, the
47+
// following processing occurs:
48+
// (1) If the KeyName can be found in the CSP, that key is used.
49+
// (2) If the KeyName does not exist and the KeyFile does exist, the key
50+
// in the KeyFile is installed into the CSP and used.
51+
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
52+
// When specifying the KeyFile, the location of the KeyFile should be
53+
// relative to the project output directory which is
54+
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
55+
// located in the project directory, you would specify the AssemblyKeyFile
56+
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
57+
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
58+
// documentation for more information on this.
59+
//
60+
[assembly: AssemblyDelaySign(false)]
61+
62+
//[assembly: AssemblyKeyFile("../../HexBox.snk")]
63+
//[assembly: AssemblyKeyName("")]
64+
65+
//[assembly:IsolatedStorageFilePermission(SecurityAction.RequestRefuse, UserQuota=1048576)]
66+
//[assembly:SecurityPermission(SecurityAction.RequestRefuse, UnmanagedCode=true)]
67+
//[assembly:FileIOPermission(SecurityAction.RequestOptional, Unrestricted=true)]
68+
69+
[assembly:CLSCompliant(true)]
70+
71+
[assembly:ComVisible(false)]
Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<ProjectType>Local</ProjectType>
5+
<ProductVersion>9.0.30729</ProductVersion>
6+
<SchemaVersion>2.0</SchemaVersion>
7+
<ProjectGuid>{26C5F25F-B450-4CAF-AD8B-B8D11AE73457}</ProjectGuid>
8+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
9+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10+
<ApplicationIcon>
11+
</ApplicationIcon>
12+
<AssemblyKeyContainerName>
13+
</AssemblyKeyContainerName>
14+
<AssemblyName>Be.Windows.Forms.HexBox</AssemblyName>
15+
<AssemblyOriginatorKeyFile>
16+
</AssemblyOriginatorKeyFile>
17+
<DefaultClientScript>JScript</DefaultClientScript>
18+
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
19+
<DefaultTargetSchema>IE50</DefaultTargetSchema>
20+
<DelaySign>false</DelaySign>
21+
<OutputType>Library</OutputType>
22+
<RootNamespace>Be.Windows.Forms</RootNamespace>
23+
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
24+
<StartupObject>
25+
</StartupObject>
26+
<FileUpgradeFlags>
27+
</FileUpgradeFlags>
28+
<UpgradeBackupLocation>
29+
</UpgradeBackupLocation>
30+
<OldToolsVersion>3.5</OldToolsVersion>
31+
<SignAssembly>false</SignAssembly>
32+
<IsWebBootstrapper>false</IsWebBootstrapper>
33+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
34+
<PublishUrl>publish\</PublishUrl>
35+
<Install>true</Install>
36+
<InstallFrom>Disk</InstallFrom>
37+
<UpdateEnabled>false</UpdateEnabled>
38+
<UpdateMode>Foreground</UpdateMode>
39+
<UpdateInterval>7</UpdateInterval>
40+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
41+
<UpdatePeriodically>false</UpdatePeriodically>
42+
<UpdateRequired>false</UpdateRequired>
43+
<MapFileExtensions>true</MapFileExtensions>
44+
<ApplicationRevision>0</ApplicationRevision>
45+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
46+
<UseApplicationTrust>false</UseApplicationTrust>
47+
<BootstrapperEnabled>true</BootstrapperEnabled>
48+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
49+
</PropertyGroup>
50+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
51+
<OutputPath>bin\Debug\</OutputPath>
52+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
53+
<BaseAddress>285212672</BaseAddress>
54+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
55+
<ConfigurationOverrideFile>
56+
</ConfigurationOverrideFile>
57+
<DefineConstants>DEBUG;TRACE</DefineConstants>
58+
<DocumentationFile>bin\Debug\Be.Windows.Forms.HexBox.xml</DocumentationFile>
59+
<DebugSymbols>true</DebugSymbols>
60+
<FileAlignment>4096</FileAlignment>
61+
<NoStdLib>false</NoStdLib>
62+
<NoWarn>
63+
</NoWarn>
64+
<Optimize>false</Optimize>
65+
<RegisterForComInterop>false</RegisterForComInterop>
66+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
67+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
68+
<WarningLevel>4</WarningLevel>
69+
<DebugType>full</DebugType>
70+
<ErrorReport>prompt</ErrorReport>
71+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
72+
</PropertyGroup>
73+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
74+
<OutputPath>bin\Release\</OutputPath>
75+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
76+
<BaseAddress>285212672</BaseAddress>
77+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
78+
<ConfigurationOverrideFile>
79+
</ConfigurationOverrideFile>
80+
<DefineConstants>TRACE</DefineConstants>
81+
<DocumentationFile>bin\Release\Be.Windows.Forms.HexBox.xml</DocumentationFile>
82+
<DebugSymbols>true</DebugSymbols>
83+
<FileAlignment>4096</FileAlignment>
84+
<NoStdLib>false</NoStdLib>
85+
<NoWarn>
86+
</NoWarn>
87+
<Optimize>true</Optimize>
88+
<RegisterForComInterop>false</RegisterForComInterop>
89+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
90+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
91+
<WarningLevel>4</WarningLevel>
92+
<DebugType>full</DebugType>
93+
<ErrorReport>prompt</ErrorReport>
94+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
95+
</PropertyGroup>
96+
<ItemGroup>
97+
<Reference Include="System">
98+
<Name>System</Name>
99+
</Reference>
100+
<Reference Include="System.Data">
101+
<Name>System.Data</Name>
102+
</Reference>
103+
<Reference Include="System.Drawing">
104+
<Name>System.Drawing</Name>
105+
</Reference>
106+
<Reference Include="System.Windows.Forms">
107+
<Name>System.Windows.Forms</Name>
108+
</Reference>
109+
<Reference Include="System.Xml">
110+
<Name>System.XML</Name>
111+
</Reference>
112+
</ItemGroup>
113+
<ItemGroup>
114+
<Compile Include="AssemblyInfo.cs">
115+
<SubType>Code</SubType>
116+
</Compile>
117+
<Compile Include="BuiltInContextMenu.cs">
118+
<SubType>Component</SubType>
119+
</Compile>
120+
<Compile Include="ByteCollection.cs">
121+
<SubType>Code</SubType>
122+
</Compile>
123+
<Compile Include="BytePositionInfo.cs" />
124+
<Compile Include="CaretHandler.cs" />
125+
<Compile Include="DataBlock.cs">
126+
<SubType>Code</SubType>
127+
</Compile>
128+
<Compile Include="DataMap.cs">
129+
<SubType>Code</SubType>
130+
</Compile>
131+
<Compile Include="DynamicByteProvider.cs">
132+
<SubType>Code</SubType>
133+
</Compile>
134+
<Compile Include="DynamicFileByteProvider.cs">
135+
<SubType>Code</SubType>
136+
</Compile>
137+
<Compile Include="FileByteProvider.cs">
138+
<SubType>Code</SubType>
139+
</Compile>
140+
<Compile Include="FileDataBlock.cs">
141+
<SubType>Code</SubType>
142+
</Compile>
143+
<Compile Include="GDICaretHandler.cs" />
144+
<Compile Include="HexAnnotation.cs" />
145+
<Compile Include="HexBox.cs">
146+
<SubType>Component</SubType>
147+
</Compile>
148+
<Compile Include="HexCasing.cs" />
149+
<Compile Include="IByteProvider.cs">
150+
<SubType>Code</SubType>
151+
</Compile>
152+
<Compile Include="MemoryDataBlock.cs">
153+
<SubType>Code</SubType>
154+
</Compile>
155+
<Compile Include="NativeCaretHandler.cs" />
156+
<Compile Include="NativeMethods.cs">
157+
<SubType>Code</SubType>
158+
</Compile>
159+
<Compile Include="Properties\Resources.Designer.cs">
160+
<AutoGen>True</AutoGen>
161+
<DesignTime>True</DesignTime>
162+
<DependentUpon>Resources.resx</DependentUpon>
163+
</Compile>
164+
<EmbeddedResource Include="HexBox.bmp" />
165+
<EmbeddedResource Include="HexBox.resx">
166+
<DependentUpon>HexBox.cs</DependentUpon>
167+
<SubType>Designer</SubType>
168+
</EmbeddedResource>
169+
<EmbeddedResource Include="Properties\Resources.resx">
170+
<Generator>ResXFileCodeGenerator</Generator>
171+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
172+
</EmbeddedResource>
173+
</ItemGroup>
174+
<ItemGroup>
175+
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
176+
<Visible>False</Visible>
177+
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
178+
<Install>false</Install>
179+
</BootstrapperPackage>
180+
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
181+
<Visible>False</Visible>
182+
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
183+
<Install>true</Install>
184+
</BootstrapperPackage>
185+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
186+
<Visible>False</Visible>
187+
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
188+
<Install>false</Install>
189+
</BootstrapperPackage>
190+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
191+
<Visible>False</Visible>
192+
<ProductName>.NET Framework 3.5</ProductName>
193+
<Install>false</Install>
194+
</BootstrapperPackage>
195+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
196+
<Visible>False</Visible>
197+
<ProductName>.NET Framework 3.5 SP1</ProductName>
198+
<Install>false</Install>
199+
</BootstrapperPackage>
200+
</ItemGroup>
201+
<ItemGroup>
202+
<Content Include="license.txt" />
203+
</ItemGroup>
204+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
205+
<PropertyGroup>
206+
<PreBuildEvent>
207+
</PreBuildEvent>
208+
<PostBuildEvent>
209+
</PostBuildEvent>
210+
</PropertyGroup>
211+
</Project>
-84 KB
Binary file not shown.

0 commit comments

Comments
 (0)