Got you!! firefox_listening_port= get_rpc_port( ? , protocol:IPPROTO_UDP); Where program is the fixed RPC number. Here is the list of RPC program numbers used in NMAP. ftp://ftp.tau.ac.il/pub/users/eilon/rpc/rpc
On Feb 9, 2008 7:22 PM, marco <[EMAIL PROTECTED]> wrote: > 2008/2/9, Pavithra H <[EMAIL PROTECTED]>: > > Hi, > > As given in NASL reference guide, get_rpc_port(program, protocol) calls > the > > portmapper and gets the port where the service specified by the > parameters > > is located. program is a RPC number and protocol may be IPPROTO_TCP or > > IPPROTO_UDP. If the portmapper could not be reached or the service is > > down, the function returns 0. > > This is clear to me, my doubt is about the RPC number itself. If I > want to determinate which port an instance of firefox running on the > scanned host, is listening to, how can i know which rpc number i must > enclose as parameter? > > firefox_listening_port= get_rpc_port( ? , protocol:IPPROTO_UDP); > > Is there a fixed program number which is assigned by the portmapper to > the each process? > > For example , the programs you kindly gave me aren't very clear: > > > bootparamd.nasl:port = get_rpc_port(program:RPC_PROG, > protocol:IPPROTO_UDP); > > cachefsd_overflow.nasl:port = get_rpc_port(program:RPC_PROG, > > protocol:IPPROTO_UDP); > > In those two cases it seems RPC_PROG is a predetermined variable, > maybe there's a particular function to get it? > > > knfs_dos.nasl:port = get_rpc_port(program:100003, > protocol:IPPROTO_UDP); > > mountd_overflow.nasl:port = get_rpc_port(program:100005, > > protocol:IPPROTO_UDP); > > nfs_dotdot.nasl:port2 = get_rpc_port(program:100003, > protocol:IPPROTO_UDP); > > nfs_fsirand.nasl:port = get_rpc_port(program:100005, > protocol:IPPROTO_TCP); > > Here you assume to know the number as it's assigned statically...Which > process the program number 100003 is referred to? Where did you get > it? > > Maybe I am not just getting the point, hope you can enlighten somehow. > > Thank you in advance > > -- > > Marco > -- Thanks, Pavithra.H Research Analyst, ThirdBrigade Labs Bangalore
_______________________________________________ Nessus mailing list [email protected] http://mail.nessus.org/mailman/listinfo/nessus
