Create LSR files manually
This document describes how to create .lsr files in Invicti Platform manually. For an overview of the LSR files, refer to the linked documentation.
Creating LSR files manually involves these five simple steps:
- Step 1: Navigate to the target application
- Step 2: Open the login form (if necessary)
- Step 3: Identify login elements
- Step 4: Construct JSON file
- Step 5: Save and upload
Step 1: Navigate to the target application
- Open Google Chrome and navigate to the login page of your target application.
- Copy the URL of the login page as it will be used in the LSR file.
Step 2: Click to open the login form (if necessary)
- If the login form is behind a button or a menu (e.g., a "Sign In" link on the homepage), locate the button.
- Right-click the button, select Inspect, then copy the XPath or CSS selector.
Step 3: Identify login elements using Chrome DevTools
- Right-click on the username input field and select Inspect.
- Locate the XPath or CSS selector of the input field.
- Right-click the highlighted HTML element, hover over Copy, and select Copy XPath or Copy selector.
- Repeat this process for the password field and login button.
- If the login process includes additional steps (e.g., OTP input), capture those elements as well.
Step 4: Construct the JSON file
Using a text editor, create a new file and structure it as follows:
{ |
Step 5: Save and upload the JSON File
- Save the file with a .lsr extension (e.g., my_login.lsr).
- Select Inventory > Targets from the left-side menu.
- Click (⋮) > Edit target by the specific target you want to edit.
- In the Authentication section select Login Sequence Recorder from drop-down.
- Click Upload sequence to select and import your saved .lsr file.
Additional Configuration Options
- Timeouts: Adjust timeout values to prevent premature failures.
- Viewports: Define viewport sizes to simulate different screen resolutions.