File: template.nasl

package info (click to toggle)
nessus-plugins 2.2.8-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 15,508 kB
  • ctags: 251
  • sloc: sh: 8,346; ansic: 4,452; pascal: 3,089; perl: 704; makefile: 172; php: 1
file content (47 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# This script was written by Renaud Deraison <deraison@cvs.nessus.org>
#
# See the Nessus Scripts License for details
#

if(description)
{
 script_id(FIXME);
 script_cve_id(FIXME);
 script_bugtraq_id(FIXME);
 
 name["english"] = 
 name["francais"] = 
 script_name(english:name["english"], francais:name["francais"]);
 
 desc["english"] = 
 desc["francais"] = 
 script_description(english:desc["english"], francais:desc["francais"]);
 
 summary["english"] = 
 summary["francais"] = 
 script_summary(english:summary["english"], francais:summary["francais"]);
 
 script_category(ACT_ATTACK);
 
 
 script_copyright(english:"This script is Copyright (C) 1999 Renaud Deraison",
		francais:"Ce script est Copyright (C) 1999 Renaud Deraison");
 family["english"] = 
 family["francais"] = 
 script_family(english:family["english"], francais:family["francais"]);
 script_dependencie("example1.nasl");
 
 exit(0);
}

#
# The script code starts here
#

include("http_func.inc");
include("http_keepalive.inc");

port = get_http_port(default:80);
res = http_keepalive_send_recv(port:port, data:http_get(item:"/", port:port));
display(res);