OpenBAS agent failed to install on windows machine
Description
There is an error with the installation script.
Environment
OS: win 10 x86_64 OpenBAS version: 1.1.0 https://demo.obas.filigran.io/
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Copy the installation command to windows cmd (admin mode)
Expected Output
agent is installed
Actual Output
Error
Additional information
I managed to install the agent by downloading it manually then executing the powershell commands separately
Tested locally from demo, and it works well. Waiting for Mark's point to check.
Actions (07-08-24 With Mark):
- Update powershell: OK (this prevents SSL certificate errors: origin of this ticket)
- Create folder for agent : OK
- Create service : OK Next time
- Execute command iwr from demo
Actions (07-22-24 with Mark): Guide: https://www.notion.so/filigran/OpenBAS-Community-a276855e122b480cadacbb47133a508a We're still encountering errors when we try to install the agent on the Windows VM, possibly due to conflicts with services that are either not stopped or do not exist.
Actions (19-08-24):
I got access to a copy of Mark's VM and was able to install the OpenBas agent. The procedure was as follows: I created a folder at C:\Program Files (x86)\Filigran and used this path to create a service named 'OpenBas Agent Service'. Then, I used the following command to retrieve all the files for the OpenBas agent: iex (iwr "https://testing.obas.staging.filigran.io/api/agent/installer/openbas/windows/8aa00a10-9d01-4ca8-aa28-e225923f65f2").Content. After that, I was able to locate the machine on openbas-staging/endpoints/ and execute a custom payload.