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
#include <Windows.h> | |
#include <string.h> | |
#include <assert.h> | |
int main() | |
{ | |
WCHAR FileName[1024] = L"C:\\temp\\file.txt"; | |
HANDLE FileHandle1, FileHandle2; | |
FILE_DISPOSITION_INFO FileDispositionInformationData; |
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
// T.61 --> UTF-8 conversion table | |
static readonly char[] T61Table = new [] { | |
/* 00 */ '\u0000', /* 01 */ '\u0001', /* 02 */ '\u0002', /* 03 */ '\u0003', | |
/* 04 */ '\u0004', /* 05 */ '\u0005', /* 06 */ '\u0006', /* 07 */ '\u0007', | |
/* 08 */ '\u0008', /* 09 */ '\u0009', /* 0A */ '\u000A', /* 0B */ '\u000B', | |
/* 0C */ '\u000C', /* 0D */ '\u000D', /* 0E */ '\u000E', /* 0F */ '\u000F', | |
/* 10 */ '\u0010', /* 11 */ '\u0011', /* 12 */ '\u0012', /* 13 */ '\u0013', | |
/* 14 */ '\u0014', /* 15 */ '\u0015', /* 16 */ '\u0016', /* 17 */ '\u0017', | |
/* 18 */ '\u0018', /* 19 */ '\u0019', /* 1A */ '\u001A', /* 1B */ '\u001B', | |
/* 1C */ '\u001C', /* 1D */ '\u001D', /* 1E */ '\u001E', /* 1F */ '\u001F', |
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
================ Certificate 0 ================ | |
================ Begin Nesting Level 1 ================ | |
Element 0: | |
Serial Number: 6187c7f200020000001b | |
Issuer: CN=MS Passport Test Root CA, OU=Passport Test, O=Microsoft, L=Redmond, S=WA, C=US, E=asmemon@microsoft.com | |
NotBefore: 27/10/2009 23:31 | |
NotAfter: 14/12/2031 00:26 | |
Subject: CN=MS Passport Test Sub CA, DC=redmond, DC=corp, DC=microsoft, DC=com | |
CA Version: V1.1 | |
Certificate Template Name (Certificate Type): SubCA |
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
Microsoft (R) Windows Debugger Version 10.0.10586.567 X86 | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Loading Dump File [C:\Users\Filip Navara\Downloads\MailClient.exe.9480.dmp] | |
User Mini Dump File: Only registers, stack and portions of memory are available | |
Symbol search path is: srv* | |
Executable search path is: |
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
ContentInfo ci = new ContentInfo(new byte[1]); | |
SignedCms cms = new SignedCms(ci); | |
var cert = new System.Security.Cryptography.X509Certificates.X509Certificate2(@"C:\Users\Filip Navara\Documents\Certs\ica2.crt"); | |
CmsSigner signer = new CmsSigner(SubjectIdentifierType.NoSignature, cert); | |
signer.DigestAlgorithm = new Oid("2.16.840.1.101.3.4.2.1"); // SHA256 | |
cms.ComputeSignature(signer); | |
MIGbBgkqhkiG9w0BBwKggY0wgYoCAQExDzANBglghkgBZQMEAgEFADAQBgkqhkiG9w0BBwGgAwQBADFiMGACAQEwHDAXMRUwEwYDVQQDEwxEdW1teSBTaWduZXICAQAwDQYJYIZIAWUDBAIBBQAwDAYIKwYBBQUHBgIFAAQgbjQLnP+zepicpUTmu3gKLHiQHT+zNzh2hRGjBhevoB0= |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
"gopkg.in/src-d/go-git.v4" | |
"gopkg.in/src-d/go-git.v4/plumbing" | |
"gopkg.in/src-d/go-git.v4/plumbing/object" |
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
package commitgraph | |
import ( | |
"bytes" | |
"errors" | |
"io" | |
"math" | |
"time" | |
"gopkg.in/src-d/go-git.v4/plumbing" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Classes\com.emclient.MailClient] | |
"URL Protocol"="" | |
[HKEY_CURRENT_USER\Software\Classes\com.emclient.MailClient\shell] | |
[HKEY_CURRENT_USER\Software\Classes\com.emclient.MailClient\shell\open] | |
[HKEY_CURRENT_USER\Software\Classes\com.emclient.MailClient\shell\open\command] |
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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Reflection; | |
namespace WebExceptionTest | |
{ | |
class MainClass | |
{ | |
public static void Main(string[] args) |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Text.RegularExpressions; | |
namespace MailClient.Utils | |
{ |
OlderNewer