forked from comotion/cpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ced692
Showing
130 changed files
with
27,009 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/usr/bin/perl -w | ||
|
||
# ############################################################################## | ||
# this script gets a regular XML file in CPM format and replaces all sensible | ||
# information with 'x'. This should help to debug any problems which might | ||
# occure due to file size or content problems. | ||
# ############################################################################## | ||
# Copyright (C) 2005, 2006 Harry Brueckner | ||
# | ||
# 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 2 of the License, or any later version. | ||
# This program 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, write to the Free Software Foundation, Inc., | ||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | ||
# | ||
# Contact: Harry Brueckner <[email protected]> | ||
# Muenchener Strasse 12a | ||
# 85253 Kleinberghofen | ||
# Germany | ||
# ############################################################################## | ||
|
||
use strict; | ||
use warnings; | ||
|
||
|
||
# ############################################################################## | ||
|
||
sub main | ||
{ | ||
my ($line); | ||
|
||
while (defined($line = <STDIN>)) | ||
{ | ||
$line =~ s/( label)="([^"]+)"/translateAttribute($1, $2);/ge; | ||
$line =~ s/>([^<]+)</translateCdata($1);/ge; | ||
|
||
print $line; | ||
} | ||
} | ||
|
||
|
||
# ############################################################################## | ||
sub translateAttribute | ||
{ | ||
my ($label, $value) = @_; | ||
|
||
$value =~ s/./x/g; | ||
|
||
return $label . '="' . $value . '"'; | ||
} | ||
|
||
|
||
# ############################################################################## | ||
sub translateCdata | ||
{ | ||
my ($cdata) = @_; | ||
|
||
$cdata =~ s/./x/g; | ||
|
||
return '>' . $cdata . '<'; | ||
} | ||
|
||
|
||
# ############################################################################## | ||
|
||
main(); | ||
|
||
|
||
# ############################################################################## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# ############################################################################## | ||
# resource file for the Console Password Manager (cpm) | ||
# ############################################################################## | ||
|
||
# set this option to no if you do not want cpm to ask on exit | ||
AskToQuit yes | ||
|
||
# set this if you want to enter the passphrase only once at the start; | ||
# this only works if you use one of your own private keys for signing; as soon | ||
# as there is more than one, caching is disabled | ||
# WARNING: if you use this feature, please keep in mind that your passphrase | ||
# stays in memory during program runtime! | ||
KeepPassphrase yes | ||
|
||
# we want to create backup files | ||
CreateBackup yes | ||
|
||
# define the character used to hide the typing of the passphrase | ||
# if you don't want anything to be seen, set it to "_" | ||
HideCharacter "*" | ||
|
||
# define the default compression level of the XML data in the encrypted file; | ||
# 0 - no compression | ||
# 1 - best speed | ||
# ... | ||
# 9 - best compression | ||
# WARNING: turning compression off reduces the quality of the encryption since | ||
# much more text is known in the encrypted file; | ||
# a 'known plaintext attack' might be more successful if no | ||
# compression is used! | ||
Compression 9 | ||
|
||
# define the height of the infobox; the value must be [5..25] | ||
InfoboxHeight 5 | ||
|
||
|
||
# overwrite the default database filename | ||
# it defaults to $HOME/.cpmdb | ||
# DatabaseFile /tmp/testdb | ||
|
||
|
||
# default encoding keys | ||
# these keys are only used as default for new database files; after a file | ||
# exists, the actually used keys are used instead. | ||
# EncryptionKey "[email protected]" | ||
|
||
|
||
# password creation configuration | ||
PasswordLength 10 | ||
PasswordAlphabet "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-=@#$%_;:,." | ||
|
||
# set if passwords should be checked via cracklib and display a warning if the | ||
# password is bad | ||
CrackLibCheck yes | ||
|
||
|
||
# default template names | ||
# these template names are only used as long as nothing else is defined in | ||
# the database file. | ||
# if you specify "password" as a second argument, this template is considered | ||
# to hold passwords and is - if enabled - checked via cracklib | ||
TemplateName "host" | ||
TemplateName "service" | ||
TemplateName "user" | ||
TemplateName "password" "password" | ||
|
||
|
||
# if TemplateLock is set to yes, it's not possible to extend the depth of | ||
# existing templates. | ||
TemplateLock yes | ||
|
||
|
||
# search patterns for the commandline call and their response | ||
# WARNING: please keep in mind that the result pattern must also be fully | ||
# resolvable for each hit, the searchpattern matches! | ||
SearchPattern "host <host>" "<host>" | ||
SearchPattern "service <service>" "<service>" | ||
SearchPattern "user <user>" "<user>" | ||
SearchPattern "<service> <user>@<host>" "<service> <user>@<host> <password>" | ||
SearchPattern "<service>@<host>" "<service> <user>@<host> <password>" | ||
SearchPattern "<user>@<host>" "<service> <user>@<host> <password>" | ||
|
||
|
||
# default search type on the commandline interface | ||
# possible values are "regex" or "regular" | ||
SearchType regex | ||
|
||
# default type of case matching for the commandline interface | ||
# if set to yes, the search runs case sensitive, otherwise not | ||
MatchCaseSensitive yes | ||
|
||
|
||
# ############################################################################## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
/* config.h. Generated from config.h.in by configure. */ | ||
/* config.h.in. Generated from configure.in by autoheader. */ | ||
|
||
/* Define to the type of elements in the array set by `getgroups'. Usually | ||
this is either `int' or `gid_t'. */ | ||
#define GETGROUPS_T gid_t | ||
|
||
/* Define to 1 if you have the `clearenv' function. */ | ||
#define HAVE_CLEARENV 1 | ||
|
||
/* Define to 1 if you have the `environ' function. */ | ||
#define HAVE_ENVIRON 1 | ||
|
||
/* Define to 1 if you have the <fcntl.h> header file. */ | ||
#define HAVE_FCNTL_H 1 | ||
|
||
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ | ||
#define HAVE_FSEEKO 1 | ||
|
||
/* Define to 1 if your system has a working `getgroups' function. */ | ||
#define HAVE_GETGROUPS 1 | ||
|
||
/* Define to 1 if you have the <getopt.h> header file. */ | ||
#define HAVE_GETOPT_H 1 | ||
|
||
/* Define to 1 if you have the <inttypes.h> header file. */ | ||
#define HAVE_INTTYPES_H 1 | ||
|
||
/* Define to 1 if you have the `cdk' library (-lcdk). */ | ||
#define HAVE_LIBCDK 1 | ||
|
||
/* Define to 1 if you have the `crack' library (-lcrack). */ | ||
#define HAVE_LIBCRACK 1 | ||
|
||
/* Define to 1 if you have the `dotconf' library (-ldotconf). */ | ||
#define HAVE_LIBDOTCONF 1 | ||
|
||
/* Define to 1 if you have the `gpgme' library (-lgpgme). */ | ||
#define HAVE_LIBGPGME 1 | ||
|
||
/* Define to 1 if you have the <libintl.h> header file. */ | ||
#define HAVE_LIBINTL_H 1 | ||
|
||
/* Define to 1 if you have the `m' library (-lm). */ | ||
#define HAVE_LIBM 1 | ||
|
||
/* Define to 1 if you have the `ncurses' library (-lncurses). */ | ||
#define HAVE_LIBNCURSES 1 | ||
|
||
/* Define to 1 if you have the `xml2' library (-lxml2). */ | ||
#define HAVE_LIBXML2 1 | ||
|
||
/* Define to 1 if you have the `z' library (-lz). */ | ||
#define HAVE_LIBZ 1 | ||
|
||
/* Define to 1 if you have the <locale.h> header file. */ | ||
#define HAVE_LOCALE_H 1 | ||
|
||
/* Define to 1 if you have the <memory.h> header file. */ | ||
#define HAVE_MEMORY_H 1 | ||
|
||
/* Define to 1 if you have the `memset' function. */ | ||
#define HAVE_MEMSET 1 | ||
|
||
/* Define to 1 if you have the `mlockall' function. */ | ||
#define HAVE_MLOCKALL 1 | ||
|
||
/* Define to 1 if you have the `putenv' function. */ | ||
#define HAVE_PUTENV 1 | ||
|
||
/* Define to 1 if you have the `regcomp' function. */ | ||
#define HAVE_REGCOMP 1 | ||
|
||
/* Define to 1 if you have the `setlocale' function. */ | ||
#define HAVE_SETLOCALE 1 | ||
|
||
/* Define to 1 if `stat' has the bug that it succeeds when given the | ||
zero-length file name argument. */ | ||
/* #undef HAVE_STAT_EMPTY_STRING_BUG */ | ||
|
||
/* Define to 1 if you have the <stdint.h> header file. */ | ||
#define HAVE_STDINT_H 1 | ||
|
||
/* Define to 1 if you have the <stdlib.h> header file. */ | ||
#define HAVE_STDLIB_H 1 | ||
|
||
/* Define to 1 if you have the `strcasecmp' function. */ | ||
#define HAVE_STRCASECMP 1 | ||
|
||
/* Define to 1 if you have the `strchr' function. */ | ||
#define HAVE_STRCHR 1 | ||
|
||
/* Define to 1 if you have the `strerror' function. */ | ||
#define HAVE_STRERROR 1 | ||
|
||
/* Define to 1 if you have the <strings.h> header file. */ | ||
#define HAVE_STRINGS_H 1 | ||
|
||
/* Define to 1 if you have the <string.h> header file. */ | ||
#define HAVE_STRING_H 1 | ||
|
||
/* Define to 1 if you have the <sys/fsuid.h> header file. */ | ||
#define HAVE_SYS_FSUID_H 1 | ||
|
||
/* Define to 1 if you have the <sys/ioctl.h> header file. */ | ||
#define HAVE_SYS_IOCTL_H 1 | ||
|
||
/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
#define HAVE_SYS_STAT_H 1 | ||
|
||
/* Define to 1 if you have the <sys/types.h> header file. */ | ||
#define HAVE_SYS_TYPES_H 1 | ||
|
||
/* Define to 1 if you have the `tcgetattr' function. */ | ||
#define HAVE_TCGETATTR 1 | ||
|
||
/* Define to 1 if you have the <termios.h> header file. */ | ||
#define HAVE_TERMIOS_H 1 | ||
|
||
/* Define to 1 if you have the <unistd.h> header file. */ | ||
#define HAVE_UNISTD_H 1 | ||
|
||
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing | ||
slash. */ | ||
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | ||
|
||
/* Define to the address where bug reports for this package should be sent. */ | ||
#define PACKAGE_BUGREPORT "[email protected]" | ||
|
||
/* Define to the full name of this package. */ | ||
#define PACKAGE_NAME "cpm" | ||
|
||
/* Define to the full name and version of this package. */ | ||
#define PACKAGE_STRING "cpm 0.23beta" | ||
|
||
/* Define to the one symbol short name of this package. */ | ||
#define PACKAGE_TARNAME "cpm" | ||
|
||
/* Define to the version of this package. */ | ||
#define PACKAGE_VERSION "0.23beta" | ||
|
||
/* Define as the return type of signal handlers (`int' or `void'). */ | ||
#define RETSIGTYPE void | ||
|
||
/* Define to 1 if you have the ANSI C header files. */ | ||
#define STDC_HEADERS 1 | ||
|
||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */ | ||
/* #undef TM_IN_SYS_TIME */ | ||
|
||
/* Number of bits in a file offset, on hosts where this is settable. */ | ||
#define _FILE_OFFSET_BITS 64 | ||
|
||
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ | ||
#define _LARGEFILE_SOURCE 1 | ||
|
||
/* Define for large files, on AIX-style hosts. */ | ||
/* #undef _LARGE_FILES */ | ||
|
||
/* Define to empty if `const' does not conform to ANSI C. */ | ||
/* #undef const */ | ||
|
||
/* Define to `int' if <sys/types.h> doesn't define. */ | ||
/* #undef gid_t */ | ||
|
||
/* Define to `int' if <sys/types.h> does not define. */ | ||
/* #undef mode_t */ | ||
|
||
/* Define to `long int' if <sys/types.h> does not define. */ | ||
/* #undef off_t */ | ||
|
||
/* Define to `int' if <sys/types.h> does not define. */ | ||
/* #undef pid_t */ | ||
|
||
/* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
/* #undef size_t */ | ||
|
||
/* Define to `int' if <sys/types.h> doesn't define. */ | ||
/* #undef uid_t */ | ||
|
||
/* Define to empty if the keyword `volatile' does not work. Warning: valid | ||
code using `volatile' can become incorrect without. Disable with care. */ | ||
/* #undef volatile */ |
Oops, something went wrong.