Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
hema.k@hpe.com1 Valued Contributor.
Valued Contributor.
4842 views

Webinspect CLI and API does not send Macro requests when login macro is used

HI,

 

I am using Webinspect v17.10. I tried performing scan fr a target using teh WebInspect API. Following is teh payload used:

{

  "settingsName": "Default",

  "overrides": {

    "scanName": "WI_try",

    "startUrls": [

      "<url>"

    ],

    "loginMacros": "ilo_login",

    "startOption": "url",

    "policyId": "1"

  }

}

 

Observed that macro requeuests sent were 0. the same issue is observed in CLI too.

However, if i use the same login macro and initioate a scan via GUI, quite a lot of macro requests are sent. 

 

Can you please help me with this? Is there any setting that I ahev to change so taht CLI and API too generate macro requeuests. Please help.

Labels (1)
0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Webinspect CLI and API does not send Macro requests when login macro is used

I also responded to your related post here:  https://community.saas.hpe.com/t5/WebInspect/WebInspect-Standard-scan-using-macro-CLI-crawls-lesser-links-and/m-p/1601378#M2744

You might consider taking this to Fortify Customer Support (support.fortify.com) for a deeper, personal review.

 

I reviewed your sample API call and there may be a typo for "loginMacro".  I compared it with the samples provided under  http://localhost:8083/webinspect/swagger/ui/index#!/Scanner/Scanner_StartScan

  • I believe your entry <<"loginMacros": "ilo_login",>>  needs to be corrected to <<"loginMacro": "ilo_login",>>

 

You did not offer the CLI command you used, so let me post what I believe the equivalent would be.  This uses the same Scan Name, Standard scan Policy, and Login Macro file name you posted in your API sample.  You will need to input the proper Starting URL {-u} to run this.

  • wi.exe -u http://your_startingurl_goes_here -ps 1 -macro ilo_login -n WI_try

-- Habeas Data
Micro Focus Fortify Customers-Only Forums – https://community.softwaregrp.com/t5/Fortify/ct-p/fortify
hema.k@hpe.com1 Valued Contributor.
Valued Contributor.

Re: Webinspect CLI and API does not send Macro requests when login macro is used

Thank you Hans for pointing out. Corrected the payload and it works ok now.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.