データ作成ツール

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_test_tools@2 6b0af911-cb57-b745-895f-eec5701120e1
This commit is contained in:
N2911 2011-08-05 09:03:39 +00:00
parent 25b73fe6ab
commit 96ab1d411d
26 changed files with 1289 additions and 0 deletions

View File

@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FalsifyTwlBackup", "FalsifyTwlBackup\FalsifyTwlBackup.csproj", "{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}.Debug|x86.ActiveCfg = Debug|x86
{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}.Debug|x86.Build.0 = Debug|x86
{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}.Release|x86.ActiveCfg = Release|x86
{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Binary file not shown.

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9DC0BCC2-4A60-4077-96CF-CDD92D32A55F}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FalsifyTwlBackup</RootNamespace>
<AssemblyName>FalsifyTwlBackup</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="TWLBackupBlock">
<HintPath>.\TWLBackupBlock.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<StartWorkingDirectory>C:\Users\N2911\Documents\110705_TwlBackupFalsifyingTool</StartWorkingDirectory>
<StartArguments>clear.bin key.txt macKey.txt -each 998</StartArguments>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<StartWorkingDirectory>C:\Users\N2911\Documents\110705_TwlBackupFalsifyingTool</StartWorkingDirectory>
<StartArguments>clear.bin key.txt macKey.txt -each 998</StartArguments>
</PropertyGroup>
</Project>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using TwlBackupBlock;
namespace FalsifyTwlBackup
{
class Properties
{
public Blocks decryptedBlocks; // 復号化されたバックアップデータ
public byte[] keyData; // ブロック暗号化のための鍵データ
public byte[] macKeyData; // MAC生成のための鍵データ
public string outFolderPath; // 出力フォルダ名
public void SetOutputFolderPath(string twlBackupDataName)
{
// 出力フォルダを入力ファイルと同じディレクトリに
outFolderPath = Path.Combine(Path.GetDirectoryName(Path.GetFullPath(twlBackupDataName)), @"FalsifiedTwlBackup");
Directory.CreateDirectory(outFolderPath); // 出力フォルダを作成
}
// TODO SetKeyData()とGetKeyData()的なものを用意して、privateにしたい
// TODO 出力ディレクトリを変更可能に
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("FalsifyTwlBackup")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("FalsifyTwlBackup")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから
// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、
// その型の ComVisible 属性を true に設定してください。
[assembly: ComVisible(false)]
// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です
[assembly: Guid("091345b4-3aed-43c3-a42a-1399c6154584")]
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@ -0,0 +1,6 @@
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Debug\FalsifyTwlBackup.exe
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Debug\FalsifyTwlBackup.pdb
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Debug\TWLBackupBlock.dll
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Debug\FalsifyTwlBackup.exe
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Debug\FalsifyTwlBackup.pdb

View File

@ -0,0 +1,6 @@
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Release\FalsifyTwlBackup.exe
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Release\FalsifyTwlBackup.pdb
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\bin\Release\TWLBackupBlock.dll
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Release\ResolveAssemblyReference.cache
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Release\FalsifyTwlBackup.exe
C:\Users\N2911\documents\visual studio 2010\Projects\FalsifyTwlBackup\FalsifyTwlBackup\obj\x86\Release\FalsifyTwlBackup.pdb