summaryrefslogtreecommitdiffstats
path: root/keygen
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2007-06-09 06:25:34 +0000
committerjsorg71 <jsorg71>2007-06-09 06:25:34 +0000
commit5f4dacbaad35ce51d6b4ef19566645c94d5ab402 (patch)
tree27477a9fccb1d14aa73e4881edd4b3dea9c320a7 /keygen
parent32cee722e18625335fa28963e6f4f5c86a4d31ca (diff)
downloadxrdp-proprietary-5f4dacbaad35ce51d6b4ef19566645c94d5ab402.tar.gz
xrdp-proprietary-5f4dacbaad35ce51d6b4ef19566645c94d5ab402.zip
added ppk
Diffstat (limited to 'keygen')
-rwxr-xr-xkeygen/keygen.c48
1 files changed, 47 insertions, 1 deletions
diff --git a/keygen/keygen.c b/keygen/keygen.c
index 363eecd5..fd854eeb 100755
--- a/keygen/keygen.c
+++ b/keygen/keygen.c
@@ -20,6 +20,13 @@
*/
+/*
+ references:
+
+ http://www.securiteam.com/windowsntfocus/5EP010KG0G.html
+
+*/
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -34,7 +41,46 @@
#define MY_KEY_SIZE 512
-static char g_rev_exponent[4] = { 0x00, 0x01, 0x00, 0x01 };
+static char g_rev_exponent[4] =
+{
+ 0x00, 0x01, 0x00, 0x01
+};
+
+static char g_ppk_e[4] =
+{
+ 0x5B, 0x7B, 0x88, 0xC0
+};
+
+static char g_ppk_n[72] =
+{
+ 0x3D, 0x3A, 0x5E, 0xBD, 0x72, 0x43, 0x3E, 0xC9,
+ 0x4D, 0xBB, 0xC1, 0x1E, 0x4A, 0xBA, 0x5F, 0xCB,
+ 0x3E, 0x88, 0x20, 0x87, 0xEF, 0xF5, 0xC1, 0xE2,
+ 0xD7, 0xB7, 0x6B, 0x9A, 0xF2, 0x52, 0x45, 0x95,
+ 0xCE, 0x63, 0x65, 0x6B, 0x58, 0x3A, 0xFE, 0xEF,
+ 0x7C, 0xE7, 0xBF, 0xFE, 0x3D, 0xF6, 0x5C, 0x7D,
+ 0x6C, 0x5E, 0x06, 0x09, 0x1A, 0xF5, 0x61, 0xBB,
+ 0x20, 0x93, 0x09, 0x5F, 0x05, 0x6D, 0xEA, 0x87,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+
+static char g_ppk_d[108] =
+{
+ 0x87, 0xA7, 0x19, 0x32, 0xDA, 0x11, 0x87, 0x55,
+ 0x58, 0x00, 0x16, 0x16, 0x25, 0x65, 0x68, 0xF8,
+ 0x24, 0x3E, 0xE6, 0xFA, 0xE9, 0x67, 0x49, 0x94,
+ 0xCF, 0x92, 0xCC, 0x33, 0x99, 0xE8, 0x08, 0x60,
+ 0x17, 0x9A, 0x12, 0x9F, 0x24, 0xDD, 0xB1, 0x24,
+ 0x99, 0xC7, 0x3A, 0xB8, 0x0A, 0x7B, 0x0D, 0xDD,
+ 0x35, 0x07, 0x79, 0x17, 0x0B, 0x51, 0x9B, 0xB3,
+ 0xC7, 0x10, 0x01, 0x13, 0xE7, 0x3F, 0xF3, 0x5F,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00
+};
/*****************************************************************************/
static void