HP WebInspect command line interface ( CLI) - fortify

Can anyone please guide me for WebInspect CLI .
I need to invoke dynamic code analyzer:webinspect ( for penetration testing ) from TeamCity (TC) .
Once i get to know command line invocations for WebInspect , i will write those in wrapper script and will invoke this wrapper script from TC before build step.
Thanks,
Vishal

There are two ways to get access to the command line switches that drive the CLI behavior. The First option is to invoke wi.exe with the "-?" argument and you will see explanations of each switch. The second option is to open the WebInspect help file (WebInspect.chm) and type the following text in the search tab text entry field: "wi.exe"
The help file can be launched by hitting F1 from within the running WebInspect UI or from the Windows start menu under "All Programs > HP > HP WebInspect > Help > WebInspect"

Related

dart code runs in DEBUG CONSOLE not in TERMINAL?

**I started using dart to gain knowledge of it. It was going nice but when i reached "getting on users input" it seemed to be frustrating. ** because my code was running in DEBUG CONSOLE, where I was not able to enter data.
I used code Runner, but that is slow and has no DEBUG option. (as you can see on top right corner of screenshot)
Now I need a solution to this problem in a way, That either should it be possible to run and debug program in IntegratedTerminal or I should be able to enter data in debug CONSOLE.
can you please help me?
the code should in integratedTerminal WHERE I CAN ENTER INPUT DATA.
THANKS IN ADVANCE?
You can do this by running your code from the terminal, and not 'Start Debuging' in VSCODE or android studio, because that will run it in debug console.
So, from your terminal, cd to your project directory, and type dart run lib/main.dart
Things should shift to terminal.
Summary
Toolbar >> File >> Preferences >> Settings >> Dart: Cli Console >> terminal
STEP 1
Go to settings ("CTRL + ," on Windows and Linux)
STEP 2
Then search for the setting "Dart: Cli Console".
STEP 3
Then select "terminal".
And you should be good to go. This is what it should look like:

How to get LUA to work in VSCode so it runs to the output window?

I installed LUA by following this guide: http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies
I put LUA in Program Files(x86)>lua>5.3.5
If i open up a terminal and type 'lua' it works.
If i create a file called hello.lua with print("Hello, World!") in it, how do i run this file so it comes up in the output window of VSCode?
If i try 'start without debugging' nothing happens'. If i Terminal>Run active file/selected text, the VS terminal window says
'print("hello, world!")
Unable to initialize device PRN'
I've obviously missed something simple but i just don't see a way to run this file to the output window, and an hour hunting through the docs and i'm none the wiser. My only other experience is with VS Community where it's just CTRL+Shift+B to complile and ALt+A to run.
Anyone help?
Thanks.
The Code Runner extension supports Lua, so you can press Ctrl-Alt-N to run the current script file. If it complains about not being able to find the executable, add this to your user settings:
"code-runner.executorMap": {
"lua": "C:\\Program Files (x86)\\lua\\5.3.5\\bin\\lua.exe"
}
Install the extension "Code Runner" in VS Code;
Click the gear icon and open the "Extension Settings";
Search for "Code-runner: Executor Map";
Go into setting.json to update the directory of the installed lua.exe.
"code-runner.executorMap": {
"lua": "\"C:\\Program Files\\Lua\\lua.exe\"",
}
Do not forget to add \" before and end of the directory.

How do I run a Lua script on fceux on Mac os?

First I start the emulator.
Then I load dragon warrior ROM.
Then I try to access the lua script menu.
However fceux will not let me access the main menus anymore. I can only control the emulator.
What is the right way to run a Lua script in version 2.2.3?
The documentation below is obviously lacking. No window pops up. See the **** there is no run Lua script option.
The fceux docs say this:
To run a Lua script, choose "Run Lua Script" from where  In the dialog that pops up, click "Browse" and find the file you wish to run.  This will insert the path of this file into the dialog.  You can then click on "Run" to run the script or "Cancel" to return to FCEUX without running the script.
To end a Lua script, choose "Stop Lua Script" from where.
You're reading documentation for the windows version and trying to apply it to the portable version. They aren't the same. Learn to use wine or virtualization and use the windows version.
If you insist in using the portable version, you can use --loadlua myfile.lua, assuming your fceux has been built with lua support (and who can say how it was built on linux or osx?)

erlang from windows command line

Anyone knows how to open the Erlang shell from windows command line?
In official tutorial recommended to write "werl" to the command prompt but this command doesn't work.
P.S. I have installed erlang to my PC.
You have 2 simple ways to start an erlang shell on windows.
1) you can open a terminal directly into the folder that contains werl.exe you want. Use Shift + right click and choose "open terminal here". Then type "werl.exe"
2) you can go into that folder using "cd path", then type "werl.exe"
Also if you use werl.exe, a new window will open. If you want to stay with your windows terminal you should use erl.exe
werl uses the wxwidget library. Everything is installed automatically if you use the windows binary file.
If you have installed from source, then wxwidget must be installed separately.
It is possible to start the erlang shell in a dos window: start a command window with cmd, and start the erlang shell from this window using erl.
I guess that you already checked that werl exe is in the search path.

Help using signtool.exe in Delphi project post-build events

This is a very simple question. What should I write in Delphi post build events to execute a coomand line tool?
I wrote this:
c:\BinPath\signtool.exe sign /f c:\BinPath\Mypfxfile.pfx /p MyPassword
/t http:// timestamp.verisign.com/scripts/timstamp.dll c:\BinPath\Project1.exe
(where c:\BinPath is the Delphi output path, for simplicity I copied signtool.exe adn pfx file in the same folder)
as i build the project I have this modal window error:
--------------------------- Project 1- CodeGear Delphi for Microsoft Windows - Form1
--------------------------- Cannot open file "C:\SourcePath\EXEC".
Impossible to find the specified
path..
and in the messages I have
[Exec Error] EXEC(1):
"SignerTimeStamp() failed."
(-2147467259/0x80004005)
[Exec Error]
exit from command
"c:\BinPath\signtool.exe sign /f
c:\BinPath\Mypfxfile.pfx /p MyPassword
/t http://
timestamp.verisign.com/scripts/timstamp.dll
c:\BinPath\Project1.exee" with code 1.
How to manage this? In Delphi help I read (from Creating Build Events topic):
Enter the build commands, one command per line, and press Return after entering each command. Commands consist of any valid DOS command, such as: copy $() c:\Built\$()
So i simply inserted in the build event what (c:\BinPath\....Project1.exe) I was able to run from command prompt. Where is the error? Thanks.
I could have deleted this question, since I found the problem, but I think it is better to leave it since it can be useful for others:
THE PROBLEM WAS SIMPLY
http:// timestamp...
of course should be
http://timestamp...
when copying on build event I inserted an extra space by mistake. By reading the question posted I found the error...

Resources