xqcyberscore / nvt

Other
37 stars 16 forks source link

What we have to take in get_kb_item("get_app/" +cpe) #2

Open saurabh0818 opened 5 years ago

saurabh0818 commented 5 years ago

https://github.com/xqcyberscore/nvt/blob/master/host_details.inc

twobadrobots commented 5 years ago

@saurabh0818 please clarify.

There is get_app() that you can pass a CPE into.

saurabh0818 commented 5 years ago

@twobadrobots thnks for d rply...

There is a function get_app_detail() in this function we have get_kb_item("get_app/"+cpe)

What value we have to pass in "get_app/"

twobadrobots commented 5 years ago

@saurabh0818 see my reply in https://github.com/xqcyberscore/nvt/issues/1

saurabh0818 commented 5 years ago

@twobadrobots

I used both get_app_full and get_app_version_and_location but this function internally call get_app_details function so my question is that what value we have to pass in get_kb_item("get_app/")

"get_app/"= ?

twobadrobots commented 5 years ago

A CPE is a reference (id) to a particular piece of software, if you are looking for a certain app then it will have a CPE.

CPEs can be found online e.g. https://nvd.nist.gov/products/cpe/search

cpe:2.3:a:adobe:acrobat:_reader9.5.3:*:*:*:*:*:*:*

vija9751 commented 5 years ago

A CPE is a reference (id) to a particular piece of software, if you are looking for a certain app then it will have a CPE.

CPEs can be found online e.g. https://nvd.nist.gov/products/cpe/search

cpe:2.3:a:adobe:acrobat:_reader9.5.3:*:*:*:*:*:*:*

we have passed cpe while program is executing the program is pass with a function name as get_app_details( ) in get _app_detail function appdetails = get_kb_list( "get_app/" + base_cpe ); base_cpe=cpe:/a:mozilla:firefox:0.5 what should i pass or give runtime to "get_app/" that is the question beacuse ? i am not getting appdetails anything because i dont know what to give to "get_app/" ?

vija9751 commented 5 years ago

A CPE is a reference (id) to a particular piece of software, if you are looking for a certain app then it will have a CPE.

CPEs can be found online e.g. https://nvd.nist.gov/products/cpe/search

cpe:2.3:a:adobe:acrobat:_reader9.5.3:*:*:*:*:*:*:*

we have passed cpe while program is executing the program is pass with a function name as get_app_details( ) in get _app_detail function appdetails = get_kb_list( "get_app/" + base_cpe ); base_cpe=cpe:/a:mozilla:firefox:0.5 what should i pass or give runtime to "get_app/" that is the question beacuse ? i am not getting appdetails anything because i dont know what to give proper to "get_app/" ?

vija9751 commented 5 years ago

A CPE is a reference (id) to a particular piece of software, if you are looking for a certain app then it will have a CPE. CPEs can be found online e.g. https://nvd.nist.gov/products/cpe/search cpe:2.3:a:adobe:acrobat:_reader9.5.3:*:*:*:*:*:*:*

we have passed cpe while program is executing the program is pass with a function name as get_app_details( ) in get _app_detail function appdetails = get_kb_list( "get_app/" + base_cpe ); base_cpe=cpe:/a:mozilla:firefox:0.5 what should i pass or give runtime to "get_app/" that is the question beacuse ? i am not getting appdetails anything because i dont know what to give proper to "get_app/" ?

if you don't mind will you give me an example of nasl code what kb we have to insert from outside example of finding version of firefox using get_app_version or any fuction from host_details.inc

vija9751 commented 5 years ago

is there anyone who help me out of this in knowledge base what should i supply to get_app/

get_kb_list( "get_app/" + base_cpe );

in terminal what should i put --kb=get_app = ?? when i use to execute