| 1 | #!/usr/bin/perl |
|---|
| 2 | # |
|---|
| 3 | # pod2man fierce.man.1 | gzip -c > fierce.1p.gz && gunzip fierce.1p.gz |
|---|
| 4 | # |
|---|
| 5 | # Copyright (C) 2008-2009 |
|---|
| 6 | # RSnake < h@ckers.org > |
|---|
| 7 | # Joshua D. Abraham < jabra@spl0it.org > |
|---|
| 8 | # |
|---|
| 9 | # This manpage is released under the terms of the GNU General Public |
|---|
| 10 | # License (GPL), which is distributed with this software in the file |
|---|
| 11 | # "COPYING". The GPL specifies the terms under which users may copy |
|---|
| 12 | # and use this software. |
|---|
| 13 | # |
|---|
| 14 | |
|---|
| 15 | =pod |
|---|
| 16 | |
|---|
| 17 | =begin man |
|---|
| 18 | |
|---|
| 19 | =head1 NAME |
|---|
| 20 | |
|---|
| 21 | Fierce - the ulimate network reconnaissance script |
|---|
| 22 | |
|---|
| 23 | =head1 SYNOPSIS |
|---|
| 24 | |
|---|
| 25 | fierce [Options] {target specification} |
|---|
| 26 | |
|---|
| 27 | =cut |
|---|
| 28 | |
|---|
| 29 | =begin man |
|---|
| 30 | |
|---|
| 31 | =head1 DESCRIPTION |
|---|
| 32 | |
|---|
| 33 | Fierce is a semi-lightweight scanner that helps locate non-contiguous IP space |
|---|
| 34 | and hostnames against specified domains. It's really meant as a pre-cursor to |
|---|
| 35 | nmap, unicornscan, nessus, nikto, etc, since all of those require that you |
|---|
| 36 | already know what IP space you are looking for. This does not perform |
|---|
| 37 | exploitation and does not scan the whole internet indiscriminately. It is |
|---|
| 38 | meant specifically to locate likely targets both inside and outside |
|---|
| 39 | a corporate network. Since it uses DNS primarily you will often find |
|---|
| 40 | mis-configured networks that leak internal address space. That's especially |
|---|
| 41 | useful in targeted malware. |
|---|
| 42 | |
|---|
| 43 | =head1 OPTIONS |
|---|
| 44 | |
|---|
| 45 | -dns [dns name(s)] The domain you would like scanned. |
|---|
| 46 | (Single domain, or Multiple (Comma seperated) |
|---|
| 47 | |
|---|
| 48 | -format [type] Defaults to output |
|---|
| 49 | One of the following: [txt || xml || html] |
|---|
| 50 | -output [output] Output file |
|---|
| 51 | |
|---|
| 52 | -prefix [prefix file] Prefix list for bruteforce attack |
|---|
| 53 | -maxbruteforce [max num] Max number concatted onto prefix |
|---|
| 54 | |
|---|
| 55 | -dnsfile [dns list] Use DNS servers provided by a file |
|---|
| 56 | -exts [file] List of extensions for bruteforce attack |
|---|
| 57 | -subdomains [file] List of subdomains to test |
|---|
| 58 | -dnsserver [dns server] Use a particular DNS server for reverse lookups |
|---|
| 59 | -ztstop Stop scan if Zone Transfer works. |
|---|
| 60 | |
|---|
| 61 | -no [option(s)] Do not perform (comma seperated) |
|---|
| 62 | zt Zone Transfer |
|---|
| 63 | prebf Prefix Brute Force |
|---|
| 64 | subbf Subdomain Brute Force |
|---|
| 65 | extbf Extension Brute Force |
|---|
| 66 | findmx Find MX Records |
|---|
| 67 | wildc Check for Wild Card |
|---|
| 68 | revlook Reverse Lookups |
|---|
| 69 | vhost Vhost Hosts |
|---|
| 70 | whois Whois Lookup |
|---|
| 71 | |
|---|
| 72 | -threads [num] Number of threads (default 5 threads) |
|---|
| 73 | -delay [num] Number of seconds to delay (default 5 seconds) |
|---|
| 74 | -tcptimeout [num] Specify a different TCP timeout (default 10 seconds). |
|---|
| 75 | You may want to increase this if the DNS server you are querying |
|---|
| 76 | is slow or has a lot of network lag. |
|---|
| 77 | |
|---|
| 78 | -udptimeout [num] Specify a different UDP timeout (default 10 seconds). |
|---|
| 79 | |
|---|
| 80 | -debug [num] Debug option (1-5) |
|---|
| 81 | -verbose [num] Verbose option (1-5) |
|---|
| 82 | -h -help This help screen. |
|---|
| 83 | -v -version Output the version number. |
|---|
| 84 | |
|---|
| 85 | Basic usage: perl fierce -dns example.com -prefix hosts.txt |
|---|
| 86 | |
|---|
| 87 | Type 'man fierce' for more information |
|---|
| 88 | |
|---|
| 89 | =end man |
|---|
| 90 | |
|---|
| 91 | =cut |
|---|
| 92 | |
|---|
| 93 | |
|---|
| 94 | __END__ |
|---|
| 95 | |
|---|
| 96 | =begin man |
|---|
| 97 | |
|---|
| 98 | =head1 OPTION DETAILS |
|---|
| 99 | |
|---|
| 100 | =head2 -delay |
|---|
| 101 | |
|---|
| 102 | The number of seconds to wait between lookups. |
|---|
| 103 | |
|---|
| 104 | =head2 -dns |
|---|
| 105 | |
|---|
| 106 | The domain you would like scanned. |
|---|
| 107 | |
|---|
| 108 | =head2 -dnsfile |
|---|
| 109 | |
|---|
| 110 | Use DNS servers provided by a file (one per line) for |
|---|
| 111 | reverse lookups (brute force). |
|---|
| 112 | |
|---|
| 113 | =head2 -dnsserver |
|---|
| 114 | |
|---|
| 115 | Use a particular DNS server for reverse lookups |
|---|
| 116 | (probably should be the DNS server of the target). Fierce |
|---|
| 117 | uses your DNS server for the initial SOA query and then uses |
|---|
| 118 | the target's DNS server for all additional queries by default. |
|---|
| 119 | |
|---|
| 120 | =head2 -file |
|---|
| 121 | |
|---|
| 122 | A file you would like to output to be logged to. |
|---|
| 123 | |
|---|
| 124 | =head2 -fulloutput |
|---|
| 125 | |
|---|
| 126 | When combined with -connect this will output everything |
|---|
| 127 | the webserver sends back, not just the HTTP headers. |
|---|
| 128 | |
|---|
| 129 | =head2 -help |
|---|
| 130 | |
|---|
| 131 | Help info. |
|---|
| 132 | |
|---|
| 133 | =head2 -nopattern |
|---|
| 134 | |
|---|
| 135 | Don't use a search pattern when looking for nearby |
|---|
| 136 | hosts. Instead dump everything. This is really noisy but |
|---|
| 137 | is useful for finding other domains that spammers might be |
|---|
| 138 | using. It will also give you lots of false positives, |
|---|
| 139 | especially on large domains. |
|---|
| 140 | |
|---|
| 141 | =head2 -range |
|---|
| 142 | |
|---|
| 143 | Scan an internal IP range (must be combined with |
|---|
| 144 | -dnsserver). Note, that this does not support a pattern |
|---|
| 145 | and will simply output anything it finds. Usage: |
|---|
| 146 | |
|---|
| 147 | perl fierce.pl -range 111.222.333.0-255 -dnsserver ns1.example.co |
|---|
| 148 | |
|---|
| 149 | =head2 -search |
|---|
| 150 | |
|---|
| 151 | Search list. When fierce attempts to traverse up and |
|---|
| 152 | down ipspace it may encounter other servers within other |
|---|
| 153 | domains that may belong to the same company. If you supply a |
|---|
| 154 | comma delimited list to fierce it will report anything found. |
|---|
| 155 | This is especially useful if the corporate servers are named |
|---|
| 156 | different from the public facing website. Usage: |
|---|
| 157 | |
|---|
| 158 | perl fierce.pl -dns examplecompany.com -search corpcompany,blahcompany |
|---|
| 159 | |
|---|
| 160 | Note that using search could also greatly expand the number of |
|---|
| 161 | hosts found, as it will continue to traverse once it locates |
|---|
| 162 | servers that you specified in your search list. The more the |
|---|
| 163 | better. |
|---|
| 164 | |
|---|
| 165 | =head2 -stop |
|---|
| 166 | |
|---|
| 167 | Stop scan if Zone Transfer works. |
|---|
| 168 | |
|---|
| 169 | =head2 -suppress |
|---|
| 170 | |
|---|
| 171 | Suppress all TTY output (when combined with -file). |
|---|
| 172 | |
|---|
| 173 | =head2 -tcptimeout |
|---|
| 174 | |
|---|
| 175 | Specify a different timeout (default 10 seconds). You |
|---|
| 176 | may want to increase this if the DNS server you are querying |
|---|
| 177 | is slow or has a lot of network lag. |
|---|
| 178 | |
|---|
| 179 | =head2 -threads |
|---|
| 180 | |
|---|
| 181 | Specify how many threads to use while scanning (default |
|---|
| 182 | is single threaded). |
|---|
| 183 | |
|---|
| 184 | =head2 -traverse |
|---|
| 185 | |
|---|
| 186 | Specify a number of IPs above and below whatever IP you |
|---|
| 187 | have found to look for nearby IPs. Default is 5 above and |
|---|
| 188 | below. Traverse will not move into other C blocks. |
|---|
| 189 | |
|---|
| 190 | =head2 -version Output the version number. |
|---|
| 191 | |
|---|
| 192 | =head2 -wide |
|---|
| 193 | |
|---|
| 194 | Scan the entire class C after finding any matching |
|---|
| 195 | hostnames in that class C. This generates a lot more traffic |
|---|
| 196 | but can uncover a lot more information. |
|---|
| 197 | |
|---|
| 198 | -wordlist |
|---|
| 199 | Use a seperate wordlist (one word per line). Usage: |
|---|
| 200 | |
|---|
| 201 | perl fierce.pl -dns examplecompany.com -wordlist dictionary.txt |
|---|
| 202 | |
|---|
| 203 | =head1 FEATURE REQUESTS or BUG REPORTS |
|---|
| 204 | |
|---|
| 205 | These should be submitted using : |
|---|
| 206 | |
|---|
| 207 | http://trac.assembla.com/fierce/newticket |
|---|
| 208 | |
|---|
| 209 | For Bug Reports, please include the version of Fierce and a detailed |
|---|
| 210 | description of the issue |
|---|
| 211 | |
|---|
| 212 | For Feature Requests, please include a detailed description of the feature and |
|---|
| 213 | why this would be a useful addtion to Fierce. |
|---|
| 214 | |
|---|
| 215 | =head1 SEE ALSO |
|---|
| 216 | |
|---|
| 217 | nmap(1), unicornscan(1) |
|---|
| 218 | |
|---|
| 219 | =head1 AUTHORS |
|---|
| 220 | |
|---|
| 221 | RSnake < h@ckers.org > |
|---|
| 222 | Joshua D. Abraham < jabra@spl0it.org > |
|---|
| 223 | |
|---|
| 224 | =head1 LEGAL NOTICES |
|---|
| 225 | |
|---|
| 226 | This program is distributed in the hope that it will be useful, but |
|---|
| 227 | WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 228 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 229 | General Public License for more details at |
|---|
| 230 | http://www.gnu.org/copyleft/gpl.html, or in the COPYING file included |
|---|
| 231 | with Fierce. |
|---|
| 232 | |
|---|
| 233 | Please use Fierce with care and at your own risk. |
|---|
| 234 | |
|---|
| 235 | =end man |
|---|