[Forensics-changes] [cewl] 02/02: Imported Debian patch 5.1-1

Joao Eriberto Mota Filho eriberto at moszumanska.debian.org
Sun Jan 11 05:01:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

eriberto pushed a commit to branch debian
in repository cewl.

commit 773c8d1b62173be066d47ab870a740f0325fc261
Author: Joao Eriberto Mota Filho <eriberto at debian.org>
Date:   Thu Jan 8 13:57:27 2015 -0200

    Imported Debian patch 5.1-1
---
 debian/changelog                |  10 ++
 debian/compat                   |   1 +
 debian/control                  |  44 +++++++
 debian/copyright                | 283 ++++++++++++++++++++++++++++++++++++++++
 debian/docs                     |   1 +
 debian/gbp.conf                 |   3 +
 debian/manpage/cewl.1           | 123 +++++++++++++++++
 debian/manpage/cewl.header      |   1 +
 debian/manpage/cewl.txt         |  50 +++++++
 debian/manpage/fab-cewl.1       |  42 ++++++
 debian/manpage/fab-cewl.header  |   1 +
 debian/manpage/fab-cewl.txt     |  28 ++++
 debian/manpage/genallman.sh     |  27 ++++
 debian/manpages                 |   1 +
 debian/patches/fix-fab-name     |  28 ++++
 debian/patches/fix-lib-location |  29 ++++
 debian/patches/series           |   2 +
 debian/rules                    |  12 ++
 debian/source/format            |   1 +
 debian/watch                    |   2 +
 20 files changed, 689 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7c89b36
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,10 @@
+cewl (5.1-1) experimental; urgency=medium
+
+  * Initial release (Closes: #774165)
+  * In a re-upload:
+    - Added the CC-BY-SA-2.0 license to
+      debian/copyright, as requested by FTP-Master.
+    - Added the debian/gbp.conf file.
+    - Little improvements in manpage.
+
+ -- Joao Eriberto Mota Filho <eriberto at debian.org>  Thu, 08 Jan 2015 13:57:27 -0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..483beeb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: cewl
+Section: ruby
+Priority: optional
+Maintainer: Debian Forensics <forensics-devel at lists.alioth.debian.org>
+Uploaders: Joao Eriberto Mota Filho <eriberto at debian.org>
+Build-Depends: debhelper (>= 9), gem2deb
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/forensics/cewl.git
+Vcs-Browser: http://anonscm.debian.org/cgit/forensics/cewl.git
+Homepage: http://digi.ninja/projects/cewl.php
+XS-Ruby-Versions: all
+
+Package: cewl
+Architecture: all
+Depends: ${misc:Depends},
+         ruby | ruby-interpreter,
+         ruby-mime,
+         ruby-mime-types,
+         ruby-mini-exiftool,
+         ruby-net-http-digest-auth,
+         ruby-nokogiri,
+         ruby-spider,
+         ruby-zip
+Suggests: john
+Description: custom word list generator
+ CeWL (Custom Word List generator) is a ruby app which spiders
+ a given URL, up to a specified depth, and returns a list of
+ words which can then be used for password crackers such as John
+ the Ripper. Optionally, CeWL can follow  external links.
+ .
+ CeWL can also create a list of email addresses found in mailto
+ links. These email addresses can be used as usernames in brute
+ force actions.
+ .
+ Another tool provided by CeWL project is FAB (Files Already
+ Bagged). FAB extracts the content of the author/creator fields,
+ from metadata of the some files, to create lists of possible
+ usernames. These usernames can be used in association with the
+ password list generated by CeWL. FAB uses the same metadata
+ extraction techniques that CeWL. Currently, FAB process Office
+ pre 2007, Office 2007 and PDF formats.
+ .
+ CeWL is useful in security tests and forensics investigations.
+ CeWL is pronounced "cool".
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3ef3954
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,283 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cewl
+Source: http://digi.ninja/projects/cewl.php
+
+Files: *
+Copyright: 2010-2014 Robin Wood <robin at digi.ninja>
+License: CC-BY-SA-2.0 or GPL-3+
+Comment: CC-BY-SA-2.0 is not DFSG-compatible.
+
+Files: debian/*
+Copyright: 2015 Joao Eriberto Mota Filho <eriberto at debian.org>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: CC-BY-SA-2.0
+ Creative Commons Attribution-ShareAlike 2.0
+ .
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL
+ SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT
+ RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS"
+ BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION
+ PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
+ .
+ License
+ .
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+ COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+ COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+ AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+ .
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
+ TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE
+ RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
+ CONDITIONS.
+ .
+ 1. Definitions
+ .
+    a. "Collective Work" means a work, such as a periodical issue, anthology
+       or encyclopedia, in which the Work in its entirety in unmodified form,
+       along with a number of other contributions, constituting separate and
+       independent works in themselves, are assembled into a collective whole.
+       A work that constitutes a Collective Work will not be considered a
+       Derivative Work (as defined below) for the purposes of this License.
+    .
+    b. "Derivative Work" means a work based upon the Work or upon the Work and
+       other pre-existing works, such as a translation, musical arrangement,
+       dramatization, fictionalization, motion picture version, sound recording,
+       art reproduction, abridgment, condensation, or any other form in which
+       the Work may be recast, transformed, or adapted, except that a work that
+       constitutes a Collective Work will not be considered a Derivative Work
+       for the purpose of this License. For the avoidance of doubt, where the
+       Work is a musical composition or sound recording, the synchronization of
+       the Work in timed-relation with a moving image ("synching") will be
+       considered a Derivative Work for the purpose of this License.
+    .
+    c. "Licensor" means the individual or entity that offers the Work under the
+       terms of this License.
+    .
+    d. "Original Author" means the individual or entity who created the Work.
+    .
+    e. "Work" means the copyrightable work of authorship offered under the terms
+       of this License.
+    .
+    f. "You" means an individual or entity exercising rights under this License
+       who has not previously violated the terms of this License with respect to
+       the Work, or who has received express permission from the Licensor to
+       exercise rights under this License despite a previous violation.
+    .
+    g. "License Elements" means the following high-level license attributes as
+       selected by Licensor and indicated in the title of this License:
+       Attribution, ShareAlike.
+ .
+ 2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or
+    restrict any rights arising from fair use, first sale or other limitations
+    on the exclusive rights of the copyright owner under copyright law or other
+    applicable laws.
+ .
+ 3. License Grant. Subject to the terms and conditions of this License, Licensor
+    hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for
+    the duration of the applicable copyright) license to exercise the rights in
+    the Work as stated below:
+ .
+    a. to reproduce the Work, to incorporate the Work into one or more Collective
+       Works, and to reproduce the Work as incorporated in the Collective Works;
+    .
+    b. to create and reproduce Derivative Works;
+    .
+    c. to distribute copies or phonorecords of, display publicly, perform
+       publicly, and perform publicly by means of a digital audio transmission
+       the Work including as incorporated in Collective Works;
+    .
+    d. to distribute copies or phonorecords of, display publicly, perform
+       publicly, and perform publicly by means of a digital audio transmission
+       Derivative Works.
+    .
+    e. For the avoidance of doubt, where the work is a musical composition:
+    .
+       i. Performance Royalties Under Blanket Licenses. Licensor waives the
+          exclusive right to collect, whether individually or via a performance
+          rights society (e.g. ASCAP, BMI, SESAC), royalties for the public
+          performance or public digital performance (e.g. webcast) of the Work.
+       .
+       ii. Mechanical Rights and Statutory Royalties. Licensor waives the
+           exclusive right to collect, whether individually or via a music rights
+           society or designated agent (e.g. Harry Fox Agency), royalties for any
+           phonorecord You create from the Work ("cover version") and distribute,
+           subject to the compulsory license created by 17 USC Section 115 of the
+           US Copyright Act (or the equivalent in other jurisdictions).
+    .
+    f. Webcasting Rights and Statutory Royalties. For the avoidance of doubt,
+       where the Work is a sound recording, Licensor waives the exclusive right
+       to collect, whether individually or via a performance-rights society
+       (e.g. SoundExchange), royalties for the public digital performance (e.g.
+       webcast) of the Work, subject to the compulsory license created by 17 USC
+       Section 114 of the US Copyright Act (or the equivalent in other
+       jurisdictions).
+ .
+ The above rights may be exercised in all media and formats whether now known or
+ hereafter devised. The above rights include the right to make such modifications
+ as are technically necessary to exercise the rights in other media and formats.
+ All rights not expressly granted by Licensor are hereby reserved.
+ .
+ 4. Restrictions. The license granted in Section 3 above is expressly made
+    subject to and limited by the following restrictions:
+    .
+    a. You may distribute, publicly display, publicly perform, or publicly
+       digitally perform the Work only under the terms of this License, and
+       You must include a copy of, or the Uniform Resource Identifier for,
+       this License with every copy or phonorecord of the Work You distribute,
+       publicly display, publicly perform, or publicly digitally perform. You
+       may not offer or impose any terms on the Work that alter or restrict the
+       terms of this License or the recipients' exercise of the rights granted
+       hereunder. You may not sublicense the Work. You must keep intact all
+       notices that refer to this License and to the disclaimer of warranties.
+       You may not distribute, publicly display, publicly perform, or publicly
+       digitally perform the Work with any technological measures that control
+       access or use of the Work in a manner inconsistent with the terms of this
+       License Agreement. The above applies to the Work as incorporated in a
+       Collective Work, but this does not require the Collective Work apart from
+       the Work itself to be made subject to the terms of this License. If You
+       create a Collective Work, upon notice from any Licensor You must, to the
+       extent practicable, remove from the Collective Work any reference to such
+       Licensor or the Original Author, as requested. If You create a Derivative
+       Work, upon notice from any Licensor You must, to the extent practicable,
+       remove from the Derivative Work any reference to such Licensor or the
+       Original Author, as requested.
+    .
+    b. You may distribute, publicly display, publicly perform, or publicly
+       digitally perform a Derivative Work only under the terms of this License,
+       a later version of this License with the same License Elements as this
+       License, or a Creative Commons iCommons license that contains the same
+       License Elements as this License (e.g. Attribution-ShareAlike 2.0 Japan).
+       You must include a copy of, or the Uniform Resource Identifier for, this
+       License or other license specified in the previous sentence with every
+       copy or phonorecord of each Derivative Work You distribute, publicly
+       display, publicly perform, or publicly digitally perform. You may not
+       offer or impose any terms on the Derivative Works that alter or restrict
+       the terms of this License or the recipients' exercise of the rights
+       granted hereunder, and You must keep intact all notices that refer to this
+       License and to the disclaimer of warranties. You may not distribute,
+       publicly display, publicly perform, or publicly digitally perform the
+       Derivative Work with any technological measures that control access or use
+       of the Work in a manner inconsistent with the terms of this License
+       Agreement. The above applies to the Derivative Work as incorporated in a
+       Collective Work, but this does not require the Collective Work apart from
+       the Derivative Work itself to be made subject to the terms of this
+       License.
+    .
+    c. If you distribute, publicly display, publicly perform, or publicly
+       digitally perform the Work or any Derivative Works or Collective Works,
+       You must keep intact all copyright notices for the Work and give the
+       Original Author credit reasonable to the medium or means You are utilizing
+       by conveying the name (or pseudonym if applicable) of the Original Author
+       if supplied; the title of the Work if supplied; to the extent reasonably
+       practicable, the Uniform Resource Identifier, if any, that Licensor
+       specifies to be associated with the Work, unless such URI does not refer
+       to the copyright notice or licensing information for the Work; and in the
+       case of a Derivative Work, a credit identifying the use of the Work in the
+       Derivative Work (e.g., "French translation of the Work by Original
+       Author," or "Screenplay based on original Work by Original Author"). Such
+       credit may be implemented in any reasonable manner; provided, however,
+       that in the case of a Derivative Work or Collective Work, at a minimum
+       such credit will appear where any other comparable authorship credit
+       appears and in a manner at least as prominent as such other comparable
+       authorship credit.
+ .
+ 5. Representations, Warranties and Disclaimer
+ .
+ UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK
+ AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE
+ MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT
+ LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY,
+ OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME
+ JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH
+ EXCLUSION MAY NOT APPLY TO YOU.
+ .
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN
+    NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL,
+    INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS
+    LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE
+    POSSIBILITY OF SUCH DAMAGES.
+ .
+ 7. Termination
+ .
+    a. This License and the rights granted hereunder will terminate automatically
+       upon any breach by You of the terms of this License. Individuals or
+       entities who have received Derivative Works or Collective Works from You
+       under this License, however, will not have their licenses terminated
+       provided such individuals or entities remain in full compliance with those
+       licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of
+       this License.
+    .
+    b. Subject to the above terms and conditions, the license granted here is
+       perpetual (for the duration of the applicable copyright in the Work).
+       Notwithstanding the above, Licensor reserves the right to release the Work
+       under different license terms or to stop distributing the Work at any
+       time; provided, however that any such election will not serve to withdraw
+       this License (or any other license that has been, or is required to be,
+       granted under the terms of this License), and this License will continue
+       in full force and effect unless terminated as stated above.
+ .
+ 8. Miscellaneous
+ .
+    a. Each time You distribute or publicly digitally perform the Work or a
+       Collective Work, the Licensor offers to the recipient a license to the
+       Work on the same terms and conditions as the license granted to You under
+       this License.
+    .
+    b. Each time You distribute or publicly digitally perform a Derivative Work,
+       Licensor offers to the recipient a license to the original Work on the
+       same terms and conditions as the license granted to You under this
+       License.
+    .
+    c. If any provision of this License is invalid or unenforceable under
+       applicable law, it shall not affect the validity or enforceability of
+       the remainder of the terms of this License, and without further action
+       by the parties to this agreement, such provision shall be reformed to
+       the minimum extent necessary to make such provision valid and enforceable.
+    .
+    d. No term or provision of this License shall be deemed waived and no breach
+       consented to unless such waiver or consent shall be in writing and signed
+       by the party to be charged with such waiver or consent.
+    .
+    e. This License constitutes the entire agreement between the parties with
+       respect to the Work licensed here. There are no understandings, agreements
+       or representations with respect to the Work not specified here. Licensor
+       shall not be bound by any additional provisions that may appear in any
+       communication from You. This License may not be modified without the
+       mutual written agreement of the Licensor and You.
+ .
+ Creative Commons is not a party to this License, and makes no warranty
+ whatsoever in connection with the Work. Creative Commons will not be liable
+ to You or any party on any legal theory for any damages whatsoever, including
+ without limitation any general, special, incidental or consequential damages
+ arising in connection to this license. Notwithstanding the foregoing two (2)
+ sentences, if Creative Commons has expressly identified itself as the Licensor
+ hereunder, it shall have all rights and obligations of Licensor.
+ .
+ Except for the limited purpose of indicating to the public that the Work is
+ licensed under the CCPL, neither party will use the trademark "Creative Commons"
+ or any related trademark or logo of Creative Commons without the prior written
+ consent of Creative Commons. Any permitted use will be in compliance with
+ Creative Commons' then-current trademark usage guidelines, as may be published
+ on its website or otherwise made available upon request from time to time.
+ .
+ Creative Commons may be contacted at http://creativecommons.org/.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..23e88fe
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+debian-branch = debian
+pristine-tar = True
diff --git a/debian/manpage/cewl.1 b/debian/manpage/cewl.1
new file mode 100644
index 0000000..3e88d93
--- /dev/null
+++ b/debian/manpage/cewl.1
@@ -0,0 +1,123 @@
+.TH cewl "1" "Dec 2014" "CEWL 5.1" "custom word list generator"
+.\"Text automatically generated by txt2man
+.SH NAME
+\fBcewl \fP- custom word list generator
+.SH SYNOPSIS
+.nf
+.fam C
+\fBcewl\fP [\fIOPTION\fP] \.\.\. \fIURL\fP
+.fam T
+.fi
+.fam T
+.fi
+.SH DESCRIPTION
+CeWL (Custom Word List generator) is a ruby app which spiders a given \fIURL\fP, up to a specified depth, and returns
+a list of words which can then be used for password crackers such as John the Ripper. Optionally, CeWL can follow
+external links.
+.PP
+CeWL can also create a list of email addresses found in mailto links. These email addresses can be used as
+usernames in brute force actions.
+.PP
+CeWL is pronounced "cool".
+.SH OPTIONS
+.TP
+.B
+\fB--help\fP, \fB-h\fP
+Show the help.
+.TP
+.B
+\fB--count\fP, \fB-c\fP
+Show the count for each word found.
+.TP
+.B
+\fB--depth\fP <n>, \fB-d\fP <n>
+The depth to spider to. Default: 2.
+.TP
+.B
+\fB--email\fP, \fB-e\fP
+Include email addresses in the search. This option will create an email list, after the words list, that can be used as usernames in brute force actions.
+.TP
+.B
+\fB--email_file\fP <file>
+Filename for email output. Must be used with '\fB-e\fP' option. If used, the email list created by '\fB-e\fP' option will be written in a file and won't be shown in stdout.
+.TP
+.B
+\fB--keep\fP, \fB-k\fP
+Keep the downloaded files (in /tmp or in directory specified by '\fB--meta-temp-dir\fP' option). These files are acquired when using the '\fB-a\fP' option.
+.TP
+.B
+\fB--meta\fP, \fB-a\fP
+Consider the metadata found when processing a site. This option will download some files found in the site and will extract its metadata. So, the network traffic will be greater. The files will be downloaded in /tmp folder or in directory specified by '\fB--meta-temp-dir\fP' option. The metadata will be shown after the words list and can be used as elements for brute force actions.
+.TP
+.B
+\fB--meta_file\fP <file>
+Filename for metadata output. Must be used with '\fB-a\fP' option. If used, the metadata list created by '\fB-a\fP' option will be written in a file and won't be shown in stdout.
+.TP
+.B
+\fB--meta-temp-dir\fP <directory>
+The directory used by exiftool when parsing files. Default: /tmp.
+.TP
+.B
+\fB--min_word_length\fP <n>, \fB-m\fP <n>
+The minimum word length. This strips out all words under the specified length. Default: 3.
+.TP
+.B
+\fB--no-words\fP, \fB-n\fP
+Don't output the wordlist.
+.TP
+.B
+\fB--offsite\fP, \fB-o\fP
+By default, the spider will only visit the site specified. With this option, CeWL will also visit external sites (that are quoted by hyperlinks).
+.TP
+.B
+\fB--ua\fP <user-agent>, \fB-u\fP <user-agent>
+Change the user-agent. The default is 'Ruby'. There are a list of valid user-agents at http://www.user-agents.org.
+.TP
+.B
+\fB--write\fP <file>, \fB-w\fP <file>
+Write the output to the file rather than to stdout.
+.TP
+.B
+\fB--auth_type\fP <type>
+Type of authentication for websites that uses it. The current options are 'digest' and 'basic'.
+.TP
+.B
+\fB--auth_user\fP <username>
+Authentication username for websites.
+.TP
+.B
+\fB--auth_pass\fP <password>
+Authentication password for websites.
+.TP
+.B
+\fB--proxy_host\fP <host>
+Proxy name or IP address, when needed.
+.TP
+.B
+\fB--proxy_port\fP <port>
+Proxy port, when needed. Default: 8080.
+.TP
+.B
+\fB--proxy_username\fP <username>
+Username for proxy, if required.
+.TP
+.B
+\fB--proxy_password\fP <password>
+Password for proxy, if required.
+.TP
+.B
+\fB--verbose\fP, \fB-v\fP
+Verbose. Show extra output. Useful for debugs.
+.TP
+.B
+\fIURL\fP
+The site to spider.
+.SH BUGS
+Someone has reported that the spider misses some pages which are have querystrings on them. This issue isn't confirmed.
+.SH SEE ALSO
+\fBfab-\fBcewl\fP\fP(1)
+.SH AUTHOR
+The CeWL was written by Robin Wood <robin at digi.ninja>.
+.PP
+This manual page was written by Joao Eriberto Mota Filho <eriberto at debian.org>
+for the Debian project (but may be used by others).
diff --git a/debian/manpage/cewl.header b/debian/manpage/cewl.header
new file mode 100644
index 0000000..a9b62f6
--- /dev/null
+++ b/debian/manpage/cewl.header
@@ -0,0 +1 @@
+.TH cewl "1" "Dec 2014" "CEWL 5.1" "custom word list generator"
diff --git a/debian/manpage/cewl.txt b/debian/manpage/cewl.txt
new file mode 100644
index 0000000..9283980
--- /dev/null
+++ b/debian/manpage/cewl.txt
@@ -0,0 +1,50 @@
+NAME
+  cewl - custom word list generator
+SYNOPSIS
+  cewl [OPTION] ... URL
+DESCRIPTION
+  CeWL (Custom Word List generator) is a ruby app which spiders a given URL, up to a specified depth, and returns
+  a list of words which can then be used for password crackers such as John the Ripper. Optionally, CeWL can follow
+  external links.
+
+  CeWL can also create a list of email addresses found in mailto links. These email addresses can be used as
+  usernames in brute force actions.
+
+  CeWL is pronounced "cool".
+
+OPTIONS
+--help, -h                          Show the help.
+--count, -c                         Show the count for each word found.
+--depth <n>, -d <n>                 The depth to spider to. Default: 2.
+--email, -e                         Include email addresses in the search. This option will create an email list, after the words list, that can be used as usernames in brute force actions.
+--email_file <file>                 Filename for email output. Must be used with '-e' option. If used, the email list created by '-e' option will be written in a file and won't be shown in stdout.
+--keep, -k                          Keep the downloaded files (in /tmp or in directory specified by '--meta-temp-dir' option). These files are acquired when using the '-a' option.
+--meta, -a                          Consider the metadata found when processing a site. This option will download some files found in the site and will extract its metadata. So, the network traffic will be greater. The files will be downloaded in /tmp folder or in directory specified by '--meta-temp-dir' option. The metadata will be shown after the words list and can be used as elements for brute force actions.
+--meta_file <file>                  Filename for metadata output. Must be used with '-a' option. If used, the metadata list created by '-a' option will be written in a file and won't be shown in stdout.
+--meta-temp-dir <directory>         The directory used by exiftool when parsing files. Default: /tmp.
+--min_word_length <n>, -m <n>       The minimum word length. This strips out all words under the specified length. Default: 3.
+--no-words, -n                      Don't output the wordlist.
+--offsite, -o                       By default, the spider will only visit the site specified. With this option, CeWL will also visit external sites (that are quoted by hyperlinks).
+--ua <user-agent>, -u <user-agent>  Change the user-agent. The default is 'Ruby'. There are a list of valid user-agents at http://www.user-agents.org.
+--write <file>, -w <file>           Write the output to the file rather than to stdout.
+--auth_type <type>                  Type of authentication for websites that uses it. The current options are 'digest' and 'basic'.
+--auth_user <username>              Authentication username for websites.
+--auth_pass <password>              Authentication password for websites.
+--proxy_host <host>                 Proxy name or IP address, when needed.
+--proxy_port <port>                 Proxy port, when needed. Default: 8080.
+--proxy_username <username>         Username for proxy, if required.
+--proxy_password <password>         Password for proxy, if required.
+--verbose, -v                       Verbose. Show extra output. Useful for debugs.
+URL                                 The site to spider.
+
+BUGS
+  Someone has reported that the spider misses some pages which are have querystrings on them. This issue isn't confirmed.
+
+SEE ALSO
+  fab-cewl(1)
+
+AUTHOR
+  The CeWL was written by Robin Wood <robin at digi.ninja>.
+
+  This manual page was written by Joao Eriberto Mota Filho <eriberto at debian.org>
+  for the Debian project (but may be used by others).
diff --git a/debian/manpage/fab-cewl.1 b/debian/manpage/fab-cewl.1
new file mode 100644
index 0000000..c7fc76e
--- /dev/null
+++ b/debian/manpage/fab-cewl.1
@@ -0,0 +1,42 @@
+.TH fab-cewl "1" "Dec 2014" "FAB-CEWL 5.1" "extract metadata from files"
+.\"Text automatically generated by txt2man
+.SH NAME
+\fBfab-cewl \fP- extract metadata from files
+\fB
+.SH SYNOPSIS
+.nf
+.fam C
+fab-cewl [OPTION] \.\.\. \fBfilename\fP(\fIs\fP)
+
+.fam T
+.fi
+.fam T
+.fi
+.SH DESCRIPTION
+FAB (Files Already Bagged, provided as fab-cewl command in Debian) extracts
+the content of the author/creator fields, from metadata of the some files,
+to create lists of possible usernames. These usernames can be used association
+with the password list generated by \fBcewl\fP(1). FAB uses the same metadata extraction
+techniques that CeWL.
+.PP
+Currently, FAB process Office pre 2007, Office 2007 and PDF formats.
+.SH OPTIONS
+.TP
+.B
+\fB-h\fP, \fB--help\fP
+Show this help.
+.TP
+.B
+\fB-v\fP
+Verbose.
+.TP
+.B
+\fBfilename\fP(\fIs\fP)
+The file or list of files to check.
+.SH SEE ALSO
+\fBcewl\fP(1)
+.SH AUTHOR
+The CeWL was written by Robin Wood <robin at digi.ninja>.
+.PP
+This manual page was written by Joao Eriberto Mota Filho <eriberto at debian.org>
+for the Debian project (but may be used by others).
diff --git a/debian/manpage/fab-cewl.header b/debian/manpage/fab-cewl.header
new file mode 100644
index 0000000..0e6953e
--- /dev/null
+++ b/debian/manpage/fab-cewl.header
@@ -0,0 +1 @@
+.TH fab-cewl "1" "Dec 2014" "FAB-CEWL 5.1" "extract metadata from files"
diff --git a/debian/manpage/fab-cewl.txt b/debian/manpage/fab-cewl.txt
new file mode 100644
index 0000000..c63bd10
--- /dev/null
+++ b/debian/manpage/fab-cewl.txt
@@ -0,0 +1,28 @@
+NAME
+  fab-cewl - extract metadata from files
+
+SYNOPSIS
+  fab-cewl [OPTION] ... filename(s)
+
+DESCRIPTION
+  FAB (Files Already Bagged, provided as fab-cewl command in Debian) extracts
+  the content of the author/creator fields, from metadata of the some files,
+  to create lists of possible usernames. These usernames can be used association
+  with the password list generated by cewl(1). FAB uses the same metadata extraction
+  techniques that CeWL.
+
+  Currently, FAB process Office pre 2007, Office 2007 and PDF formats.
+
+OPTIONS
+  -h, --help  Show this help.
+  -v          Verbose.
+  filename(s)  The file or list of files to check.
+
+SEE ALSO
+  cewl(1)
+
+AUTHOR
+  The CeWL was written by Robin Wood <robin at digi.ninja>.
+
+  This manual page was written by Joao Eriberto Mota Filho <eriberto at debian.org>
+  for the Debian project (but may be used by others).
diff --git a/debian/manpage/genallman.sh b/debian/manpage/genallman.sh
new file mode 100755
index 0000000..130ecf8
--- /dev/null
+++ b/debian/manpage/genallman.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Generate several manpages at the same time.
+# C 2014 Joao Eriberto Mota Filho <eriberto at debian.org>
+#
+# You can use this code in the same terms of the BSD-3-clause license or,
+# optionally, in the same terms of the license used in debian/ directory
+# in this Debian package. Please, to the last option, refer the package
+# name when using.
+#
+# This script uses txt2man. You need 2 files: program_name.txt and
+# program_name.header.
+#
+# The program_name.header must be use this structure:
+#
+# .TH <program_name> "<manpage_level>"  "<date>" "<program_name_upper_case> <program_version>" "<program_description>"
+#
+# Example:
+#
+# .TH mac-robber "1"  "May 2013" "MAC-ROBBER 1.02" "collects data about allocated files in mounted filesystems"
+
+for NAME in $(ls | grep header | cut -d'.' -f1)
+do
+    LEVEL=$(cat $NAME.header | cut -d" " -f3 | tr -d '"')
+    cat $NAME.header > $NAME.$LEVEL
+    txt2man $NAME.txt | grep -v '^.TH ' >> $NAME.$LEVEL
+done
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..1f711fa
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/manpage/*.1
diff --git a/debian/patches/fix-fab-name b/debian/patches/fix-fab-name
new file mode 100644
index 0000000..0b83db4
--- /dev/null
+++ b/debian/patches/fix-fab-name
@@ -0,0 +1,28 @@
+Description: fix the FAB name.
+Author: Joao Eriberto Mota Filho <eriberto at debian.org>
+Last-update: 2014-12-19
+Index: cewl-5.1/fab.rb
+===================================================================
+--- cewl-5.1.orig/fab.rb
++++ cewl-5.1/fab.rb
+@@ -12,7 +12,7 @@
+ #
+ # == Usage
+ #
+-# fab [OPTION] ... filename/list
++# fab-cewl [OPTION] ... filename/list
+ #
+ # -h, --help:
+ #    show help
+@@ -37,9 +37,9 @@ opts = GetoptLong.new(
+ )
+ 
+ def usage
+-	puts"xx
++	puts"fab-cewl
+ 
+-Usage: xx [OPTION] ... filename/list
++Usage: fab-cewl [OPTION] ... filename/list
+ 	-h, --help: show help
+ 	-v: verbose
+ 	
diff --git a/debian/patches/fix-lib-location b/debian/patches/fix-lib-location
new file mode 100644
index 0000000..72d4fde
--- /dev/null
+++ b/debian/patches/fix-lib-location
@@ -0,0 +1,29 @@
+Description: fix the CeWL library location.
+Author: Joao Eriberto Mota Filho <eriberto at debian.org>
+Last-Update: 2014-12-19
+Index: cewl-5.1/cewl.rb
+===================================================================
+--- cewl-5.1.orig/cewl.rb
++++ cewl-5.1/cewl.rb
+@@ -87,7 +87,7 @@ rescue LoadError => e
+ 	end
+ end
+ 
+-require './cewl_lib'
++require 'cewl_lib'
+ 
+ # Doing this so I can override the allowed? fuction which normally checks
+ # the robots.txt file
+Index: cewl-5.1/fab.rb
+===================================================================
+--- cewl-5.1.orig/fab.rb
++++ cewl-5.1/fab.rb
+@@ -29,7 +29,7 @@
+ 
+ require "rubygems"
+ require 'getoptlong'
+-require "./cewl_lib.rb"
++require "cewl_lib.rb"
+ 
+ opts = GetoptLong.new(
+ 	[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0145e43
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix-fab-name
+fix-lib-location
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..95636d4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	install -D -m 644 cewl_lib.rb debian/cewl/usr/lib/ruby/vendor_ruby/cewl_lib.rb
+	install -D cewl.rb debian/cewl/usr/bin/cewl
+	install -D fab.rb debian/cewl/usr/bin/fab-cewl
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9cf8f8d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://digi.ninja/projects/cewl.php /files/cewl(?:-|_)(\d\S+)\.tar\.(?:bz2|xz|gz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/cewl.git



More information about the forensics-changes mailing list