[Plugins-writers] POSIX ... on multiple lines.

From: Skill2Die4 (skill2die4@private)
Date: Fri Mar 19 2004 - 10:15:56 PST

  • Next message: Renaud Deraison: "Re: [Plugins-writers] POSIX ... on multiple lines."

    I am coding a nasl_script which requests for a webpage and then tries to
    gain the IP-address information.
    
    The returned page is like ::
    ================================================
     <div align=right><font color=#000000><b><font size=2 face=Arial>IP 
                          Address&nbsp;</font></b></font></div>
                      </td>
                      <td width=78% height=25><font size=2 face=Arial> 
                        192.168.2.1
                        </font></td>
    <td width=22% height=25> 
    
    <div align=right><font color=#000000><b><font face=Arial size=2>Subnet 
                          Mask&nbsp;</font></b></font></div>
                      </td>
                      <td width=78% height=25><font size=2 face=Arial> 
                        255.255.255.0
                        </font></td>
    ===============================================
    
    As you see , [0-9]+.[0-9]+.[0-9]+.[0-9]+ wont work here as it comes
    many times on the page ! (there are other ip-addresses too...)
    
    Could anyone tell me how to tackle the problem of extracting the exact
    IP address in this case(multiple lines are confusing me). I am not that 
    good with Posix ( and PCRE aint supported ....)
    
    Or any other script which does like this ? Suprisingly, I dont see anyone 
    doing [[:space:]] kinda things ... !!
    
    I would appreciate any help :-)
    
    skill 2 die 4 (AT) phreaker (dot) net
    
    _______________________________________________
    Plugins-writers mailing list
    Plugins-writers@private
    http://mail.nessus.org/mailman/listinfo/plugins-writers
    



    This archive was generated by hypermail 2b30 : Fri Mar 19 2004 - 10:17:13 PST