• Passive Reconnaissance | 99
  • Learning Kali Linux




    Download 22,59 Mb.
    Pdf ko'rish
    bet98/225
    Sana14.05.2024
    Hajmi22,59 Mb.
    #232856
    1   ...   94   95   96   97   98   99   100   101   ...   225
    Bog'liq
    learningkalilinux

    Passive Reconnaissance
    Often, reconnaissance work can involve poking around at infrastructure that belongs
    to the target. However, that doesn’t mean that you necessarily have to actively probe
    the target network. Activities like port scans, which we will cover later, can be noisy
    and attract attention to your actions. You may not want this attention until you are
    ready to really launch attacks. You can continue to gather information in a passive
    manner by simply interacting with exposed systems in a normal way. For instance,
    you could just browse the organization’s web pages and gather information. One way
    we can do this is to use the program 
    p0f
    .
    p0f
    works by watching traffic and extracting data that may be interesting from the
    packets as they go by. This may include relevant information from the headers, espe‐
    cially source and destination addresses and ports. You can also see where 
    p0f
    has
    extracted details about web servers and operating systems in 
    Example 3-15
    . In the
    first block, you can see an HTTP request that shows the client details as well as the
    host and user agent data. In the second block of data extracted, 
    p0f
    has identified that
    Passive Reconnaissance | 99


    the operating system is Linux 3.11 or newer. Just below that, it was able to identify
    that the server is nginx. It is able to determine this from looking at the HTTP head‐
    ers.
    Example 3-15. Output from p0f
    .-
    [
    192.168.2.149/48244 -> 104.197.85.63/80 
    (
    http request
    )
    ]
    -
    |

    client
    =
    192.168.2.149/48244

    app
    =
    ???

    lang
    =
    English

    params
    =
    none

    raw_sig
    =
    1:Host,User-Agent,Accept
    =[
    */*
    ]
    ,Accept-Language
    =[
    en-US,en;
    q
    =
    0.5
    ]
    ,
    Accept-Encoding
    =[
    gzip,deflate
    ]
    ,?Referer,?Cookie,Connection
    =
    [
    keep-alive
    ]
    :Accept-Charset,Keep-Alive:Mozilla/5.0 
    (
    X11; Linux
    x86_64; rv:52.0
    )
    Gecko/20100101 Firefox/52.0
    |
    `
    ----
    .-
    [
    192.168.2.149/48254 -> 104.197.85.63/80 
    (
    syn
    )
    ]
    -
    |

    client
    =
    192.168.2.149/48254

    os
    =
    Linux 3.11 and newer

    dist
    =
    0

    params
    =
    none

    raw_sig
    =
    4:64+0:0:1460:mss*20,7:mss,sok,ts,nop,ws:df,id+:0
    |
    `
    ----
    .-
    [
    192.168.2.149/48254 -> 104.197.85.63/80 
    (
    http response
    )
    ]
    -
    |

    server
    =
    104.197.85.63/80

    app
    =
    nginx 1.x

    lang
    =
    none

    params
    =
    dishonest

    raw_sig
    =
    1:Server,Date,Content-Type,?Content-Length,?Last-Modified,Connection
    =
    [
    keep-alive
    ]
    ,Keep-Alive
    =[
    timeout
    =
    20
    ]
    ,?ETag,X-Type
    =[
    static/known
    ]
    ,
    ?Cache-Control,?Vary,Access-Control-Allow-Origin
    =[
    *
    ]
    ,Accept-Ranges
    =
    [
    bytes
    ]
    ::nginx
    |
    One of the challenges of using 
    p0f
    is that it relies on observing traffic that is going by
    the system. You need to interact with the systems on which you want to perform pas‐
    sive reconnaissance. Since you are interacting with publicly available services, it’s
    unlikely you will be noticed, and the remote system will have no idea that you are
    using 
    p0f
    against it. There is no active engagement with the remote services in order
    to prompt for more details. You will get only what the services that you engage with
    are willing to provide.
    The side you are most apt to get information on is the local end. This is because it can
    look up information from the MAC address, providing vendor details so you can see

    Download 22,59 Mb.
    1   ...   94   95   96   97   98   99   100   101   ...   225




    Download 22,59 Mb.
    Pdf ko'rish