<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vamshivam on Medium]]></title>
        <description><![CDATA[Stories by Vamshivam on Medium]]></description>
        <link>https://medium.com/@vamshivam144?source=rss-77c3d1b26c06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KimQjuUda7MOw5-F</url>
            <title>Stories by Vamshivam on Medium</title>
            <link>https://medium.com/@vamshivam144?source=rss-77c3d1b26c06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:13:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vamshivam144/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Create PSM Connectors Using AutoIT]]></title>
            <link>https://medium.com/@vamshivam144/create-psm-connectors-using-autoit-637fdd22830b?source=rss-77c3d1b26c06------2</link>
            <guid isPermaLink="false">https://medium.com/p/637fdd22830b</guid>
            <category><![CDATA[cyberark-course]]></category>
            <category><![CDATA[cyberark]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[autoit]]></category>
            <dc:creator><![CDATA[Vamshivam]]></dc:creator>
            <pubDate>Sun, 14 Apr 2024 15:05:34 GMT</pubDate>
            <atom:updated>2024-04-14T15:05:34.564Z</atom:updated>
            <content:encoded><![CDATA[<p>In this is article I will explain how to effortlessly create PSM connectors using AutoIT scripting language.</p><p><strong>Note</strong>: This just give high level understanding of Creating Custom Universal Connectors but not more about how each command in the script works.</p><p>Before developing AutoIT script and creating the universal connector. Let’s breaks this into steps and make it easy for developers to have standardized process.</p><ol><li><strong>Install AutoIT Application and Client Application.</strong></li><li><strong>Develop the AutoIT script.</strong></li><li><strong>Create the connector.</strong></li><li><strong>Test the connector.</strong></li><li><strong>Integrate with PVWA.</strong></li></ol><p><strong>Link to download AutoIT Application</strong>: <a href="https://www.autoitscript.com/autoit3/files/archive/autoit/">https://www.autoitscript.com/autoit3/files/archive/autoit/</a></p><p><strong>Client Application: </strong>It depends on the target client you want to integrate (Ex: SQLDeveloper, FileZilla, MongoDB…etc)</p><p>For this demo, I will be integrate DBeaver Client application to launch Oracle DB. DBeaver is basically a Universal Database client.</p><p><strong>DBeaver Link</strong>: <a href="https://dbeaver.io/files/dbeaver-ce-latest-x86_64-setup.exe">https://dbeaver.io/files/dbeaver-ce-latest-x86_64-setup.exe</a></p><p>Now we have completed installing AutoIT and Client Application DBeaver. Let start developing the AutoIT script.</p><p>AutoIT provides us with the script editor called SciTE editor which is main script editor. It can auto complete command. We can debug our code live for any error. Use <strong>F5</strong> to run the script and <strong>F1 </strong>for help.</p><p>AutoIT helper tool helps us in finding elements.</p><p>Let’s start developing the script.</p><p>Before developing script. Understand the login flow of the client application and also handle pop-ups if any.</p><p>Login flow for DBeaver application is documented here: &lt;Link Here&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*kRaSivWPstCEoAGqAQl5tA.png" /></figure><p>Ok.Let’s start the script….</p><p><strong>Run(“C:\Program Files\DBeaver\DBeaver.exe”)</strong></p><p>;Launches the client application.</p><p><strong>Sleep(5000)</strong></p><p>;Pauses the execution of the script. There are other alternative for effective use. But I preffered to use it because of flow of my application.</p><p><strong>Local $hWnd = WinGetTiltle (“[ACTIVE]”)</strong></p><p>;$hWnd is a local varianle</p><p>;WinGetTitle gives title of the active window. Which we can use it further handling the login flow.</p><p>;I have 2–3 popus on launching the application for the very first time. So, I’m using $hWnd to store the title given by WinGetTitle() function and getting rid of them using <strong>If</strong> conditons.</p><p>;Using ConsoleWrite for just debugging purpose.</p><p><strong>Note: </strong>Use AutoIt helper to get the Title of the window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*lkZZsS7whB5wB-VbxhczAA.png" /><figcaption>AutoIt Windows Info Helper</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WkuU6kFhHlyUqwwzhMqhow.png" /><figcaption>First Pop up after launching the application</figcaption></figure><p>[ Title = “<strong>Create sample database</strong>” , <strong>ControlID</strong> = Class + Instance = Button2 ]</p><p>Handling it through IF condition as we will be encountering at first launch only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Ku3T8G_8mkRA9yQ2IJLoag.png" /><figcaption>Sencond popup after above one</figcaption></figure><p>[ <strong>Title</strong> = “Connect to database” , <strong>ControlID</strong> = Class + Instance = Button14 ]</p><p>Handling it through nested IF condition as we will be encountering at first launch only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*SqYRh-zs2MQeB0WVnMUBug.png" /><figcaption>3rd popup after abover.</figcaption></figure><p>[ <strong>Title</strong> = “Statistics collection” , Send <strong>2 tabs</strong> and click space to check the “<strong>Do not share data</strong>.” checkbox. <strong>ControlID</strong> = Class + Instance = Button2 ]</p><p>Handling it through nested IF condition as we will be encountering at first launch only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6UWff0-odTisdAvaa6ra2g.png" /><figcaption><strong>Main Window</strong>: This is the main active window to next launches.</figcaption></figure><p>[ <strong>Title</strong> = “DBeaver 24.0.2” , Send CTRL + SHIFT + N = <strong>Send(“^N”) ]</strong></p><p>;New Database creation window will be open.</p><p>Note: Sometime below popup may appear in consecutive launches. I have handled it through If condition again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RafX6Q3h8STD7tCraq5AUg.png" /><figcaption>Popup to handle</figcaption></figure><p>[ <strong>Title</strong> = “Tip of the day” , ControlID = Class + Instance = Button4<strong>]</strong></p><p>Below window will appear when we send CTRL+SHIFT+N in the main window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*RrGMecqAfGcxbAu90drz3A.png" /></figure><p>; Wait for this window to be activated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*uCq3jno32xlWc4p3cci2rw.png" /></figure><p>Enter Oracle in the text box and and click on the Oracle icon and click Next.</p><p><strong>Functions used</strong>: [ <strong>Send(“Orcale”) </strong>to enter Oracle in TextBox and<strong> Send(“{TAB}”) </strong>to Click on Oracle Icon<strong>. </strong>Focus will be on Next button so you can just send Enter <strong>Send(“{ENTER}”).]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*NwRQs0NYQSZpICH_V7R78Q.png" /><figcaption>Immediate next window.</figcaption></figure><p>; Here in this window you need to enter <strong>Hostname</strong>, <strong>Database</strong> name, <strong>username</strong> and uncheck save password.</p><p>; To set text in each text box. I’m using <strong>ControlSetText(“Title Name”, “”, “ControlID”, “New text”)</strong> function which replaces the current control text with desired text.</p><p>; Using <strong>ControlClick()</strong> to check the checkbox and again use ControlClick to click on next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fyz-tApzTh4PolUrH2EYg.png" /></figure><p>;After clicking Next. The immediate focus will be on our connection name. So, simply send Enter. <strong>Send(“{ENTER}”)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAqqQ8-SXnUrCgSWslFVRw.png" /><figcaption>Password Window</figcaption></figure><p>;A new window will appear after clicking enter to input password.</p><p>;<strong>ControlSetText(“[REGEXPTITLE:.*Authentication.*]”,””,”Edit2&quot;,”Cyberark1)</strong></p><p>Above command will set the Password. We are maching the title will regular expression as the connection name changes the Title of the window changes. Common text in the window will be <strong>Authentication</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zStAawL4SGDaHVtB7oNqA.png" /><figcaption>We are logged into database succesfully.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*-7wqo9BntH9148pGEk3tfg.png" /><figcaption><strong>Yayyy!</strong></figcaption></figure><p>Developed Code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*qjPg-odOv-Dhamtn-7MApQ.png" /><figcaption>Page 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*4J0uLf0ii-G1P2OMcJuxYg.png" /><figcaption>Page 3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*POAhO_9FqF5EBCSkXrOZuA.png" /><figcaption>Page 4</figcaption></figure><p>;Now we are done with developing the code.</p><p>Let’s start creating the Custom Universal Connector.</p><ol><li>Copy the PSMAutoItDispatcherSkeleton file from PSM’s Components folder.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXXxhMcOzKQ8lgLTkkUeGw.png" /></figure><p>2. Areas you may want to modify in the skeleton file will be marked with the string “<strong>CHANGE_ME</strong>“.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cG7AJc1rBr7abdcaMT_gaw.png" /></figure><p>3. Set the dispatcher name and path for the application executable accordingly.</p><p>4. Copy your script under the “Handle login here!” section and replace hard coded values with variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_86pzkn2Ya5r0FKM7M8BwQ.png" /></figure><p>5. Declare new Variables if needed. Adjust the FetchSessionProperties accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lu3me9agR93jbji8n9i7vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TCf28YPcdsVhiLdvGPxRCA.png" /></figure><p><strong>Test The Connector</strong></p><ol><li>Copy the following files from PSM’s Components folder:</li></ol><p>•PSMGenericClientDriver.dll</p><p>• PSMGenericClientDriver.xml</p><p>• PSMGenericClientWrapper.au3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7E4RldYNPbvXDpApS75lQ.png" /></figure><p>2. Insert the test credentials into the PSMGenericClient.xml file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yu7kqCWS7avX46eXBpuQig.png" /></figure><p>3. Run the test driver using the following command:</p><p>4 In command prompt cd “C:\ProgramFiles (x86)\CyberArk\PSM\Components\”</p><p>5. Run the following command:</p><p>“C:\Program Files (x86)\AutoIt3\AutoIt3.exe” “C:\Program Files (x86)\CyberArk\PSM\Components\The Dispatcher Name.au3” “C:\Program Files (x86)\CyberArk\PSM\Components\” /test</p><p>Link:<strong> </strong><a href="https://cyberark.my.site.com/s/article/00004913"><strong>https://cyberark.my.site.com/s/article/00004913</strong></a></p><p><strong>Integrate With PVWA</strong></p><ol><li>Compile an executable from your au3 script file and copy it to PSM’s Components folder.</li></ol><p><a href="https://cyberark.my.site.com/s/article/How-to-compile-an-executable-exe-from-a-au3-file">Support Community</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*Ib7Wg0P1VWCf5DQp6Vfg-w.png" /></figure><p>2. Create a new Connection Component using the PSMVNCClientSample as a template and adjust accordingly.</p><p>Set a unique ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CFnXUMRS78zvfkfYNanbRQ.png" /></figure><p>Point to the compiled executable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bt4Lva6q8DdM4MlWkFS0cg.png" /></figure><p>Add any additional parameters if required</p><p>3. Associate the new Connect Component with the relative Platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*2prMy86Huk7nUHWa2TpPVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBUUJ9FZnVw_CyxA2JKiOA.png" /></figure><p><strong>Note</strong>: Please don’t forget to wipe out any hard coded credentials in the PSM server.</p><p>That’s the end………..</p><p>#CyberArk #AutoIt</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=637fdd22830b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Login With Master Account]]></title>
            <link>https://medium.com/@vamshivam144/login-with-master-account-848cde3f1dbb?source=rss-77c3d1b26c06------2</link>
            <guid isPermaLink="false">https://medium.com/p/848cde3f1dbb</guid>
            <category><![CDATA[cyberark]]></category>
            <dc:creator><![CDATA[Vamshivam]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 17:15:31 GMT</pubDate>
            <atom:updated>2024-04-14T15:07:18.751Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Make sure you have Master CD content (recprv.key)</li><li>Copy the recprv.key to the vault securely or attach it through the removable media.</li><li>Open the DBParm.ini located in &lt;Installation Drive&gt;/PrivateArk/Server/Conf/DBParm.ini</li><li>Add the parameter RecPrvKeyPath=”&lt;Replace this with RecPrvKey Path&gt;”</li><li>Save the changes to the DBParm.ini</li><li>Restart the Private Server Service.</li><li>Post that use PrivateArk client to login with Master user. Make sure you have choose PrivateArk authentication.</li></ol><p>Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848cde3f1dbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>