Invicti IAST for ASP .NET Core
|
Deploying Invicti IAST for ASP .NET Core websites
The Invicti IAST agent must be deployed to your web application. This section describes how to deploy Invicti IAST to an ASP.NET Core web application.
Prepare the Invicti IAST for .NET Core
- Download the Invicti .NET IAST sensor file for your target. For instructions, refer to Installing Invicti IAST.
- Create a folder that will host your Invicti IAST files. In this example, we have used a folder called C:\iastsensor.
- Extract the files from the downloaded dotnet-iastsensor.zip file to another destination folder.
- Navigate to the destination folder and open the .NET Core subfolder.
- Select and copy all the items inside the subfolder.
- Navigate to the folder you created in Step 2 above (in our example C:\iastsensor).
- Paste into the folder the files you copied in Step 5 above.
Deploying into a Kestrel .NET Core website
- Navigate to your web application root folder.
- Create a new sitelauncher.bat file inside your web application root folder with the following contents (replacing axexample-dotnetcore.exe with the name of the executable file for your web application):
SET SENSOR_SETTINGS_PATH=C:/iastsensor/settings.ini |
- From the command line, navigate to your web application root folder and launch your web application.
Deploying into a Kestrel .NET Core website on Linux
- Navigate to your web application root folder.
- Create a new sitelauncher.sh file inside your web application root folder with the following contents (replacing axexample-dotnetcore.dll with the name of the executable file for your web application):
#!/bin/bash |
- From the command line, navigate to your web application root folder and launch your web application
Deploying into an IIS .NET Core website
- Navigate to your web application root folder.
- Edit your web.config file to add environment variables for using Invicti IAST:
<?xml version="1.0" encoding="utf-8"?> |
- Restart your web application from IIS Manager.