Jump to content

learner123

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by learner123

  1. @TheXman So In my project we are creating an application which is used to test the accessibility of many of our client's sites. we check if we are able to reach the URL, open the URL using credential and check some data inside those URL. So there is one app within which many URL are present which we need to check and to access this application it requires RSA token as password . So we have created a script for it.
  2. @Danp2 How is my question bypassing security measures? I have checked similar questions but but was not able to find my solution so I have asked.
  3. @Earthshine Hi Earthshine, So there is a RSA app located in my server that generates a token number after we enter a password in it and I need this token number in my java code. So since this opening of RSA, entering password and copying generated code involves keyboard interaction, I have used AuTOIT . After copying is done code resides in clipboard and I retrieve this clipboard value in my java code and use it. I am new to automation so let me know if you have any other suggestion to achieve this functionality, i will look into it.
  4. Hi All, I am new to this AUTO IT and I have created a script that will open an app,enter pin and copy the code generated to clipboard. My java code call this autoIT script and use the copied generated code from clipboard. This works fine when server window is on focus. My server is an windows server. But when I minimize or disconnect the server, the script opens the app.exe but doesn't copy any value to clipboard. Can anyone help me on this 😐 Run("C:\Program Files (x86)\RSA SecurID Software Token\SecurID.exe") Local $hWnd=WinWait("abc - RSA SecurID Token") ; waits until the window is the active window $hWin = WinGetHandle("abc - RSA SecurID Token"); ControlSend($hWnd,"","","1111") ; simulates pressing the Home key ControlSend($hWnd,"","","{ENTER}"); ControlSend($hWnd,"","","^c"); Sleep(1000) ; ControlSend($hWnd,"","","^c");
  5. I changes the script as below but this too is not working when server window is minimized. Opt("WinTitleMatchMode", 1) Local $hWnd=WinWait("rsa- RSA SecurID Token") ; waits until the window is the active window ControlSend($hWnd,"","","1111") ; simulates pressing the Home key ControlSend($hWnd,"","","{ENTER}"); ControlSend($hWnd,"","","^c");
  6. Hi All, So I have created a small autoIT script to enter pin into a RSA token(app which generate new code every 30 second), and copy the generated code. I have a java application which requires this code so every time my java-code requires this RSA code, it runs the autoIT script and the copied generated code is then used in my java application. I have deployed this code on a windows server and it works fine when I am logged in and the window is on focus, But as soon as I schedule task and disconnect the server (not logged out only disconnect), or even minimize the server window, the autoIT scripts fails and its not able to copy the value. Please find below the code for AUTOIT. WinActivate("rsa - RSA SecurID Token") ; activates the window that has old in the tilte bar WinWaitActive("rsa - RSA SecurID Token") ; waits until the window is the active window Send("1111") ; simulates pressing the Home key, enters password to get the code Send("{ENTER}") ; simulates pressing the Enter key Sleep(1000) ; Send("^c") ; simulates pressing the CTRL+c keys (copy) Also I saw some post regarding that WINACTIVE only works when window is active. But my below AUTO IT script to handle windows pop up works perfectly fine when the server is disconnected. Opt("WinTitleMatchMode", 1) WinWait("https://url","","10") WinWaitActive("https://url","","10") Sleep(2000) Send("userid") Sleep(1000) Send("{TAB}") Sleep(1000) Send("passwrd") Send("{TAB}") Sleep(500) Send("{ENTER}")
×
×
  • Create New...