Trouble Invoking Applications : error=2, no such file or directory

134 views
Skip to first unread message

Deiz63

unread,
Dec 1, 2022, 5:06:49 PM12/1/22
to OWASP ZAP User Group
Hi All, 

Wondering if anyone can steer me in the right direction.

I have used the “Run application” feature successfully in the past on a previous VM.

Now I have been trying to use this this for various commands , 
Nmap, sublist3r, nikto, etc and I have been unable to get ANY of these to word.

I have tried this on both my local windows machine and an Ubuntu VM. I have also tried using just the application syntax  (I.e nikto -u %url%) and also by providing the full path to the application (I.e home/Ubuntu/sublist3r/sublist3 -d %url%).

No matter what I have tried, I continue to get an error message as follows :
“Failed to start/invoke the application: cannot run program XXXXXX : error=2, no such file or directory.

Any thoughts on what I may be doing wrong would be much appreciated.

I am looking to bring some specific CLI enumeration tools into  ZAP  to keep all the data in one place, and make life a bit easier………..

Simon Bennetts

unread,
Dec 2, 2022, 4:59:47 AM12/2/22
to OWASP ZAP User Group
Hiya,

Can you confirm the full path you are using?
The one you've specified does not start with a "/", which would make it a relative path.
You will need to use a path starting with a slash, but that might have been a typo in your post.

Note that if you select the application via the file selector dialog (accessed via the [ ...] button) then it should specify the right path and work correctly.

Cheers,

Simon

Deiz63

unread,
Dec 2, 2022, 10:25:38 AM12/2/22
to OWASP ZAP User Group
Hi Simon, 

Thanks for your response, and sorry, yes, there were a few typos on my part. I was sending via my phone, so transposed a bit incorrectly, 
but here is a sample output with a few different variations of what I have tried so far. (from Ubuntu 22.04, Zap 2.12.0)

I did try to use the "..." method speifically on the nslookup command, and still have not had success.

[nikto -u %url%, https://www.libreoffice.org]
14:16:30 : Failed to start/invoke the application:
Cannot run program "nikto -u %url%" (in directory "/"): error=2, No such file or directory
14:19:16 :
[nmap -h, https://www.libreoffice.org]
14:19:16 : Failed to start/invoke the application:
Cannot run program "nmap -h": error=2, No such file or directory
14:36:09 :
[/usr/bin/nslookup %url%, https://www.libreoffice.org/]
14:36:09 : Failed to start/invoke the application:
Cannot run program "/usr/bin/nslookup %url%" (in directory "/usr/local/share"): error=2, No such file or directory


Chris Venn

unread,
Dec 2, 2022, 7:49:11 PM12/2/22
to zaprox...@googlegroups.com
Hi SImon, 

Just a follow up. 
After some more trial & error, I was able to use the "..." Path menu to get the "dig" & "nmap" applications working via the full path to executable.

Thank you for your quick response & direction!
Now that I at least have a POC with positive results, I should be able to expand this to my other applications.

Most of my initial trials were with sublist3r which seems to have a few syntax variations,  and I think this was a big part of my problem. 

Anyway, May be a good opportunity for a new "StackHawk" Video!................lol 
This is a great feature, and just another reason why Zap is top on my list.

--
You received this message because you are subscribed to a topic in the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/lNB0dBIlxfk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zaproxy-users/cd553b33-99ea-429a-9e90-40ce5b99c455n%40googlegroups.com.


--
Christopher Venn
Reply all
Reply to author
Forward
0 new messages