HOWTO. wget www.cisco.com and grep it.

QUE.com Forums 30 – Cyber Security HOWTO. wget www.cisco.com and grep it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42762
    Support @QUE.COM
    Keymaster

    Start running.
    wget http://www.cisco.com // to download the index.html file of cisco.com website.

    run the command to clean up, display sub domains and sort it.
    grep -o ‘[A-Za-z0-9_\.-]*\.*cisco.com’ index.html |sort -u

    #51476
    Support @QUE.COM
    Keymaster

    Example of checking IPs of the access.log file. This will shows IPs in order.
    $ cat access.log | cut -d ” ” -f 1 | sort u

    Results.
    200.10.10.2
    208.20.10.5
    70.30.10.89
    71.89.10.101
    98.77.10.123
    99.11.11.18

    Show unique IPs and how many times it connect to the target machine.
    $ cat access.log | cut -d ” ” -f 1 | uniq -c | sort urn

    1080 200.10.10.2
    90 208.20.10.5
    75 70.30.10.89
    50 71.89.10.101
    20 98.77.10.123
    10 99.11.11.18

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.