I am trying to integrate the Webinspect with Jenkins using command and I am trying to pass my macro file which I generated manually from Webinspect UI.
cd C:\Program Files\Fortify\FW
wi.exe -u "http://demo.testfire.net/" -ps 1004 -macro "C:\Program Files\Fortify\FW\workflow.webmacro" -ep "C:\Program Files\Fortify\FW\workflow.fpr" -r "Executive Summary"; Vulnerability -y "Standard" -f "C:\Program Files\Fortify\FW\Webinspectmaxro.pdf" -gp
Above command is the one which I am using for integration.
Issue
I am able to initiate the scan but my requirement is like I want scan to be initiated as workflow Driven scan using the macro.
The macro I generated is using workflow macro(session based) I want my command to take only those urls in macro but not to crawl all web page.
The same macro file took only 13 min in manual (I have initiated as workflow driven scan) where command is taking 9 hours(which means it is scanning all web page) and also differ in vulnerability count.
I just want to know how to initiate workflow driven scan using wi.exe(using CLI).
Or pls suggest the any other way to initiate workflow driven scan from Jenkins.
Thanks
Related
We have a lot of reports that requires us to save to local via command line, I am trying to using some script .bat to batch run cognos reports and save. How can I achieve that without going into cognos interface?
Thanks.
I'm trying to run a Django2.1 custom management command from within a python3 virtual environment on a windows server with the task scheduler. The command I've tried work as follows:
C:\Users\dev\Programs\Python3\Scripts\python.exe C:\Users\dev\Programs\Python3\Scripts\access-api\my_project\manage.py accessapi
The script runs just fine if I also execute it as a .bat file but when I try to create a scheduled task and run the .bat script, the task scheduler fails or says it completed but the data that I'm looking to update, doesn't get updated. I managed to find this reddit post about this same issue but it doesn't seem to work as described.
The script itself isn't a pretty one but it works using pyodbc drivers to run queries in from an Access 2010 database and convert to it JSON, then update required records using Django's API in a PostgreSQL database.
"Actions" Tab in task property use your commands to configure as:
Program script field:
C:\Python36\python.exe
Add Argumenrs(optional) field:
"C:\Users\dev\Programs\Python3\Scripts\access-api\my_project\manage.py" accessapi
I am currently trying to automate the process of bamboo remote agent installation and uninstallation. I have run into a problem in regards to adding and removing capabilities.
What I am trying to automate:
(The following is what I do on the bamboo server via the GUI, I want to do this on the remote agent machine via bash script.)
I install the remote agent on a VM machine, then start it up. I go to the bamboo interface and click on the newly created agent's name.
I add a custom capability type, for the key I put 'buildserver' and for the value I put the name of the agent.
I add an 'Executable' capability of type 'Command' with Executable label 'cygwin' and path 'C:\cygwin64\bin\bash'
I navigate to the git executable, and remove it by clicking 'delete.' <--- (the problem step)
what I've done.
I have looked here and found a way to automate steps 1-3 using the following "bamboo-capabilities.properties" file:
buildserver="AGENTNAME"
system.builder.command.cygwin="C:\cygwin64\bin\bash"
However I am stuck on how I would remove the git capability (step 4.) I've tried something appending something like this to the file:
system.git.executable=""
but it does not seem to do anything. Does anyone know how I would do this? There seems to be very little documentation about this online.
Thanks very much.
I never found a way to get around this, but I found a workaround. I later learned the point of removing git in my situation was to allow a shared capability that was also called git to take precedence. My workaround was to set the non-shared capability to the value of the shared capability. I am not 100% sure that this does the same thing, and I am not in a position to test it yet, but as a capability seems to be only a key-value pair I don't see why it wouldn't.... will update if anything breaks.
We are having Sharepoint lists where users would update their required services.
Based on the service type we will take action.
For ex: Our Sharepoint site will have actions like "build" "Copy" "Sync in Appstore".
For each action there is a powershell script written.
If a request is raised for build, powershell script should be triggered.
How to achieve it using powershell?
Take a look at SharePoint event receivers. Here's some example code written in PowerShell:
23JUN22 update - web archive with example code: https://web.archive.org/web/20141113023454/http://sharepintblog.com/2011/06/04/adding-event-receivers-with-powershell/ replacement for original link http://sharepintblog.com/2011/06/04/adding-event-receivers-with-powershell/
Basically how you would in any other framework, i think you can give it a file path as a command line to run the script of the given location.
I am currently trying to implement a one-click build solution (without having to start the monodevelop IDE) for my monotouch projects, where i could specify provisioning profiles and code signing certificates. I searched popular build tools like nant, ant and maven, but none seems to support monotouch. Has anyone tried something similar ?
I've gotten it work with Jenkins (aka Hudson).
You basically setup a Jenkins server, and setup your Mac as a "slave" build server. (I used a JNLP slave).
From there you can run any command line you want in the build, so you merely have to run mdtool with some arguments, like so:
/Applications/MonoDevelop.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone" "Path/To/YourSolution.sln"
One thing to worry about is that to sign an iOS app, the slave process must run under your user. So you can't really create a Mac daemon for it, you'll have to run the slave process in startup for your user and minimize it, which is kind of annoying.
You tried teamcity? Might be worth you having a look at this thread Buildserver for MonoTouch upon OS X?
Thx for your answers. However i don't need to use such heavy artillery in this case. Since i'm developping a single and small app, I ended up by creating 3 different Build configurations in my solution, because i found out that it is possible to configure different codesign identities and provisioning profiles for each one (Development, Ad-Hoc, AppleStore), in the monodevelop project options menu.
Then in the AppleStore/Ad-Hoc configuration, i added post build commands, so i could create the .ipa file automatically (basically create a "Payload" folder and copy the .app file into it, and then zip it into a .ipa file, along with the icon and itunesartwork files).
Finally i created a bash script that invokes mdtool with any of the configurations, so i can build and generate .ipa executables by just executing the script.