Sorry, I tried with a target and ir doesn't work. I also tried the debug
output and this is the result:

root@openvas8-demo:/usr/local/var/lib/openvas/plugins# openvas-nasl -X -d
find_service.nasl -T -
[3415]() NASL> [0x1e39b10] <- 1
[3415]() NASL> [0x1e39b70] <- 0
[3415]() NASL> [0x1e39bd0] <- 5
[3415]() NASL> [0x1e39c30] <- 6
[3415]() NASL> [0x1e39c90] <- 17
[3415]() NASL> [0x1e39cf0] <- 1
[3415]() NASL> [0x1e39d50] <- 0
[3415]() NASL> [0x1e39db0] <- 2
[3415]() NASL> [0x1e39e10] <- 0
[3415]() NASL> [0x1e39e70] <- 1
[3415]() NASL> [0x1e39ed0] <- 2
[3415]() NASL> [0x1e39f30] <- 3
[3415]() NASL> [0x1e39f90] <- 4
[3415]() NASL> [0x1e39ff0] <- 5
[3415]() NASL> [0x1e3a050] <- 6
[3415]() NASL> [0x1e3a0b0] <- 7
[3415]() NASL> [0x1e3a110] <- 8
[3415]() NASL> [0x1e3a170] <- 9
[3415]() NASL> [0x1e3a1d0] <- 1
[3415]() NASL> [0x1e3a230] <- 2
[3415]() NASL> [0x1e3a290] <- 4
[3415]() NASL> [0x1e3a2f0] <- 8
[3415]() NASL> [0x1e3a350] <- 16
[3415]() NASL> [0x1e3a3b0] <- 32
[3415]() NASL> [0x1e3a410] <- 32768
[3415]() NASL> [0x1e3a470] <- 16384
[3415]() NASL> [0x1e3a4d0] <- 8192
[3415]() NASL> [0x1e3a530] <- 8191
[3415]() NASL> [0x1e3a590] <- 0
[3415]() NASL> [0x1e3a5f0] <- 3
[3415]() NASL> [0x1e3a650] <- 4
[3415]() NASL> [0x1e3a6b0] <- 5
[3415]() NASL> [0x1e3a710] <- 6
[3415]() NASL> [0x1e3a770] <- 7
[3415]() NASL> [0x1e3a7d0] <- 1
[3415]() NASL> [0x1e3a830] <- 2
[3415]() NASL> [0x1e3a890] <- 8
[3415]() NASL> [0x1e3a8f0] <- 9
[3415]() NASL> [0x1e3a950] <- 10
[3415]() NASL> [0x1e3a9b0] <- 1
[3415]() NASL> [0x1e3aa10] <- 0
[3415]() NASL> [0x1e3aa70] <- 1
[3415]() NASL> [0x1e3aad0] <- 2
[3415]() NASL> [0x1e3ab30] <- 3
[3415]() NASL> [0x1e3ab90] <- 99
[3415]() NASL> [0x1e3abf0] <- 1
[3415]() NASL> [0x1e3ac50] <- "8.0.3"
[3415]() NASL> [0x1e3ad30] <- 1
[3415]() NASL> [0x1e3ad90] <- 0
[3415]() NASL> [0x1e3adf0] <- "find_service.nasl"
NASL:0063> if (description) { ... }
[3415](find_service.nasl) NASL> [0x1e3ad90] -> 0
NASL:0068> if (get_kb_item(...)) { ... }
NASL:0065> get_kb_item(...)
[3415]() NASL> [0x1e3ce90] <- "Host/dead"
[3415](find_service.nasl) NASL> Call get_kb_item(1: "Host/dead")
[3415](find_service.nasl) NASL> Return get_kb_item: NULL
NASL:0068> plugin_run_find_service(...)
[3415](find_service.nasl) NASL> Call plugin_run_find_service()

[3415](find_service.nasl) NASL> Return plugin_run_find_service: NULL
NASL:0072> p=2650;
[3415]() NASL> [0x1e3cee0] <- 2650
NASL:0089> if (get_port_state(...)) { ... }
NASL:0073> get_port_state(...)
[3415](find_service.nasl) NASL> [0x1e3cee0] -> 2650
[3415]() NASL> [0x1e3ce60] <- 2650
[3415](find_service.nasl) NASL> Call get_port_state(1: 2650)
[3415](find_service.nasl) NASL> Return get_port_state: 1
NASL:0075> soc=open_sock_tcp(...);
NASL:0075> open_sock_tcp(...)
[3415](find_service.nasl) NASL> [0x1e3cee0] -> 2650
[3415]() NASL> [0x1e3ce60] <- 2650
[3415](find_service.nasl) NASL> Call open_sock_tcp(1: 2650)
[3415](find_service.nasl) NASL> Return open_sock_tcp: 0
[3415]() NASL> [0x1e3c930] <- 0
NASL:0086> if (soc) { ... }
[3415](find_service.nasl) NASL> [0x1e3c930] -> 0
NASL:0089> p=27960;
[3415]() NASL> [0x1e3cee0] <- 27960
NASL:0101> if (get_port_state(...)) { ... }
NASL:0090> get_port_state(...)
[3415](find_service.nasl) NASL> [0x1e3cee0] -> 27960
[3415]() NASL> [0x1e3ce60] <- 27960
[3415](find_service.nasl) NASL> Call get_port_state(1: 27960)
[3415](find_service.nasl) NASL> Return get_port_state: 1
NASL:0091> soc=open_sock_tcp(...);
NASL:0091> open_sock_tcp(...)
[3415](find_service.nasl) NASL> [0x1e3cee0] -> 27960
[3415]() NASL> [0x1e3ce60] <- 27960
[3415](find_service.nasl) NASL> Call open_sock_tcp(1: 27960)
[3415](find_service.nasl) NASL> Return open_sock_tcp: 0
[3415]() NASL> [0x1e3c930] <- 0
NASL:0101> if (soc) { ... }
[3415](find_service.nasl) NASL> [0x1e3c930] -> 0


2017-04-03 12:50 GMT+02:00 margaus M. <[email protected]>:

> I see... Well I try this:
>
> > openvas-nasl -X -d find_service.nasl -T 10.70.38.70
>
> and I get nothing.... And the plugins has a log_message. I don't
> understand why I can't see the information in my screen and before doing
> the syncronization yes.
>
>
>
>
> 2017-04-03 12:43 GMT+02:00 Michael Meyer <[email protected]>:
>
>> *** margaus M. wrote:
>>
>> > This is my script to detect S7-300 PLC. When I execute it shows this,
>> so it
>> > works perfectly.
>>
>> There is already gb_simatic_s7_snmp_detect.nasl ...
>>
>> openvas-nasl -X -B -d snmp_detect.nasl  gb_snmp_sysdesc.nasl
>> gb_simatic_s7_snmp_detect.nasl gb_simatic_s7_version.nasl  -t <target>
>> works for me.
>>
>> > Later I syncronized openvas plugins and I added this new plugin in the
>> > directory, the result after execution is this:
>> >
>> > [image: Imágenes integradas 2]
>> >
>> > It prints nothing. Why is that? Any idea?
>>
>> add "-T -" to the openvas-nasl command line to get debug output...
>>
>> Micha
>>
>> --
>> Michael Meyer                  OpenPGP Key: 0xAF069E9152A6EFA6
>> http://www.greenbone.net/
>> Greenbone Networks GmbH,  Neumarkt 12, 49074 Osnabrueck | AG
>> Osnabrueck, HR B 202460
>> Geschaeftsfuehrer: Lukas Grunwald, Dr. Jan-Oliver Wagner
>> _______________________________________________
>> Openvas-plugins mailing list
>> [email protected]
>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/o
>> penvas-plugins
>>
>
>
_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to