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

Joao Eriberto Mota Filho eriberto at moszumanska.debian.org
Wed Dec 31 12:56:58 UTC 2014


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

eriberto pushed a commit to branch master
in repository cewl.

commit fb0fa289a9c6e7c825a59d431b1a2a2cec7fc75d
Author: Joao Eriberto Mota Filho <eriberto at debian.org>
Date:   Mon Sep 29 10:41:27 2014 -0300

    Imported Debian patch 5.1-1
---
 debian/changelog                |   5 ++
 debian/compat                   |   1 +
 debian/control                  |  44 ++++++++++++++
 debian/copyright                |  28 +++++++++
 debian/docs                     |   1 +
 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 +
 19 files changed, 426 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d0cb516
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cewl (5.1-1) experimental; urgency=medium
+
+  * Initial release (Closes: #774165)
+
+ -- Joao Eriberto Mota Filho <eriberto at debian.org>  Mon, 29 Sep 2014 10:41:27 -0300
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..b2aa93d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+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: GPL-3+
+
+Files: debian/*
+Copyright: 2014 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".
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/manpage/cewl.1 b/debian/manpage/cewl.1
new file mode 100644
index 0000000..67f98c7
--- /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.
+.TP
+.B
+\fB--email_file\fP <file>
+Filename for email output.
+.TP
+.B
+\fB--keep\fP, \fB-k\fP
+Keep the downloaded file.
+.TP
+.B
+\fB--meta\fP, \fB-a\fP
+Consider the metadata found when processing a site.
+.TP
+.B
+\fB--meta_file\fP <file>
+Filename for metadata output.
+.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..b587544
--- /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.
+--email_file <file>                 Filename for email output.
+--keep, -k                          Keep the downloaded file.
+--meta, -a                          Consider the metadata found when processing a site.
+--meta_file <file>                  Filename for metadata output.
+--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