{"id":7414,"date":"2020-08-23T00:39:57","date_gmt":"2020-08-23T00:39:57","guid":{"rendered":"https:\/\/www.hexacorn.com\/blog\/?p=7414"},"modified":"2020-08-23T00:42:48","modified_gmt":"2020-08-23T00:42:48","slug":"odbcconf-lolbin-trifecta","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2020\/08\/23\/odbcconf-lolbin-trifecta\/","title":{"rendered":"ODBCConf &#8211; Lolbin Trifecta"},"content":{"rendered":"\n<p>I posted about <a href=\"https:\/\/www.hexacorn.com\/blog\/2017\/10\/04\/running-programs-via-proxy-jumping-on-a-edr-bypass-trampoline-part-2\/\">ODBCConf<\/a> before and then posted again on <a href=\"https:\/\/twitter.com\/Hexacorn\/status\/1187143326673330176\">Twitter<\/a>.<\/p>\n\n\n\n<p>The Twitter bit was about REGSVR:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">odbcconf.exe \/a {REGSVR c:\\test\\test.dll}<\/pre>\n\n\n\n<p> &#8211; loads a DLL<\/p>\n\n\n\n<p>At that time I looked at other ACTIONS accepted by this tool, but didn&#8217;t explore them fully. Of course, the one I did want to explore the most was INSTALLDRIVER, but put it on a backburner. I eventually tested it today and here&#8217;s the result:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ODBCConf \/ld foo \/a {INSTALLDRIVER \"test|Driver=c:\\test\\test64.dll|APILevel=2\"}<\/pre>\n\n\n\n<p>This will set up &#8216;test&#8217; driver entry in Registry.<\/p>\n\n\n\n<p>We then need to force that DLL to load. There are two ways &#8212; via GUI &#8212; need to launch odbcad32.exe, then click &#8216;Add DSN&#8217; and choose &#8216;test&#8217;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/08\/lolbin2.gif\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/08\/lolbin2.gif\" alt=\"\" class=\"wp-image-7418\" width=\"500\"\/><\/a><\/figure>\n\n\n\n<p>Or, we can do it via command line as well \ud83d\ude42<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">odbcconf configsysdsn \"test\" \"DSN=test\"<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/08\/lolbin.gif\"><img decoding=\"async\" src=\"https:\/\/www.hexacorn.com\/blog\/wp-content\/uploads\/2020\/08\/lolbin.gif\" alt=\"\" class=\"wp-image-7415\" width=\"500\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I posted about ODBCConf before and then posted again on Twitter. The Twitter bit was about REGSVR: odbcconf.exe \/a {REGSVR c:\\test\\test.dll} &#8211; loads a DLL At that time I looked at other ACTIONS accepted by this tool, but didn&#8217;t explore &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/08\/23\/odbcconf-lolbin-trifecta\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[56,64],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7414"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=7414"}],"version-history":[{"count":3,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7414\/revisions"}],"predecessor-version":[{"id":7419,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/7414\/revisions\/7419"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=7414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=7414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=7414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}