{"id":1013,"date":"2016-10-18T23:49:58","date_gmt":"2016-10-19T04:49:58","guid":{"rendered":"https:\/\/www.softwareab.net\/wordpress\/?p=1013"},"modified":"2016-10-18T23:56:59","modified_gmt":"2016-10-19T04:56:59","slug":"openssl-1-1-windows-10","status":"publish","type":"post","link":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/","title":{"rendered":"OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;"},"content":{"rendered":"<h2>Goal<\/h2>\n<p>Today&#8217;s desire: Build <a href=\"http:\/\/blog.quarkslab.com\/quarks-pwdump.html\">Quarks PwDump<\/a> as part of my CEH studying. Note to self: PwDump doesn&#8217;t build OOTB on VS2015 CE because the <a href=\"https:\/\/www.openssl.org\">OpenSSL<\/a> library it ships with fails to link.<\/p>\n<p>Today&#8217;s feat and the reason for this article: Building OpenSSL 1.1 on a new Windoze 10 VM so I can get Quarks PwDump to link.<\/p>\n<p>Followed recipe at <a href=\"http:\/\/stackoverflow.com\/questions\/34410711\/how-to-build-openssl-in-vs2015-x86cpuid-asm-is-an-empty-file\">http:\/\/stackoverflow.com\/questions\/34410711\/how-to-build-openssl-in-vs2015-x86cpuid-asm-is-an-empty-file<\/a> but required a few changes.<\/p>\n<h2>Environment<\/h2>\n<ul>\n<li>Windows 10 with latest Service Packs<\/li>\n<li><a href=\"https:\/\/gpg4win.org\">GPG4Win 2.3.3<\/a>. Those bastards. This freeware&#8230;required a donation. I just didn&#8217;t have the time to go thru and compile the source code, so I gave &#8217;em $5. Hope they choke on it.<\/li>\n<li><a href=\"http:\/\/www.nasm.us\">NASM 2.12.02<\/a><\/li>\n<li><a href=\"http:\/\/strawberryperl.com\">Strawberry Perl 5.24.0.1 (64-bit).<\/a><\/li>\n<\/ul>\n<h2>Build<\/h2>\n<ol>\n<li>Install GPG4Win, NASM, and Strawberry Perl. VS2015 CE already comes with a <code>git<\/code> option (I installed basically everything as I may end up building all kinds of stuff).<\/li>\n<li><strong>Important:<\/strong> Open an <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc947813(v=ws.10).aspx\">Administrator Command Prompt<\/a>. You need this because when we build OpenSSL &#8211; some of the install creates a standalone CA in your <code>C:\\Program Files (x86)\\Common\\SSL<\/code> folder and you won&#8217;t have permissions otherwise. Unless you&#8217;ve done something stupid like run as an Admin on your dev box. But you didn&#8217;t do anything that bone-headed, did you? If so &#8211; stop it Now.<\/li>\n<li>Pull down openssl:\n<pre><code>mkdir d:\\proj\\openssl\r\nd:\r\n\r\ncd \\proj\\openssl\r\n\r\ngit clone https:\/\/github.com\/openssl\/openssl.git\r\n\r\nrename openssl src<\/code><\/pre>\n<p>OK, I did something Kinda Stoopid here &#8211; I&#8217;m following the recipe above, and I renamed the perfectly-adequate <code>openssl<\/code> folder to be <code>src<\/code> to match the recipe. So don&#8217;t be confused in the following instructions.<\/li>\n<li>Setup your local environment. Notice that I installed the tools on my <code>D:\\<\/code> drive (I have more room on it):\n<pre><code>set path=%path%;\"D:\\Program Files (x86)\\NASM\";D:\\Strawberry\\perl\\bin\r\n\r\nperl Configure VC-WIN32 --prefix=D:\\proj\\openssl\\build enable-static-engine\r\n\r\n\"d:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\vcvars32.bat\"<\/code><\/pre>\n<p>OK &#8211; So you can see I installed VS2015 CE on my <code>D:\\<\/code> drive as well.<\/li>\n<li>Do the build:\n<pre><code>nmake\r\n\r\nnmake test\r\n\r\nnmake install<\/code><\/pre>\n<p>Lots of code spits out. If all goes well, you will see things being built and copied.<\/li>\n<\/ol>\n<h2>Test<\/h2>\n<p>On my system I now have everything built in <code>D:\\proj\\openssl\\build<\/code> folder (that was the the &#8220;prefix&#8221; I gave in the configuration command above). Let&#8217;s check the version:<\/p>\n<pre><code>D:\\proj\\openssl\\src&gt;<strong>D:\\proj\\openssl\\build\\bin\\openssl.exe version<\/strong>\r\n<em>OpenSSL 1.1.1-dev  xx XXX xxxx<\/em><\/code><\/pre>\n<p>That looks good! Now let&#8217;s check for libraries:<\/p>\n<pre><code>D:\\proj\\openssl\\src&gt;<strong>dir D:\\proj\\openssl\\build\\lib<\/strong>\r\n<em> Volume in drive D is DevTools\r\n Volume Serial Number is F488-92EA\r\n\r\n Directory of D:\\proj\\openssl\\build\\lib\r\n\r\n10\/18\/2016  08:29 PM    &lt;DIR&gt;          .\r\n10\/18\/2016  08:29 PM    &lt;DIR&gt;          ..\r\n10\/18\/2016  08:29 PM    &lt;DIR&gt;          engines-1_1\r\n10\/18\/2016  08:42 PM           925,662 libcrypto.lib\r\n10\/18\/2016  08:42 PM            97,020 libssl.lib\r\n               2 File(s)      1,022,682 bytes\r\n               3 Dir(s)  36,995,768,320 bytes free<\/em><\/code><\/pre>\n<p>That looks even better&#8230;we have libraries.<\/p>\n<p>As for Quarks PwDump? Built and linked like a charm with the two <code>.lib<\/code> files above.<\/p>\n<p>So, who would have guessed? Windoze is <strong>not<\/strong> completely useless after all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Goal Today&#8217;s desire: Build Quarks PwDump as part of my CEH studying. Note to self: PwDump doesn&#8217;t build OOTB on VS2015 CE because the OpenSSL library it ships with fails to link. Today&#8217;s feat and the reason for this article: &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\"> <span class=\"screen-reader-text\">OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,12],"tags":[92],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab<\/title>\n<meta name=\"description\" content=\"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab\" \/>\n<meta property=\"og:description\" content=\"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\" \/>\n<meta property=\"og:site_name\" content=\"softwareab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-19T04:49:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-10-19T04:56:59+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Bruce\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:site\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Bruce\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\"},\"author\":{\"name\":\"Andrew Bruce\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"headline\":\"OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;\",\"datePublished\":\"2016-10-19T04:49:58+00:00\",\"dateModified\":\"2016-10-19T04:56:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\"},\"wordCount\":369,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"keywords\":[\"windows\"],\"articleSection\":[\"Teknocratica\",\"Windows Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\",\"name\":\"OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\"},\"datePublished\":\"2016-10-19T04:49:58+00:00\",\"dateModified\":\"2016-10-19T04:56:59+00:00\",\"description\":\"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"windows\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/tag\/windows\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/\",\"name\":\"softwareab\",\"description\":\"Technocratica, Technopolitik, Technophobia\",\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\",\"name\":\"Andrew Bruce\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"contentUrl\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"width\":400,\"height\":330,\"caption\":\"Andrew Bruce\"},\"logo\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!\",\"sameAs\":[\"http:\/\/cloudraticsolutions.net\/\",\"https:\/\/www.facebook.com\/cloudraticsolutions\/\",\"https:\/\/twitter.com\/realcloudratics\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab","description":"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/","og_locale":"en_US","og_type":"article","og_title":"OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab","og_description":"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.","og_url":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/","og_site_name":"softwareab","article_publisher":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_author":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_published_time":"2016-10-19T04:49:58+00:00","article_modified_time":"2016-10-19T04:56:59+00:00","author":"Andrew Bruce","twitter_card":"summary_large_image","twitter_creator":"@realcloudratics","twitter_site":"@realcloudratics","twitter_misc":{"Written by":"Andrew Bruce","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#article","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/"},"author":{"name":"Andrew Bruce","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"headline":"OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;","datePublished":"2016-10-19T04:49:58+00:00","dateModified":"2016-10-19T04:56:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/"},"wordCount":369,"commentCount":0,"publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"keywords":["windows"],"articleSection":["Teknocratica","Windows Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/","url":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/","name":"OpenSSL 1.1 and VS2015 and QuarksPwDump - Oh My... - softwareab","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#website"},"datePublished":"2016-10-19T04:49:58+00:00","dateModified":"2016-10-19T04:56:59+00:00","description":"Need to link a program that uses an older OpenSSL libeay32.lib with the latest OpenSSL library direct from source? Read on to see how we did it.","breadcrumb":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwareab.net\/wordpress\/openssl-1-1-windows-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwareab.net\/wordpress\/"},{"@type":"ListItem","position":2,"name":"windows","item":"https:\/\/www.softwareab.net\/wordpress\/tag\/windows\/"},{"@type":"ListItem","position":3,"name":"OpenSSL 1.1 and VS2015 and QuarksPwDump &#8211; Oh My&#8230;"}]},{"@type":"WebSite","@id":"https:\/\/www.softwareab.net\/wordpress\/#website","url":"https:\/\/www.softwareab.net\/wordpress\/","name":"softwareab","description":"Technocratica, Technopolitik, Technophobia","publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600","name":"Andrew Bruce","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","contentUrl":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","width":400,"height":330,"caption":"Andrew Bruce"},"logo":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/"},"description":"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!","sameAs":["http:\/\/cloudraticsolutions.net\/","https:\/\/www.facebook.com\/cloudraticsolutions\/","https:\/\/twitter.com\/realcloudratics"]}]}},"_links":{"self":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/1013"}],"collection":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/comments?post=1013"}],"version-history":[{"count":8,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/1013\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/1013\/revisions\/1021"}],"wp:attachment":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/media?parent=1013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/categories?post=1013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/tags?post=1013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}