Skip to main content
This document is for:
Invicti Enterprise on-demand

Deploy Invicti Shark for .NET Core

Invicti Shark enables you to carry out interactive security testing (IAST) in your web application to confirm more vulnerabilities and further minimize false positives.

For Invicti Shark to operate, you need to download an agent and deploy it on your server. Please note that this agent is generated uniquely for each target website for security reasons.

This document explains how to download and copy the Shark files to your hard disk and install the Shark to your web application.

Download the Shark agent

You can find the required instructions to download the Shark agent in Deploying Invicti Shark.

Supported versions

Invicti Shark supports .NET Core 3.1 on Windows and Linux. Testing has been performed on Debian 10 and 11, Ubuntu 18.04, 20, 22, and CentOS Stream 9. Generally, this sensor should work on any distributions that .NET Core runtime supports.

Prepare the .NET Core Shark

  1. Create a folder to host the Invicti Shark files. For this example, assume the folder is C:\shark.
  2. Right-click the downloaded Shark ZIP file.
  3. Choose Extract All
  4. Choose a destination folder and choose Extract.
  5. Navigate to the destination folder and enter the .NET Core subfolder.
  6. Choose all the items inside the subfolder, right-click them, and choose Copy.
  7. Navigate to the C:\Shark folder, right-click in the window, and choose Paste.

Deploy into a .NET Core website

  1. Navigate to your web application root folder.
  2. Create a new sitelauncher.bat file inside your web application root folder with the following contents:
SET SENSOR_SETTINGS_PATH=C:/Shark/settings.ini
SET DOTNET_STARTUP_HOOKS=C:/Shark/SensorProfiler.Module/netcoreapp3.1/SensorProfiler.Module.dll
axexample-dotnetcore.exe --urls http://0.0.0.0:80

The said content assumes that the executable file for your web application is axexample-dotnetcore.exe.

  1. From the command line, navigate to your web application root folder and launch your web application.

Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?