- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
09-10-2024 07:27 AM
I am using AutoIT.
Here are modification to the skeleton file that I renamed:
Global Const $DISPATCHER_NAME = "Hyena" ; CHANGE_ME
Global Const $CLIENT_EXECUTABLE = "C:\Program Files\Hyena\Hyena_x64.exe" ; CHANGE_ME
Global Const $ERROR_MESSAGE_TITLE = "PSM " & $DISPATCHER_NAME & " Dispatcher error message"
Global Const $LOG_MESSAGE_PREFIX = $DISPATCHER_NAME & " Dispatcher - "
Global $TargetUsername
Global $TargetPassword
Global $TargetAddress
Global $ConnectionClientPID = 0
I also updated applocker. The program runs and it logs in but then when I try to do anything in the program, it's saying incorrect username/password. I believe its not passing the credentials I picked.
Anyone have any ideas?
Thanks
09-10-2024 07:58 AM
Hello,
How are you launching the application from within your AutoIT connector? The variable definition looks OK, but there should be some point later where you actually open up Hyena using the target username and password. For example (an unrelated MySQL example):
LogWrite("starting client application")
ToolTip ("Starting " & $DISPATCHER_NAME & "...")
$ConnectionClientPID = Run($CLIENT_EXECUTABLE & " --query " & $TargetUsername & "@" & $TargetAddress)
if ($ConnectionClientPID == 0) Then
Error(StringFormat("Failed to execute process [%s]", $CLIENT_EXECUTABLE, @error))
EndIf
09-10-2024 08:21 AM
Hi EliH,
Thank you for your reply. I added the code but I get this error now. Unable to open shared settings file 'C:\Program files\Hyena\--query [email protected] : They system cannot find the file specified. Default values will be used. Verify shared settings file name and path under main > Settings > General.
Any additional assistance?
09-10-2024 08:47 AM
It looks like the '--query' portion is getting concatenated in to the path for the program executable, which is leading to the file not found error. We want it to launch the executable When you used the example code above, did you copy it straight out or make modifications?
There is another method in AutoIT using RunAs that could be used here as an alternative. The syntax looks something like this for a Chrome example:
; ------------------
; Launch Chrome
; ------------------
$ConnectionClientPID = RunAs ($TargetUsername, $TargetLogonDomain, $TargetPassword, 2, $CLIENT_EXECUTABLE &" "& $TargetAddress, "", @SW_SHOWMAXIMIZED) ; Target address can be hardcoded in double quotes "https://something.com"
You can check out the vendor documentation here: https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm
09-11-2024 06:13 AM
I guess I'm just confused and maybe you can shed some light. So, going into privilege cloud and selecting the username that has rights, hitting the connect drop down and choosing hyena. Why would it not use those credentials automatically? I think it's logging into the application with user PSM-4D00000000 instead of the username that is selected. The --query error was actually from the program, once it tried to login like that, it saved some shared settings under the application settings so I was able to remove that config in the actual application and no error this time. It's just not using the credentials I am trying to connect with.
Thank you for both of your help.
09-11-2024 10:52 AM
So, I think the issue is probably with how the thick client is being invoked from AutoIT. Referring back to their RunAs function here: https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm
What is your logon_flag set to in your wrapper script RunAs function? In my 'Chrome' example in an earlier comment, I had logon_flag set to 2, "network credentials only". Flag 4 might be better for your situation to try and get it to use the onboarded credentials instead.
09-12-2024 05:19 AM
Here are some thing I tried. Adding the domain username as administrator on the server, adding the domain user with logon locally rights, setting applocker to audit only.
I have tried the following lines:
$ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,0,$CLIENT_EXECUTABLE)
Using 0, 1, 2 and 4 I get failed to execute process [C:\program files\hyena\hyena_64.exe]
.
If I leave the default, $ConnectionClientPID = Run($CLIENT_EXECUTABLE) - it loads but not under the username I selected.
This is a regular application and not a web app if that helps.
11-07-2024 05:28 AM
Hello i'm working on Hyena too. It doesn't use the credentials as injected. The runas seems a good solution. Manually i can startup with the
runas /netonly
Without /netonly i get:
RUNAS ERROR: Unable to run - C:\Program Files\Hyena\Hyena_x64.exe
1385: Logon failure: the user has not been granted the requested logon type at this computer.
This would explain your error as it cannot startup.
Have to check how to use the /netonly in AutoIt
I'll let you now if this works
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

