Add steg and logger (neither work yet)

This commit is contained in:
Neale Pickett 2010-10-06 17:20:00 -06:00
parent 8c0ed9e471
commit b04979ea77
43 changed files with 1361 additions and 36 deletions

View File

@ -2,3 +2,5 @@ Things That Need Fixin'
=======================
* puzzles.cgi really needs to cross out points your team has claimed.
* I really hate C. Is it possible to use some other language (like
Haskell)?

4
logger/service/logger/log/run Executable file
View File

@ -0,0 +1,4 @@
#! /bin/sh
# I'm sorry this is confusing.
exec logger -t logger

4
logger/service/logger/run Executable file
View File

@ -0,0 +1,4 @@
#! /bin/sh
exec 2>&1
exec tcpsvd 0 4104 /opt/logger/bin/logger

20
logger/src/COPYING Normal file
View File

@ -0,0 +1,20 @@
Base64 code was taken from
http://cvs.savannah.gnu.org/viewvc/*checkout*/gnulib/gnulib/lib/base64.c?revision=HEAD
/* base64.c -- Encode binary data using printable characters.
Copyright (C) 1999, 2000, 2001, 2004, 2005, 2006 Free Software
Foundation, Inc.
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, or (at your option)
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 Street, Fifth Floor, Boston, MA 02110-1301, USA. */

5
logger/src/Makefile Normal file
View File

@ -0,0 +1,5 @@
all: logger
logger: logger.o token.o
clean:
rm -f *.o logger

View File

@ -2,14 +2,151 @@
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include "obj.h"
#include <stdint.h>
#include <string.h>
#include "token.h"
#define NO_DEBUG
#define PID_MAX 32768
#define QSIZE 200
#define MSGS_PER_SEC 10
char const *token1 = "logger:token1";
const uint8_t key[] = {0x99, 0xeb, 0xc0, 0xce,
0xe0, 0xc9, 0xed, 0x5b,
0xbd, 0xc8, 0xb5, 0xfd,
0xdd, 0x0b, 0x03, 0x10};
/* Storage space for tokens */
char token[4][TOKEN_MAX];
void
read_tokens()
{
int i;
ssize_t len;
char name[40];
for (i = 0; i < sizeof(token)/sizeof(*token); i += 1) {
/* This can't grow beyond 40. Think about it. */
sprintf(name, "logger%d", i);
len = read_token(name, key, sizeof(key), token[i], sizeof(token[i]));
if (len >= sizeof(token[i])) abort();
token[i][len] = '\0';
}
}
/*
* Base 64 (GPL: see COPYING)
*/
/* C89 compliant way to cast 'char' to 'unsigned char'. */
static inline unsigned char
to_uchar (char ch)
{
return ch;
}
/* Base64 encode IN array of size INLEN into OUT array of size OUTLEN.
If OUTLEN is less than BASE64_LENGTH(INLEN), write as many bytes as
possible. If OUTLEN is larger than BASE64_LENGTH(INLEN), also zero
terminate the output buffer. */
void
base64_encode (const char *in, size_t inlen,
char *out, size_t outlen)
{
static const char b64str[64] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
while (inlen && outlen) {
*out++ = b64str[(to_uchar(in[0]) >> 2) & 0x3f];
if (!--outlen)
break;
*out++ = b64str[((to_uchar(in[0]) << 4)
+ (--inlen ? to_uchar(in[1]) >> 4 : 0))
& 0x3f];
if (!--outlen)
break;
*out++ = (inlen
? b64str[((to_uchar(in[1]) << 2)
+ (--inlen ? to_uchar(in[2]) >> 6 : 0))
& 0x3f]
: '=');
if (!--outlen)
break;
*out++ = inlen ? b64str[to_uchar(in[2]) & 0x3f] : '=';
if (!--outlen)
break;
if (inlen)
inlen--;
if (inlen)
in += 3;
}
if (outlen)
*out = '\0';
}
/*
* Bubble Babble
*/
char const consonants[] = "bcdfghklmnprstvz";
char const vowels[] = "aeiouy";
#define bubblebabble_len(n) (6*(((n)/2)+1))
/** Compute bubble babble for input buffer.
*
* The generated output will be of length 6*((inlen/2)+1), including the
* trailing NULL.
*
* Test vectors:
* `' (empty string) `xexax'
* `1234567890' `xesef-disof-gytuf-katof-movif-baxux'
* `Pineapple' `xigak-nyryk-humil-bosek-sonax'
*/
void
bubblebabble(unsigned char *out,
unsigned char const *in,
const size_t inlen)
{
size_t pos = 0;
int seed = 1;
size_t i = 0;
out[pos++] = 'x';
while (1) {
unsigned char c;
if (i == inlen) {
out[pos++] = vowels[seed % 6];
out[pos++] = 'x';
out[pos++] = vowels[seed / 6];
break;
}
c = in[i++];
out[pos++] = vowels[(((c >> 6) & 3) + seed) % 6];
out[pos++] = consonants[(c >> 2) & 15];
out[pos++] = vowels[((c & 3) + (seed / 6)) % 6];
if (i == inlen) {
break;
}
seed = ((seed * 5) + (c * 7) + in[i]) % 36;
c = in[i++];
out[pos++] = consonants[(c >> 4) & 15];
out[pos++] = '-';
out[pos++] = consonants[c & 15];
}
out[pos++] = 'x';
out[pos] = '\0';
}
int
randint(int max)
@ -17,6 +154,27 @@ randint(int max)
return random() % max;
}
#define itokenlen 5
char const *
bogus_token()
{
static char token[TOKEN_MAX];
char bb[bubblebabble_len(5)];
unsigned char crap[itokenlen];
unsigned char digest[bubblebabble_len(itokenlen)];
int i;
for (i = 0; i < sizeof(crap); i += 1 ) {
crap[i] = (unsigned char)randint(256);
}
bubblebabble(digest, (unsigned char *)&crap, itokenlen);
snprintf(token, sizeof(token), "bogus:%s", digest);
token[sizeof(token) - 1] = '\0';
return token;
}
#define choice(a) (a[randint(sizeof(a)/sizeof(*a))])
char const *users[] = {"alice", "bob", "carol", "dave",
@ -25,6 +183,7 @@ char const *users[] = {"alice", "bob", "carol", "dave",
"oscar", "pat", "steve",
"trent", "vanna", "walter", "zoe"};
char const *
user()
{
@ -203,11 +362,7 @@ main(int argc, char *argv[])
/* Now let's make some crap! */
while (! feof(stdout)) {
struct message *msg;
#ifdef DEBUG
time_t now = then + 1;
#else
time_t now = time(NULL);
#endif
int i, max;
/* Print messages */
@ -217,7 +372,7 @@ main(int argc, char *argv[])
tm = gmtime(&msg->when);
if (! tm) {
snprintf(ftime, sizeof(ftime), "%l", now);
snprintf(ftime, sizeof(ftime), "%ld", now);
} else {
strftime(ftime, sizeof(ftime), "%b %d %T", tm);
}
@ -226,14 +381,10 @@ main(int argc, char *argv[])
fflush(stdout);
/* Time for new tokens? */
#ifdef DEBUG
then = now;
#else
if (then + 60 <= now) {
/* XXX: read in new tokens */
read_tokens();
then = now;
}
#endif
/* Make some messages */
max = randint(MSGS_PER_SEC);
@ -272,7 +423,7 @@ main(int argc, char *argv[])
messages[0]->when = start;
snprintf(messages[0]->text, sizeof(messages[0]->text),
"tokenserv[%d]: token is %s",
pid, token1);
pid, token[0]);
enqueue_messages(messages, 1);
}
/* Always follow this with a couple lines of fluff so it's
@ -281,20 +432,36 @@ main(int argc, char *argv[])
break;
case 2:
/* IMAP */
{
char const *mytoken;
char const *u;
char btoken[TOKEN_MAX * 2];
if (randint(5) == 0) {
mytoken = token[1];
u = "token";
} else {
mytoken = bogus_token();
u = user();
}
base64_encode(mytoken, strlen(mytoken), btoken, sizeof(btoken));
if (-1 != get_many_messages(messages, 2)) {
char const *u = user();
const int offset=15;
messages[0]->when = start;
snprintf(messages[0]->text, sizeof(messages[0]->text),
"imapd[%d]: Login: user=%s method=PLAIN",
pid, u);
"imapd[%d]: Login: user=%s method=PLAIN token1=%.*s",
pid, u, offset, btoken);
messages[1]->when = start + 2 + randint(60);
messages[1]->when = start + 4 + randint(60);
snprintf(messages[1]->text, sizeof(messages[1]->text),
"imapd[%d]: Disconnected: Logged out");
"imapd[%d]: Disconnected: Logged out token2=%s",
pid, btoken + offset);
enqueue_messages(messages, 2);
}
}
case 3:
/* IRC */
if (-1 != get_many_messages(messages, 3)) {
@ -364,7 +531,7 @@ main(int argc, char *argv[])
messages[1]->when = messages[0]->when + randint(1);
snprintf(messages[1]->text, sizeof(messages[1]->text),
"smtp/smtpd[%d]: %08X: client=unknown[%d.%d.%d.%d]",
"smtp/smtpd[%d]: %08lX: client=unknown[%d.%d.%d.%d]",
pid, mid, o1, o2, o3, o4);
messages[2]->when = messages[1]->when + 2 + randint(3);
@ -375,29 +542,29 @@ main(int argc, char *argv[])
pid = (pid + 1 + randint(5)) % PID_MAX;
messages[3]->when = messages[1]->when + 1 + randint(2);
snprintf(messages[3]->text, sizeof(messages[3]->text),
"smtp/cleanup[%d]: %08X: message-id=<%08x@junkmail.spam>",
"smtp/cleanup[%d]: %08lX: message-id=<%08lx@junkmail.spam>",
pid, mid, mid2);
pid = (pid + 1 + randint(5)) % PID_MAX;
messages[4]->when = messages[3]->when + randint(1);
snprintf(messages[4]->text, sizeof(messages[4]->text),
"smtp/qmgr[%d]: %08X: from=<%s@junkmail.spam>, size=%d, nrcpt=1 (queue active)",
"smtp/qmgr[%d]: %08lX: from=<%s@junkmail.spam>, size=%d, nrcpt=1 (queue active)",
pid, mid, user(), randint(6000));
messages[5]->when = messages[4]->when + 2 + randint(2);
snprintf(messages[5]->text, sizeof(messages[5]->text),
"smtp/qmgr[%d]: %08X: removed",
"smtp/qmgr[%d]: %08lX: removed",
pid, mid);
messages[6]->when = messages[4]->when + randint(1);
snprintf(messages[6]->text, sizeof(messages[6]->text),
"smtp/deliver(%s): msgid=<%08x@junkmail.spam>: saved to INBOX",
"smtp/deliver(%s): msgid=<%08lx@junkmail.spam>: saved to INBOX",
u, mid2);
pid = (pid + 1 + randint(5)) % PID_MAX;
messages[7]->when = messages[4]->when + randint(1);
snprintf(messages[7]->text, sizeof(messages[7]->text),
"smtp/local[%d]: %08X: to <%s@dirtbags.net>, relay=local, dsn=2.0.0, status=sent (delivered to command /usr/bin/deliver)",
"smtp/local[%d]: %08lX: to <%s@dirtbags.net>, relay=local, dsn=2.0.0, status=sent (delivered to command /usr/bin/deliver)",
pid, mid, u);
enqueue_messages(messages, 8);
@ -422,9 +589,7 @@ main(int argc, char *argv[])
}
}
#ifndef DEBUG
sleep(1);
#endif
}
return 0;

1
logger/src/token.c Symbolic link
View File

@ -0,0 +1 @@
../../common/token.c

1
logger/src/token.h Symbolic link
View File

@ -0,0 +1 @@
../../common/token.h

View File

@ -0,0 +1 @@
logger

View File

@ -0,0 +1 @@
S゙*郢シ緩ミ7<EFBE90>k<13>

View File

@ -0,0 +1 @@
™כְ־אֹם[½ָµ<C2B5> 

View File

@ -0,0 +1 @@
logger

View File

@ -0,0 +1 @@
S゙*郢シ緩ミ7<EFBE90>k<13>

View File

@ -0,0 +1 @@
™כְ־אֹם[½ָµ<C2B5> 

View File

@ -0,0 +1 @@
logger

View File

@ -0,0 +1 @@
S゙*郢シ緩ミ7<EFBE90>k<13>

View File

@ -0,0 +1 @@
™כְ־אֹם[½ָµ<C2B5> 

View File

@ -0,0 +1 @@
logger

View File

@ -0,0 +1 @@
S゙*郢シ緩ミ7<EFBE90>k<13>

View File

@ -0,0 +1 @@
™כְ־אֹם[½ָµ<C2B5> 

1
mcp/tokend.keys/logger Normal file
View File

@ -0,0 +1 @@
S゙*郢シ緩ミ7<EFBE90>k<13>

View File

@ -24,10 +24,8 @@ uint8_t const key[] = {0x98, 0x37, 0x92, 0x7d,
0xca, 0x97, 0xf8, 0xa5,
0xfe, 0x0f, 0xf6, 0xfc};
#define NTOKENS 5
/* Storage space for tokens */
char token[NTOKENS][TOKEN_MAX];
char token[5][TOKEN_MAX];
/* Make this global so the stack isn't gigantic */
char global_fmt[8000] = {0};
@ -43,11 +41,10 @@ read_tokens()
int i;
ssize_t len;
for (i = 0; i < NTOKENS; i += 1) {
for (i = 0; i < sizeof(token)/sizeof(*token); i += 1) {
len = read_token_fd(i + 3, key, sizeof(key), token[i], sizeof(token[i]));
if (len >= sizeof(token[i])) abort();
token[i][len] = '\0';
printf("Token %d: %s\n", i, token[i]);
}
}

BIN
puzzles/steg/1/,index.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1 @@
<img src=",index.gif">

1
puzzles/steg/1/key Normal file
View File

@ -0,0 +1 @@
Impact font LOL

252
puzzles/steg/10/index.exe Executable file
View File

@ -0,0 +1,252 @@
#! /bin/sh -e
key='We the People'
img=http://www.myconfinedspace.com/wp-content/uploads/2006/11/bill-stickers.jpg
wget -O src.jpg $img
jpegtopnm src.jpg > src.pbm
dim=$(awk '(i++ == 1) { print; }' src.pbm)
npixels=$(awk '(i++ == 1) { print $1 * $2; }' src.pbm)
alpha=alpha.pgm
echo "P5" > $alpha
echo $dim >> $alpha
echo "255" >> $alpha
zip - - <<EOF > alpha.zip
We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.
Article. I.
Section. 1.
All legislative Powers herein granted shall be vested in a Congress of the United States, which shall consist of a Senate and House of Representatives.
Section. 2.
The House of Representatives shall be composed of Members chosen every second Year by the People of the several States, and the Electors in each State shall have the Qualifications requisite for Electors of the most numerous Branch of the State Legislature.
No Person shall be a Representative who shall not have attained to the Age of twenty five Years, and been seven Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State in which he shall be chosen.
Representatives and direct Taxes shall be apportioned among the several States which may be included within this Union, according to their respective Numbers, which shall be determined by adding to the whole Number of free Persons, including those bound to Service for a Term of Years, and excluding Indians not taxed, three fifths of all other Persons. The actual Enumeration shall be made within three Years after the first Meeting of the Congress of the United States, and within every subsequent Term of ten Years, in such Manner as they shall by Law direct. The Number of Representatives shall not exceed one for every thirty Thousand, but each State shall have at Least one Representative; and until such enumeration shall be made, the State of New Hampshire shall be entitled to chuse three, Massachusetts eight, Rhode-Island and Providence Plantations one, Connecticut five, New-York six, New Jersey four, Pennsylvania eight, Delaware one, Maryland six, Virginia ten, North Carolina five, South Carolina five, and Georgia three.
When vacancies happen in the Representation from any State, the Executive Authority thereof shall issue Writs of Election to fill such Vacancies.
The House of Representatives shall chuse their Speaker and other Officers; and shall have the sole Power of Impeachment.
Section. 3.
The Senate of the United States shall be composed of two Senators from each State, chosen by the Legislature thereof for six Years; and each Senator shall have one Vote.
Immediately after they shall be assembled in Consequence of the first Election, they shall be divided as equally as may be into three Classes. The Seats of the Senators of the first Class shall be vacated at the Expiration of the second Year, of the second Class at the Expiration of the fourth Year, and of the third Class at the Expiration of the sixth Year, so that one third may be chosen every second Year; and if Vacancies happen by Resignation, or otherwise, during the Recess of the Legislature of any State, the Executive thereof may make temporary Appointments until the next Meeting of the Legislature, which shall then fill such Vacancies.
No Person shall be a Senator who shall not have attained to the Age of thirty Years, and been nine Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State for which he shall be chosen.
The Vice President of the United States shall be President of the Senate, but shall have no Vote, unless they be equally divided.
The Senate shall chuse their other Officers, and also a President pro tempore, in the Absence of the Vice President, or when he shall exercise the Office of President of the United States.
The Senate shall have the sole Power to try all Impeachments. When sitting for that Purpose, they shall be on Oath or Affirmation. When the President of the United States is tried, the Chief Justice shall preside: And no Person shall be convicted without the Concurrence of two thirds of the Members present.
Judgment in Cases of Impeachment shall not extend further than to removal from Office, and disqualification to hold and enjoy any Office of honor, Trust or Profit under the United States: but the Party convicted shall nevertheless be liable and subject to Indictment, Trial, Judgment and Punishment, according to Law.
Section. 4.
The Times, Places and Manner of holding Elections for Senators and Representatives, shall be prescribed in each State by the Legislature thereof; but the Congress may at any time by Law make or alter such Regulations, except as to the Places of chusing Senators.
The Congress shall assemble at least once in every Year, and such Meeting shall be on the first Monday in December, unless they shall by Law appoint a different Day.
Section. 5.
Each House shall be the Judge of the Elections, Returns and Qualifications of its own Members, and a Majority of each shall constitute a Quorum to do Business; but a smaller Number may adjourn from day to day, and may be authorized to compel the Attendance of absent Members, in such Manner, and under such Penalties as each House may provide.
Each House may determine the Rules of its Proceedings, punish its Members for disorderly Behaviour, and, with the Concurrence of two thirds, expel a Member.
Each House shall keep a Journal of its Proceedings, and from time to time publish the same, excepting such Parts as may in their Judgment require Secrecy; and the Yeas and Nays of the Members of either House on any question shall, at the Desire of one fifth of those Present, be entered on the Journal.
Neither House, during the Session of Congress, shall, without the Consent of the other, adjourn for more than three days, nor to any other Place than that in which the two Houses shall be sitting.
Section. 6.
The Senators and Representatives shall receive a Compensation for their Services, to be ascertained by Law, and paid out of the Treasury of the United States. They shall in all Cases, except Treason, Felony and Breach of the Peace, be privileged from Arrest during their Attendance at the Session of their respective Houses, and in going to and returning from the same; and for any Speech or Debate in either House, they shall not be questioned in any other Place.
No Senator or Representative shall, during the Time for which he was elected, be appointed to any civil Office under the Authority of the United States, which shall have been created, or the Emoluments whereof shall have been encreased during such time; and no Person holding any Office under the United States, shall be a Member of either House during his Continuance in Office.
Section. 7.
All Bills for raising Revenue shall originate in the House of Representatives; but the Senate may propose or concur with Amendments as on other Bills.
Every Bill which shall have passed the House of Representatives and the Senate, shall, before it become a Law, be presented to the President of the United States: If he approve he shall sign it, but if not he shall return it, with his Objections to that House in which it shall have originated, who shall enter the Objections at large on their Journal, and proceed to reconsider it. If after such Reconsideration two thirds of that House shall agree to pass the Bill, it shall be sent, together with the Objections, to the other House, by which it shall likewise be reconsidered, and if approved by two thirds of that House, it shall become a Law. But in all such Cases the Votes of both Houses shall be determined by yeas and Nays, and the Names of the Persons voting for and against the Bill shall be entered on the Journal of each House respectively. If any Bill shall not be returned by the President within ten Days (Sundays excepted) after it shall have been presented to him, the Same shall be a Law, in like Manner as if he had signed it, unless the Congress by their Adjournment prevent its Return, in which Case it shall not be a Law.
Every Order, Resolution, or Vote to which the Concurrence of the Senate and House of Representatives may be necessary (except on a question of Adjournment) shall be presented to the President of the United States; and before the Same shall take Effect, shall be approved by him, or being disapproved by him, shall be repassed by two thirds of the Senate and House of Representatives, according to the Rules and Limitations prescribed in the Case of a Bill.
Section. 8.
The Congress shall have Power To lay and collect Taxes, Duties, Imposts and Excises, to pay the Debts and provide for the common Defence and general Welfare of the United States; but all Duties, Imposts and Excises shall be uniform throughout the United States;
To borrow Money on the credit of the United States;
To regulate Commerce with foreign Nations, and among the several States, and with the Indian Tribes;
To establish an uniform Rule of Naturalization, and uniform Laws on the subject of Bankruptcies throughout the United States;
To coin Money, regulate the Value thereof, and of foreign Coin, and fix the Standard of Weights and Measures;
To provide for the Punishment of counterfeiting the Securities and current Coin of the United States;
To establish Post Offices and post Roads;
To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries;
To constitute Tribunals inferior to the supreme Court;
To define and punish Piracies and Felonies committed on the high Seas, and Offences against the Law of Nations;
To declare War, grant Letters of Marque and Reprisal, and make Rules concerning Captures on Land and Water;
To raise and support Armies, but no Appropriation of Money to that Use shall be for a longer Term than two Years;
To provide and maintain a Navy;
To make Rules for the Government and Regulation of the land and naval Forces;
To provide for calling forth the Militia to execute the Laws of the Union, suppress Insurrections and repel Invasions;
To provide for organizing, arming, and disciplining, the Militia, and for governing such Part of them as may be employed in the Service of the United States, reserving to the States respectively, the Appointment of the Officers, and the Authority of training the Militia according to the discipline prescribed by Congress;
To exercise exclusive Legislation in all Cases whatsoever, over such District (not exceeding ten Miles square) as may, by Cession of particular States, and the Acceptance of Congress, become the Seat of the Government of the United States, and to exercise like Authority over all Places purchased by the Consent of the Legislature of the State in which the Same shall be, for the Erection of Forts, Magazines, Arsenals, dock-Yards, and other needful Buildings;--And
To make all Laws which shall be necessary and proper for carrying into Execution the foregoing Powers, and all other Powers vested by this Constitution in the Government of the United States, or in any Department or Officer thereof.
Section. 9.
The Migration or Importation of such Persons as any of the States now existing shall think proper to admit, shall not be prohibited by the Congress prior to the Year one thousand eight hundred and eight, but a Tax or duty may be imposed on such Importation, not exceeding ten dollars for each Person.
The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it.
No Bill of Attainder or ex post facto Law shall be passed.
No Capitation, or other direct, Tax shall be laid, unless in Proportion to the Census or enumeration herein before directed to be taken.
No Tax or Duty shall be laid on Articles exported from any State.
No Preference shall be given by any Regulation of Commerce or Revenue to the Ports of one State over those of another; nor shall Vessels bound to, or from, one State, be obliged to enter, clear, or pay Duties in another.
No Money shall be drawn from the Treasury, but in Consequence of Appropriations made by Law; and a regular Statement and Account of the Receipts and Expenditures of all public Money shall be published from time to time.
No Title of Nobility shall be granted by the United States: And no Person holding any Office of Profit or Trust under them, shall, without the Consent of the Congress, accept of any present, Emolument, Office, or Title, of any kind whatever, from any King, Prince, or foreign State.
Section. 10.
No State shall enter into any Treaty, Alliance, or Confederation; grant Letters of Marque and Reprisal; coin Money; emit Bills of Credit; make any Thing but gold and silver Coin a Tender in Payment of Debts; pass any Bill of Attainder, ex post facto Law, or Law impairing the Obligation of Contracts, or grant any Title of Nobility.
No State shall, without the Consent of the Congress, lay any Imposts or Duties on Imports or Exports, except what may be absolutely necessary for executing it's inspection Laws: and the net Produce of all Duties and Imposts, laid by any State on Imports or Exports, shall be for the Use of the Treasury of the United States; and all such Laws shall be subject to the Revision and Controul of the Congress.
No State shall, without the Consent of Congress, lay any Duty of Tonnage, keep Troops, or Ships of War in time of Peace, enter into any Agreement or Compact with another State, or with a foreign Power, or engage in War, unless actually invaded, or in such imminent Danger as will not admit of delay.
Article. II.
Section. 1.
The executive Power shall be vested in a President of the United States of America. He shall hold his Office during the Term of four Years, and, together with the Vice President, chosen for the same Term, be elected, as follows:
Each State shall appoint, in such Manner as the Legislature thereof may direct, a Number of Electors, equal to the whole Number of Senators and Representatives to which the State may be entitled in the Congress: but no Senator or Representative, or Person holding an Office of Trust or Profit under the United States, shall be appointed an Elector.
The Electors shall meet in their respective States, and vote by Ballot for two Persons, of whom one at least shall not be an Inhabitant of the same State with themselves. And they shall make a List of all the Persons voted for, and of the Number of Votes for each; which List they shall sign and certify, and transmit sealed to the Seat of the Government of the United States, directed to the President of the Senate. The President of the Senate shall, in the Presence of the Senate and House of Representatives, open all the Certificates, and the Votes shall then be counted. The Person having the greatest Number of Votes shall be the President, if such Number be a Majority of the whole Number of Electors appointed; and if there be more than one who have such Majority, and have an equal Number of Votes, then the House of Representatives shall immediately chuse by Ballot one of them for President; and if no Person have a Majority, then from the five highest on the List the said House shall in like Manner chuse the President. But in chusing the President, the Votes shall be taken by States, the Representation from each State having one Vote; A quorum for this purpose shall consist of a Member or Members from two thirds of the States, and a Majority of all the States shall be necessary to a Choice. In every Case, after the Choice of the President, the Person having the greatest Number of Votes of the Electors shall be the Vice President. But if there should remain two or more who have equal Votes, the Senate shall chuse from them by Ballot the Vice President.
The Congress may determine the Time of chusing the Electors, and the Day on which they shall give their Votes; which Day shall be the same throughout the United States.
No Person except a natural born Citizen, or a Citizen of the United States, at the time of the Adoption of this Constitution, shall be eligible to the Office of President; neither shall any Person be eligible to that Office who shall not have attained to the Age of thirty five Years, and been fourteen Years a Resident within the United States.
In Case of the Removal of the President from Office, or of his Death, Resignation, or Inability to discharge the Powers and Duties of the said Office, the Same shall devolve on the Vice President, and the Congress may by Law provide for the Case of Removal, Death, Resignation or Inability, both of the President and Vice President, declaring what Officer shall then act as President, and such Officer shall act accordingly, until the Disability be removed, or a President shall be elected.
The President shall, at stated Times, receive for his Services, a Compensation, which shall neither be increased nor diminished during the Period for which he shall have been elected, and he shall not receive within that Period any other Emolument from the United States, or any of them.
Before he enter on the Execution of his Office, he shall take the following Oath or Affirmation:--"I do solemnly swear (or affirm) that I will faithfully execute the Office of President of the United States, and will to the best of my Ability, preserve, protect and defend the Constitution of the United States."
Section. 2.
The President shall be Commander in Chief of the Army and Navy of the United States, and of the Militia of the several States, when called into the actual Service of the United States; he may require the Opinion, in writing, of the principal Officer in each of the executive Departments, upon any Subject relating to the Duties of their respective Offices, and he shall have Power to grant Reprieves and Pardons for Offences against the United States, except in Cases of Impeachment.
He shall have Power, by and with the Advice and Consent of the Senate, to make Treaties, provided two thirds of the Senators present concur; and he shall nominate, and by and with the Advice and Consent of the Senate, shall appoint Ambassadors, other public Ministers and Consuls, Judges of the supreme Court, and all other Officers of the United States, whose Appointments are not herein otherwise provided for, and which shall be established by Law: but the Congress may by Law vest the Appointment of such inferior Officers, as they think proper, in the President alone, in the Courts of Law, or in the Heads of Departments.
The President shall have Power to fill up all Vacancies that may happen during the Recess of the Senate, by granting Commissions which shall expire at the End of their next Session.
Section. 3.
He shall from time to time give to the Congress Information of the State of the Union, and recommend to their Consideration such Measures as he shall judge necessary and expedient; he may, on extraordinary Occasions, convene both Houses, or either of them, and in Case of Disagreement between them, with Respect to the Time of Adjournment, he may adjourn them to such Time as he shall think proper; he shall receive Ambassadors and other public Ministers; he shall take Care that the Laws be faithfully executed, and shall Commission all the Officers of the United States.
Section. 4.
The President, Vice President and all civil Officers of the United States, shall be removed from Office on Impeachment for, and Conviction of, Treason, Bribery, or other high Crimes and Misdemeanors.
Article III.
Section. 1.
The judicial Power of the United States shall be vested in one supreme Court, and in such inferior Courts as the Congress may from time to time ordain and establish. The Judges, both of the supreme and inferior Courts, shall hold their Offices during good Behaviour, and shall, at stated Times, receive for their Services a Compensation, which shall not be diminished during their Continuance in Office.
Section. 2.
The judicial Power shall extend to all Cases, in Law and Equity, arising under this Constitution, the Laws of the United States, and Treaties made, or which shall be made, under their Authority;--to all Cases affecting Ambassadors, other public Ministers and Consuls;--to all Cases of admiralty and maritime Jurisdiction;--to Controversies to which the United States shall be a Party;--to Controversies between two or more States;-- between a State and Citizens of another State,--between Citizens of different States,--between Citizens of the same State claiming Lands under Grants of different States, and between a State, or the Citizens thereof, and foreign States, Citizens or Subjects.
In all Cases affecting Ambassadors, other public Ministers and Consuls, and those in which a State shall be Party, the supreme Court shall have original Jurisdiction. In all the other Cases before mentioned, the supreme Court shall have appellate Jurisdiction, both as to Law and Fact, with such Exceptions, and under such Regulations as the Congress shall make.
The Trial of all Crimes, except in Cases of Impeachment, shall be by Jury; and such Trial shall be held in the State where the said Crimes shall have been committed; but when not committed within any State, the Trial shall be at such Place or Places as the Congress may by Law have directed.
Section. 3.
Treason against the United States, shall consist only in levying War against them, or in adhering to their Enemies, giving them Aid and Comfort. No Person shall be convicted of Treason unless on the Testimony of two Witnesses to the same overt Act, or on Confession in open Court.
The Congress shall have Power to declare the Punishment of Treason, but no Attainder of Treason shall work Corruption of Blood, or Forfeiture except during the Life of the Person attainted.
Article. IV.
Section. 1.
Full Faith and Credit shall be given in each State to the public Acts, Records, and judicial Proceedings of every other State. And the Congress may by general Laws prescribe the Manner in which such Acts, Records and Proceedings shall be proved, and the Effect thereof.
Section. 2.
The Citizens of each State shall be entitled to all Privileges and Immunities of Citizens in the several States.
A Person charged in any State with Treason, Felony, or other Crime, who shall flee from Justice, and be found in another State, shall on Demand of the executive Authority of the State from which he fled, be delivered up, to be removed to the State having Jurisdiction of the Crime.
No Person held to Service or Labour in one State, under the Laws thereof, escaping into another, shall, in Consequence of any Law or Regulation therein, be discharged from such Service or Labour, but shall be delivered up on Claim of the Party to whom such Service or Labour may be due.
Section. 3.
New States may be admitted by the Congress into this Union; but no new State shall be formed or erected within the Jurisdiction of any other State; nor any State be formed by the Junction of two or more States, or Parts of States, without the Consent of the Legislatures of the States concerned as well as of the Congress.
The Congress shall have Power to dispose of and make all needful Rules and Regulations respecting the Territory or other Property belonging to the United States; and nothing in this Constitution shall be so construed as to Prejudice any Claims of the United States, or of any particular State.
Section. 4.
The United States shall guarantee to every State in this Union a Republican Form of Government, and shall protect each of them against Invasion; and on Application of the Legislature, or of the Executive (when the Legislature cannot be convened), against domestic Violence.
Article. V.
The Congress, whenever two thirds of both Houses shall deem it necessary, shall propose Amendments to this Constitution, or, on the Application of the Legislatures of two thirds of the several States, shall call a Convention for proposing Amendments, which, in either Case, shall be valid to all Intents and Purposes, as Part of this Constitution, when ratified by the Legislatures of three fourths of the several States, or by Conventions in three fourths thereof, as the one or the other Mode of Ratification may be proposed by the Congress; Provided that no Amendment which may be made prior to the Year One thousand eight hundred and eight shall in any Manner affect the first and fourth Clauses in the Ninth Section of the first Article; and that no State, without its Consent, shall be deprived of its equal Suffrage in the Senate.
Article. VI.
All Debts contracted and Engagements entered into, before the Adoption of this Constitution, shall be as valid against the United States under this Constitution, as under the Confederation.
This Constitution, and the Laws of the United States which shall be made in Pursuance thereof; and all Treaties made, or which shall be made, under the Authority of the United States, shall be the supreme Law of the Land; and the Judges in every State shall be bound thereby, any Thing in the Constitution or Laws of any State to the Contrary notwithstanding.
The Senators and Representatives before mentioned, and the Members of the several State Legislatures, and all executive and judicial Officers, both of the United States and of the several States, shall be bound by Oath or Affirmation, to support this Constitution; but no religious Test shall ever be required as a Qualification to any Office or public Trust under the United States.
The key is "$key".
EOF
cat alpha.zip >> $alpha
zipsize=$(du -b alpha.zip | awk '{print $1;}')
echo $npixels $zipsize
pad=$(expr $npixels - $zipsize)
dd if=/dev/urandom bs=1 count=$pad >> $alpha
pnmtopng -alpha alpha.pgm src.pbm > file.png
md5=$(md5sum file.png | awk '{print $1;}')
mv file.png $md5
rm src.* alpha.*

146
puzzles/steg/100/image.cmds Normal file
View File

@ -0,0 +1,146 @@
set Exif.Image.Make Ascii "Canon"
set Exif.Image.Model Ascii "Canon PowerShot S2 IS"
set Exif.Image.Orientation Short "1"
set Exif.Image.XResolution Rational "180/1"
set Exif.Image.YResolution Rational "180/1"
set Exif.Image.ResolutionUnit Short "2"
set Exif.Image.DateTime Ascii "2009:04:23 10:10:34"
set Exif.Image.YCbCrPositioning Short "1"
set Exif.Image.ExifTag Long "186"
set Exif.Photo.ExposureTime Rational "1/60"
set Exif.Photo.FNumber Rational "40/10"
set Exif.Photo.ExifVersion Undefined "48 50 50 48"
set Exif.Photo.DateTimeOriginal Ascii "2009:04:23 10:10:34"
set Exif.Photo.DateTimeDigitized Ascii "2009:04:23 10:10:34"
set Exif.Photo.ComponentsConfiguration Undefined "1 2 3 0"
set Exif.Photo.CompressedBitsPerPixel Rational "3/1"
set Exif.Photo.ShutterSpeedValue SRational "189/32"
set Exif.Photo.ApertureValue Rational "128/32"
set Exif.Photo.ExposureBiasValue SRational "0/3"
set Exif.Photo.MaxApertureValue Rational "92/32"
set Exif.Photo.MeteringMode Short "5"
set Exif.Photo.Flash Short "16"
set Exif.Photo.FocalLength Rational "6000/1000"
set Exif.Photo.FlashpixVersion Undefined "48 49 48 48"
set Exif.Photo.ColorSpace Short "1"
set Exif.Photo.PixelXDimension Short "2592"
set Exif.Photo.PixelYDimension Short "1944"
set Exif.Photo.InteroperabilityTag Long "2148"
set Exif.Photo.FocalPlaneXResolution Rational "2592000/225"
set Exif.Photo.FocalPlaneYResolution Rational "1944000/168"
set Exif.Photo.FocalPlaneResolutionUnit Short "2"
set Exif.Photo.SensingMethod Short "2"
set Exif.Photo.FileSource Undefined "3"
set Exif.Photo.CustomRendered Short "0"
set Exif.Photo.ExposureMode Short "0"
set Exif.Photo.WhiteBalance Short "0"
set Exif.Photo.DigitalZoomRatio Rational "2592/2592"
set Exif.Photo.SceneCaptureType Short "0"
set Exif.Canon.0x0002 Short "2 600 230 172"
set Exif.Canon.0x0003 Short "0 0 0 0"
set Exif.Canon.0x0000 Short "0 0 0 0 0 0"
set Exif.Canon.0x0000 Short "18 0 0 1 0 0 0 0 0"
set Exif.Canon.0x0013 Short "0 0 0 0"
set Exif.Canon.ImageType Ascii "IMG:PowerShot S2 IS JPEG"
set Exif.Canon.FirmwareVersion Ascii "Firmware Version 1.00"
set Exif.Canon.ImageNumber Long "1353582"
set Exif.Canon.OwnerName Ascii ""
set Exif.Canon.ModelID Long "23330816"
set Exif.Canon.0x000d Long "0 1 0 598 37 0 4294967278 37 0 0 6 10 556 575 384 4294967284 4294967293 597 364 0 0 0 0 0 0 0 0 0 77 92 236 160 255 20 247 69 251 56 54 82 244 0 0 1042 1302 82 244 4294967287 938 1602 1727 938 1 867 283 598 556 0 4294967293 0 0 0 0 0 0 2988 1 0 0 0 0 2 1 3136 3320 0 0 0 0 0 0 1 3300 20 5"
set Exif.Canon.0x0018 Byte "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
set Exif.Canon.0x0019 Short "1"
set Exif.Canon.0x001a Short "0"
set Exif.Canon.0x001c Short "0"
set Exif.Canon.0x001d Short "32 1 0 2 2 2 2 0 0 0 0 0 0 0 0 0"
set Exif.Canon.0x001e Long "16779008"
set Exif.CanonCs.Macro Short "1"
set Exif.CanonCs.Selftimer Short "0"
set Exif.CanonCs.Quality Short "3"
set Exif.CanonCs.FlashMode Short "0"
set Exif.CanonCs.DriveMode Short "0"
set Exif.CanonCs.0x0006 Short "0"
set Exif.CanonCs.FocusMode Short "4"
set Exif.CanonCs.0x0008 Short "65535"
set Exif.CanonCs.0x0009 Short "1"
set Exif.CanonCs.ImageSize Short "0"
set Exif.CanonCs.EasyMode Short "0"
set Exif.CanonCs.DigitalZoom Short "0"
set Exif.CanonCs.Contrast Short "0"
set Exif.CanonCs.Saturation Short "0"
set Exif.CanonCs.Sharpness Short "0"
set Exif.CanonCs.ISOSpeed Short "15"
set Exif.CanonCs.MeteringMode Short "3"
set Exif.CanonCs.FocusType Short "3"
set Exif.CanonCs.AFPoint Short "8197"
set Exif.CanonCs.ExposureProgram Short "0"
set Exif.CanonCs.0x0015 Short "32767"
set Exif.CanonCs.0x0016 Short "65535"
set Exif.CanonCs.Lens Short "7200 600 100"
set Exif.CanonCs.0x001a Short "92"
set Exif.CanonCs.0x001b Short "192"
set Exif.CanonCs.FlashActivity Short "65535"
set Exif.CanonCs.FlashDetails Short "0"
set Exif.CanonCs.0x001e Short "0"
set Exif.CanonCs.0x001f Short "0"
set Exif.CanonCs.FocusContinuous Short "0"
set Exif.CanonCs.AESetting Short "0"
set Exif.CanonCs.ImageStabilization Short "1"
set Exif.CanonCs.DisplayAperture Short "0"
set Exif.CanonCs.ZoomSourceWidth Short "2592"
set Exif.CanonCs.ZoomTargetWidth Short "2592"
set Exif.CanonCs.0x0026 Short "0"
set Exif.CanonCs.0x0027 Short "0"
set Exif.CanonCs.PhotoEffect Short "0"
set Exif.CanonCs.0x0029 Short "0"
set Exif.CanonCs.ColorTone Short "32767"
set Exif.CanonCs.0x002b Short "32767"
set Exif.CanonCs.0x002c Short "0"
set Exif.CanonCs.0x002d Short "0"
set Exif.CanonSi.0x0001 Short "0"
set Exif.CanonSi.ISOSpeed Short "128"
set Exif.CanonSi.0x0003 Short "199"
set Exif.CanonSi.TargetAperture Short "128"
set Exif.CanonSi.TargetShutterSpeed Short "189"
set Exif.CanonSi.0x0006 Short "0"
set Exif.CanonSi.WhiteBalance Short "0"
set Exif.CanonSi.0x0008 Short "0"
set Exif.CanonSi.Sequence Short "0"
set Exif.CanonSi.0x000a Short "0"
set Exif.CanonSi.0x000b Short "0"
set Exif.CanonSi.0x000c Short "0"
set Exif.CanonSi.0x000d Short "0"
set Exif.CanonSi.AFPointUsed Short "0"
set Exif.CanonSi.FlashBias Short "0"
set Exif.CanonSi.0x0010 Short "0"
set Exif.CanonSi.0x0011 Short "0"
set Exif.CanonSi.0x0012 Short "1"
set Exif.CanonSi.SubjectDistance Short "17"
set Exif.CanonSi.0x0014 Short "0"
set Exif.CanonSi.ApertureValue Short "128"
set Exif.CanonSi.ShutterSpeedValue Short "192"
set Exif.CanonSi.0x0017 Short "0"
set Exif.CanonSi.0x0018 Short "0"
set Exif.CanonSi.0x0019 Short "12"
set Exif.CanonSi.0x001a Short "250"
set Exif.CanonSi.0x001b Short "0"
set Exif.CanonSi.0x001c Short "0"
set Exif.CanonSi.0x001d Short "0"
set Exif.CanonSi.0x001e Short "0"
set Exif.CanonSi.0x001f Short "0"
set Exif.CanonSi.0x0020 Short "0"
set Exif.CanonSi.0x0021 Short "0"
set Exif.CanonPi.0x0001 Short "1"
set Exif.CanonPi.ImageWidth Short "2592"
set Exif.CanonPi.ImageHeight Short "1944"
set Exif.CanonPi.ImageWidthAsShot Short "1296"
set Exif.CanonPi.ImageHeightAsShot Short "242"
set Exif.CanonPi.0x0006 Short "233"
set Exif.CanonPi.0x0007 Short "44"
set Exif.CanonPi.0x0008 Short "0"
set Exif.CanonPi.0x0009 Short "0"
set Exif.CanonPi.0x000a Short "0"
set Exif.CanonPi.0x000b Short "0"
set Exif.Iop.InteroperabilityIndex Ascii "R98"
set Exif.Iop.InteroperabilityVersion Undefined "48 49 48 48"
set Exif.Iop.RelatedImageWidth Short "2592"
set Exif.Iop.RelatedImageLength Short "1944"

BIN
puzzles/steg/100/image.exv Normal file

Binary file not shown.

80
puzzles/steg/100/index.exe Executable file
View File

@ -0,0 +1,80 @@
#! /usr/bin/python
## Fetch some public domain images, make a PNG of the key, and encode
## that in the Exif.Image.OriginalRawFileData tags of the images
import os
import glob
import random
import shutil
import md5
import sys
import zipfile
key = 'wilderness fishsticks'
srcdir = os.path.dirname(sys.argv[0])
exifblah = os.path.join(srcdir, 'image.cmds')
def system(cmd):
ret = os.system(cmd)
if ret:
raise OSError('return value %d: %s' % (ret, cmd))
# Download war posters
if not os.path.exists('ww0207-43.jpg'):
system('wget -r -D digital.library.northwestern.edu -A jpg -nd -l 2 "http://digital.library.northwestern.edu/otcgi/digilib/llscgi60.exe?mode=phrase&query=conserve&REGION=&SIZE=20&db=0"')
os.unlink('robots.txt')
# Store the key
open('key', 'w').write(key)
# Make a PNG of it
f = os.popen('pbmtext < key | pnmtopng -compression 0')
key_png = f.read()
# Duplicate two photos
jpegs = glob.glob('*.jpg')
random.shuffle(jpegs)
for fn in jpegs[:2]:
root, ext = os.path.splitext(fn)
nfn = '%s.dup%s' % (root, ext)
shutil.copy(fn, nfn)
jpegs.append(nfn)
random.shuffle(jpegs)
bytes_per_photo = len(key_png) / len(jpegs)
zipf = zipfile.ZipFile('archive.zip', 'w')
for i in range(len(jpegs)):
fn = jpegs[i]
cmd1 = 'set Exif.Canon.0x0019 %d' % i
offset = i * bytes_per_photo
if i == len(jpegs) - 1:
bytes = key_png[offset:]
else:
bytes = key_png[offset:offset + bytes_per_photo]
bytes_str = ' '.join(str(ord(c)) for c in bytes)
cmd2 = 'set Exif.Canon.0x0018 "%s"' % bytes_str
# First set some defaults
system('exiv2 -m %s %s' % (exifblah, fn))
# Now apply our devious stuff
system('exiv2 -M\'%s\' -M\'%s\' %s' % (cmd1, cmd2, fn))
# Read it in
contents = open(fn, 'rb').read()
# Find the new file's md5 checksum
checksum = md5.new(contents).hexdigest()
# Make a new zip file entry
zi = zipfile.ZipInfo(checksum + '.jpg')
zi.compress_type = zipfile.ZIP_DEFLATED
zi.external_attr = 0644 << 16L
zipf.writestr(zi, contents)
# We're done with this file
os.unlink(fn)

1
puzzles/steg/2/key Normal file
View File

@ -0,0 +1 @@
stinger-reimbursements-Matterhorn

BIN
puzzles/steg/2/test.docx Normal file

Binary file not shown.

49
puzzles/steg/20/index.exe Executable file
View File

@ -0,0 +1,49 @@
#! /bin/sh
key='Molotov Cocktails'
img=http://mfrost.typepad.com/cute_overload/images/2008/02/11/bunny.jpg
wget -O src.jpg $img
cat src.jpg - <<EOF >img.jpg
Molotov Cocktails
=================
There are many variations of the molotov cocktail. The classic is a
glass bottle filled with gasoline. An oily soaked rag is placed in the
neck of the bottle. The rag is lit on fire and the bottle is thrown at
the opposition. However, practice has created new models of the molotov
that defeat the classic version.
When making molotovs, it is never a good idea to use the oily rag
method. It can allow gas to seep from the bottle and many other bad
things. The best way is to take a tampon that is soaked in gas and place
it on the side of the bottle neck. Then, tie a rubber band around the
tampon. Make sure the bottle has a cap on it. Light the tampon and throw
hard. With this ignition method, the bottle must break!
When making a molotov mixture, one of the easiest mixtures is filling
half the bottle with gasoline, and the other half of the bottle with
motor oil. Mix well! The oil is very flammable and sticks very well to
the surface that it lands on.
Another mixture is to fill half the bottle with gasoline and the other
half with tar. This mixture burns very very hot and also sticks well to
surfaces while the gasoline does the work.
To make a firewall, simply fill bottles with rubbing alcohol and light
the mixture. These bottles should be lined up side by side to create a
large area of fire that police will not walk through.
By far the stickiest mixture is 50% gasoline, with 25% tar and 25%
grease. Shake well and throw hard!
The most high explosive and lethal mixture is amonium-nitrate-based
fertilizer mixed with gasoline. Just stuff the bottle with this mixture
and light the sucker. This method should be made with a plastic bottle
so that it will not break on impact. When you light it, the bottle will
quickly explode so be quick. Using a fuse is a good idea.
'$key' is the key.
EOF

121
puzzles/steg/200/index.exe Executable file
View File

@ -0,0 +1,121 @@
#! /usr/bin/python
import gzip
import cStringIO as StringIO
import md5
key = 'washy-eyed jeffy'
garbage = '''[Preamble] Edward by the grace of God King of England, lord of Ireland and duke of Aquitaine sends greetings to all to whom the present letters come. We have inspected the great charter of the lord Henry, late King of England, our father, concerning the liberties of England in these words:
Henry by the grace of God King of England, lord of Ireland, duke of Normandy and Aquitaine and count of Anjou sends greetings to his archbishops, bishops, abbots, priors, earls, barons, sheriffs, reeves, ministers and all his bailiffs and faithful men inspecting the present charter. Know that we, at the prompting of God and for the health of our soul and the souls of our ancestors and successors, for the glory of holy Church and the improvement of our realm, freely and out of our good will have given and granted to the archbishops, bishops, abbots, priors, earls, barons and all of our realm these liberties written below to hold in our realm of England in perpetuity.
[1] In the first place we grant to God and confirm by this our present charter for ourselves and our heirs in perpetuity that the English Church is to be free and to have all its rights fully and its liberties entirely. We furthermore grant and give to all the freemen of our realm for ourselves and our heirs in perpetuity the liberties written below to have and to hold to them and their heirs from us and our heirs in perpetuity.
[2] If any of our earls or barons, or anyone else holding from us in chief by military service should die, and should his heir be of full age and owe relief, the heir is to have his inheritance for the ancient relief, namely the heir or heirs of an earl for a whole county 100 pounds, the heir or heirs of a baron for a whole barony 100 marks, the heir or heirs of a knight for a whole knight's fee 100 shillings at most, and he who owes less will give less, according to the ancient custom of (knights') fees.
[3] If, however, the heir of such a person is under age, his lord is not to have custody of him and his land until he has taken homage from the heir, and after such an heir has been in custody, when he comes of age, namely at twenty-one years old, he is to have his inheritance without relief and without fine, saving that if, whilst under age, he is made a knight, his land will nonetheless remain in the custody of his lords until the aforesaid term.
[4] The keeper of the land of such an heir who is under age is only to take reasonable receipts from the heir's land and reasonable customs and reasonable services, and this without destruction or waste of men or things. And if we assign custody of any such land to a sheriff or to anyone else who should answer to us for the issues, and such a person should commit destruction or waste, we will take recompense from him and the land will be assigned to two law-worthy and discreet men of that fee who will answer to us or to the person to whom we assign such land for the land's issues. And if we give or sell to anyone custody of any such land and that person commits destruction or waste, he is to lose custody and the land is to be assigned to two law-worthy and discreet men of that fee who similarly will answer to us as is aforesaid.
[5] The keeper, for as long as he has the custody of the land of such (an heir), is to maintain the houses, parks, fishponds, ponds, mills and other things pertaining to that land from the issues of the same land, and he will restore to the heir, when the heir comes to full age, all his land stocked with ploughs and all other things in at least the same condition as when he received it. All these things are to be observed in the custodies of archbishoprics, bishoprics, abbeys, priories, churches and vacant offices which pertain to us, save that such custodies ought not to be sold.
[6] Heirs are to be married without disparagement.
[7] A widow, after the death of her husband, is immediately and without any difficulty to have her marriage portion and her inheritance, nor is she to pay anything for her dower or her marriage portion or for her inheritance which her husband and she held on the day of her husband's death, and she shall remain in the chief dwelling place of her husband for forty days after her husband's death, within which time dower will be assigned her if it has not already been assigned, unless that house is a castle, and if it is a castle which she leaves, then a suitable house will immediately be provided for her in which she may properly dwell until her dower is assigned to her in accordance with what is aforesaid, and in the meantime she is to have her reasonable necessities (estoverium) from the common property. As dower she will be assigned the third part of all the lands of her husband which were his during his lifetime, save when she was dowered with less at the church door. No widow shall be distrained to marry for so long as she wishes to live without a husband, provided that she gives surety that she will not marry without our assent if she holds of us, or without the assent of her lord, if she holds of another.
[8] Neither we nor our bailiffs will seize any land or rent for any debt, as long as the existing chattels of the debtor suffice for the payment of the debt and as long as the debtor is ready to pay the debt, nor will the debtor's guarantors be distrained for so long as the principal debtor is able to pay the debt; and should the principal debtor default in his payment of the debt, not having the means to repay it, or should he refuse to pay it despite being able to do so, the guarantors will answer for the debt and, if they wish, they are to have the lands and rents of the debtor until they are repaid the debt that previously they paid on behalf of the debtor, unless the principal debtor can show that he is quit in respect to these guarantors.
[9] The city of London is to have all its ancient liberties and customs. Moreover we wish and grant that all other cities and boroughs and vills and the barons of the Cinque Ports and all ports are to have all their liberties and free customs.
[10] No-one is to be distrained to do more service for a knight's fee or for any other free tenement than is due from it.
[11] Common pleas are not to follow our court but are to be held in a certain fixed place.
[12] Recognisances of novel disseisin and of mort d'ancestor are not to be taken save in their particular counties and in the following way. We or, should we be outside the realm, our chief justiciar, will send our justices once a year to each county, so that, together with the knights of the counties, that may take the aforesaid assizes in the counties; and those assizes which cannot be completed in that visitation of the county by our aforesaid justices assigned to take the said assizes are to be completed elsewhere by the justices in their visitation; and those which cannot be completed by them on account of the difficulty of various articles (of law) are to be referred to our justices of the Bench and completed there.
[13] Assizes of darrein presentment are always to be taken before our justices of the Bench and are to be completed there.
[14] A freeman is not to be amerced for a small offence save in accordance with the manner of the offence, and for a major offence according to its magnitude, saving his sufficiency (salvo contenemento suo), and a merchant likewise, saving his merchandise, and any villain other than one of our own is to be amerced in the same way, saving his necessity (salvo waynagio) should he fall into our mercy, and none of the aforesaid amercements is to be imposed save by the oath of honest and law-worthy men of the neighbourhood. Earls and barons are not to be amerced save by their peers and only in accordance with the manner of their offence.
[15] No town or free man is to be distrained to make bridges or bank works save for those that ought to do so of old and by right.
[16] No bank works of any sort are to be kept up save for those that were in defense in the time of King H(enry II) our grandfather and in the same places and on the same terms as was customary in his time.
[17] No sheriff, constable, coroner or any other of our bailiffs is to hold pleas of our crown.
[18] If anyone holding a lay fee from us should die, and our sheriff or bailiff shows our letters patent containing our summons for a debt that the dead man owed us, our sheriff or bailiff is permitted to attach and enroll all the goods and chattels of the dead man found in lay fee, to the value of the said debt, by view of law-worthy men, so that nothing is to be removed thence until the debt that remains is paid to us, and the remainder is to be released to the executors to discharge the will of the dead man, and if nothing is owed to us from such a person, all the chattels are to pass to the (use of) the dead man, saving to the dead man's wife and children their reasonable portion.
[19] No constable or his bailiff is to take corn or other chattels from anyone who not themselves of a vill where a castle is built, unless the constable or his bailiff immediately offers money in payment of obtains a respite by the wish of the seller. If the person whose corn or chattels are taken is of such a vill, then the constable or his bailiff is to pay the purchase price within forty days.
[20] No constable is to distrain any knight to give money for castle guard if the knight is willing to do such guard in person or by proxy of any other honest man, should the knight be prevented from doing so by just cause. And if we take or send such a knight into the army, he is to be quit of (castle) guard in accordance with the length of time the we have him in the army for the fee for which he has done service in the army.
[21] No sheriff or bailiff of ours or of anyone else is to take anyone's horses or carts to make carriage, unless he renders the payment customarily due, namely for a two-horse cart ten pence per day, and for a three-horse cart fourteen pence per day. No demesne cart belonging to any churchman or knight or any other lady (sic) is to be taken by our bailiffs, nor will we or our bailiffs or anyone else take someone else's timber for a castle or any other of our business save by the will of he to whom the timber belongs.
[22] We shall not hold the lands of those convicted of felony save for a year and a day, whereafter such land is to be restored to the lords of the fees.
[23] All fish weirs (kidelli) on the Thames and the Medway and throughout England are to be entirely dismantled, save on the sea coast.
[24] The writ called 'praecipe' is not to be issued to anyone in respect to any free tenement in such a way that a free man might lose his court.
[25] There is to be a single measure for wine throughout our realm, and a single measure for ale, and a single measure for Corn, that is to say the London quarter, and a single breadth for dyed cloth, russets, and haberjects, that is to say two yards within the lists. And it shall be the same for weights as for measures.
[26] Henceforth there is to be nothing given for a writ of inquest from the person seeking an inquest of life or member, but such a writ is to be given freely and is not to be denied.
[27] If any persons hold from us at fee farm or in socage or burgage, and hold land from another by knight service, we are not, by virtue of such a fee farm or socage or burgage, to have custody of the heir or their land which pertains to another's fee, nor are we to have custody of such a fee farm or socage or burgage unless this fee farm owes knight service. We are not to have the custody of an heir or of any land which is held from another by knight service on the pretext of some small serjeanty held from us by service of rendering us knives or arrows or suchlike things.
[28] No bailiff is henceforth to put any man on his open law or on oath simply by virtue of his spoken word, without reliable witnesses being produced for the same.
[29] No freeman is to be taken or imprisoned or disseised of his free tenement or of his liberties or free customs, or outlawed or exiled or in any way ruined, nor will we go against such a man or send against him save by lawful judgement of his peers or by the law of the land. To no-one will we sell or deny of delay right or justice.
[30] All merchants, unless they have been previously and publicly forbidden, are to have safe and secure conduct in leaving and coming to England and in staying and going through England both by land and by water to buy and to sell, without any evil exactions, according to the ancient and right customs, save in time of war, and if they should be from a land at war against us and be found in our land at the beginning of the war, they are to be attached without damage to their bodies or goods until it is established by us or our chief justiciar in what way the merchants of our land are treated who at such a time are found in the land that is at war with us, and if our merchants are safe there, the other merchants are to be safe in our land.
[31] If anyone dies holding of any escheat such as the honour of Wallingford, Boulogne, Nottingham, Lancaster or of other escheats which are in our hands and which are baronies, his heir is not to give any other relief or render any other service to us that would not have been rendered to the baron if the barony were still held by a baron, and we shall hold such things in the same way as the baron held them, nor, on account of such a barony or escheat, are we to have the escheat or custody of any of our men unless the man who held the barony or the escheat held elsewhere from us in chief.
[32] No free man is henceforth to give or sell any more of his land to anyone, unless the residue of his land is sufficient to render due service to the lord of the fee as pertains to that fee.
[33] All patrons of abbeys which have charters of the kings of England over advowson or ancient tenure or possession are to have the custody of such abbeys when they fall vacant just as they ought to have and as is declared above.
[34] No-one is to be taken or imprisoned on the appeal of woman for the death of anyone save for the death of that woman's husband.
[35] No county court is to be held save from month to month, and where the greater term used to be held, so will it be in future, nor will any sheriff or his bailiff make his tourn through the hundred save for twice a year and only in the place that is due and customary, namely once after Easter and again after Michaelmas, and the view of frankpledge is to be taken at the Michaelmas term without exception, in such a way that every man is to have his liberties which he had or used to have in the time of King H(enry II) my grandfather or which he has acquired since. The view of frankpledge is to be taken so that our peace be held and so that the tithing is to be held entire as it used to be, and so that the sheriff does not seek exceptions but remains content with that which the sheriff used to have in taking the view in the time of King H(enry) our grandfather.
[36] Nor is it permitted to anyone to give his land to a religious house in such a way that he receives it back from such a house to hold, nor is it permitted to any religious house to accept the land of anyone in such way that the land is restored to the person from whom it was received to hold. If anyone henceforth gives his land in such a way to any religious house and is convicted of the same, the gift is to be entirely quashed and such land is to revert to the lord of that fee.
[37] Scutage furthermore is to be taken as it used to be in the time of King H(enry) our grandfather, and all liberties and free customs shall be preserved to archbishops, bishops, abbots, priors, Templars, Hospitallers, earls, barons and all others, both ecclesiastical and secular persons, just as they formerly had.
All these aforesaid customs and liberties which we have granted to be held in our realm in so far as pertains to us are to be observed by all of our realm, both clergy and laity, in so far as pertains to them in respect to their own men. For this gift and grant of these liberties and of others contained in our charter over the liberties of the forest, the archbishops, bishops, abbots, priors, earls, barons, knights, fee holders and all of our realm have given us a fifteenth part of all their movable goods. Moreover we grant to them for us and our heirs that neither we nor our heirs will seek anything by which the liberties contained in this charter might be infringed or damaged, and should anything be obtained from anyone against this it is to count for nothing and to be held as nothing. With these witnesses: the lord S(tephen) archbishop of Canterbury, E(ustace) bishop of London, J(ocelin) bishop of Bath, P(eter) bishop of Winchester, H(ugh) bishop of Lincoln, R(ichard) bishop of Salisbury, W. bishop of Rochester, W(illiam) bishop of Worcester, J(ohn) bishop of Ely, H(ugh) bishop of Hereford, R(anulf) bishop of Chichester, W(illiam) bishop of Exeter, the abbot of (Bury) St Edmunds, the abbot of St Albans, the abbot of Battle, the abbot of St Augustine's Canterbury, the abbot of Evesham, the abbot of Westminster, the abbot of Peterborough, the abbot of Reading, the abbot of Abingdon, the abbot of Malmesbury, the abbot of Winchcombe, the abbot of Hyde (Winchester), the abbot of Chertsey, the abbot of Sherborne, the abbot of Cerne, the abbot of Abbotsbury, the abbot of Milton (Abbas), the abbot of Selby, the abbot of Cirencester, H(ubert) de Burgh the justiciar, H. earl of Chester and Lincoln, W(illiam) earl of Salisbury, W(illiam) earl Warenne, G. de Clare earl of Gloucester and Hertford, W(illiam) de Ferrers earl of Derby, W(illiam) de Mandeville earl of Essex, H(ugh) Bigod earl of Norfolk, W(illiam) earl Aumale, H(umphrey) earl of Hereford, J(ohn) constable of Chester, R(obert) de Ros, R(obert) fitz Walter, R(obert) de Vieuxpont, W(illiam) Brewer, R(ichard) de Montfiquet, P(eter) fitz Herbert, W(illiam) de Aubigne, G. Gresley, F. de Braose, J(ohn) of Monmouth, J(ohn) fitz Alan, H(ugh) de Mortemer, W(illiam) de Beauchamp, W(illiam) de St John, P(eter) de Maulay, Brian de Lisle, Th(omas) of Moulton, R(ichard) de Argentan, G(eoffrey) de Neville, W(illiam) Mauduit, J(ohn) de Baalon and others. Given at Westminster on the eleventh day of February in the ninth year of our reign.
We, holding these aforesaid gifts and grants to be right and welcome, conceed and confirm them for ourselves and our heirs and by the terms of the present (letters) renew them, wishing and granting for ourselves and our heirs that the aforesaid charter is to be firmly and inviably observed in all and each of its articles in perpetuity, including any articles contained in the same charter which by chance have not to date been observed. In testimony of which we have had made these our letters patent. Witnessed by Edward our son, at Westminster on the twelfth day of October in the twenty-fifth year of our reign. (Chancery warranty by John of) Stowe.
'''
partlen = 8
open('key', 'w').write('key')
hexofkey = key.encode('hex')
keyparts = []
for i in range(0, len(hexofkey), partlen):
part = hexofkey[i:i+partlen]
keyparts.append(part)
f = StringIO.StringIO()
textpartlen = len(garbage) / len(keyparts)
for i in range(len(keyparts)):
offset = i*textpartlen
if i == len(keyparts) - 1:
textpart = garbage[offset:]
else:
textpart = garbage[offset:offset+textpartlen]
fn = keyparts[i] + '.txt'
gf = gzip.GzipFile(filename=fn, mode='ab', fileobj=f)
gf.write(textpart)
gf.close()
fn = md5.new(f.getvalue()).hexdigest()
open(fn, 'wb').write(f.getvalue())

1
puzzles/steg/200/key Normal file
View File

@ -0,0 +1 @@
key

1
puzzles/steg/3/key Normal file
View File

@ -0,0 +1 @@
blowers-Merak-imaginary

BIN
puzzles/steg/3/test2.docx Normal file

Binary file not shown.

16
puzzles/steg/30/index.exe Executable file
View File

@ -0,0 +1,16 @@
#! /bin/sh -e
# Reverse:
# dd if=whatever bs=16 skip=1 | zcat
key='vegetable multitude'
echo $key > key
dd if=src.mp3 bs=4 count=1 > out.mp3
dd if=/dev/zero bs=4 count=3 >> out.mp3
(cat noise.txt; echo; echo "The key is \"$key\".") | zip - - >> out.mp3
cat src.mp3 >> out.mp3
md5=$(md5sum out.mp3 | awk '{print $1;}')
mv out.mp3 $md5

1
puzzles/steg/30/key Normal file
View File

@ -0,0 +1 @@
vegetable multitude

188
puzzles/steg/30/noise.txt Normal file
View File

@ -0,0 +1,188 @@
PREAMBLE
Whereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world,
Whereas disregard and contempt for human rights have resulted in barbarous acts which have outraged the conscience of mankind, and the advent of a world in which human beings shall enjoy freedom of speech and belief and freedom from fear and want has been proclaimed as the highest aspiration of the common people,
Whereas it is essential, if man is not to be compelled to have recourse, as a last resort, to rebellion against tyranny and oppression, that human rights should be protected by the rule of law,
Whereas it is essential to promote the development of friendly relations between nations,
Whereas the peoples of the United Nations have in the Charter reaffirmed their faith in fundamental human rights, in the dignity and worth of the human person and in the equal rights of men and women and have determined to promote social progress and better standards of life in larger freedom,
Whereas Member States have pledged themselves to achieve, in co-operation with the United Nations, the promotion of universal respect for and observance of human rights and fundamental freedoms,
Whereas a common understanding of these rights and freedoms is of the greatest importance for the full realization of this pledge,
Now, Therefore THE GENERAL ASSEMBLY proclaims THIS UNIVERSAL DECLARATION OF HUMAN RIGHTS as a common standard of achievement for all peoples and all nations, to the end that every individual and every organ of society, keeping this Declaration constantly in mind, shall strive by teaching and education to promote respect for these rights and freedoms and by progressive measures, national and international, to secure their universal and effective recognition and observance, both among the peoples of Member States themselves and among the peoples of territories under their jurisdiction.
Article 1.
* All human beings are born free and equal in dignity and rights.They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
Article 2.
* Everyone is entitled to all the rights and freedoms set forth in this Declaration, without distinction of any kind, such as race, colour, sex, language, religion, political or other opinion, national or social origin, property, birth or other status. Furthermore, no distinction shall be made on the basis of the political, jurisdictional or international status of the country or territory to which a person belongs, whether it be independent, trust, non-self-governing or under any other limitation of sovereignty.
Article 3.
* Everyone has the right to life, liberty and security of person.
Article 4.
* No one shall be held in slavery or servitude; slavery and the slave trade shall be prohibited in all their forms.
Article 5.
* No one shall be subjected to torture or to cruel, inhuman or degrading treatment or punishment.
Article 6.
* Everyone has the right to recognition everywhere as a person before the law.
Article 7.
* All are equal before the law and are entitled without any discrimination to equal protection of the law. All are entitled to equal protection against any discrimination in violation of this Declaration and against any incitement to such discrimination.
Article 8.
* Everyone has the right to an effective remedy by the competent national tribunals for acts violating the fundamental rights granted him by the constitution or by law.
Article 9.
* No one shall be subjected to arbitrary arrest, detention or exile.
Article 10.
* Everyone is entitled in full equality to a fair and public hearing by an independent and impartial tribunal, in the determination of his rights and obligations and of any criminal charge against him.
Article 11.
* (1) Everyone charged with a penal offence has the right to be presumed innocent until proved guilty according to law in a public trial at which he has had all the guarantees necessary for his defence.
* (2) No one shall be held guilty of any penal offence on account of any act or omission which did not constitute a penal offence, under national or international law, at the time when it was committed. Nor shall a heavier penalty be imposed than the one that was applicable at the time the penal offence was committed.
Article 12.
* No one shall be subjected to arbitrary interference with his privacy, family, home or correspondence, nor to attacks upon his honour and reputation. Everyone has the right to the protection of the law against such interference or attacks.
Article 13.
* (1) Everyone has the right to freedom of movement and residence within the borders of each state.
* (2) Everyone has the right to leave any country, including his own, and to return to his country.
Article 14.
* (1) Everyone has the right to seek and to enjoy in other countries asylum from persecution.
* (2) This right may not be invoked in the case of prosecutions genuinely arising from non-political crimes or from acts contrary to the purposes and principles of the United Nations.
Article 15.
* (1) Everyone has the right to a nationality.
* (2) No one shall be arbitrarily deprived of his nationality nor denied the right to change his nationality.
Article 16.
* (1) Men and women of full age, without any limitation due to race, nationality or religion, have the right to marry and to found a family. They are entitled to equal rights as to marriage, during marriage and at its dissolution.
* (2) Marriage shall be entered into only with the free and full consent of the intending spouses.
* (3) The family is the natural and fundamental group unit of society and is entitled to protection by society and the State.
Article 17.
* (1) Everyone has the right to own property alone as well as in association with others.
* (2) No one shall be arbitrarily deprived of his property.
Article 18.
* Everyone has the right to freedom of thought, conscience and religion; this right includes freedom to change his religion or belief, and freedom, either alone or in community with others and in public or private, to manifest his religion or belief in teaching, practice, worship and observance.
Article 19.
* Everyone has the right to freedom of opinion and expression; this right includes freedom to hold opinions without interference and to seek, receive and impart information and ideas through any media and regardless of frontiers.
Article 20.
* (1) Everyone has the right to freedom of peaceful assembly and association.
* (2) No one may be compelled to belong to an association.
Article 21.
* (1) Everyone has the right to take part in the government of his country, directly or through freely chosen representatives.
* (2) Everyone has the right of equal access to public service in his country.
* (3) The will of the people shall be the basis of the authority of government; this will shall be expressed in periodic and genuine elections which shall be by universal and equal suffrage and shall be held by secret vote or by equivalent free voting procedures.
Article 22.
* Everyone, as a member of society, has the right to social security and is entitled to realization, through national effort and international co-operation and in accordance with the organization and resources of each State, of the economic, social and cultural rights indispensable for his dignity and the free development of his personality.
Article 23.
* (1) Everyone has the right to work, to free choice of employment, to just and favourable conditions of work and to protection against unemployment.
* (2) Everyone, without any discrimination, has the right to equal pay for equal work.
* (3) Everyone who works has the right to just and favourable remuneration ensuring for himself and his family an existence worthy of human dignity, and supplemented, if necessary, by other means of social protection.
* (4) Everyone has the right to form and to join trade unions for the protection of his interests.
Article 24.
* Everyone has the right to rest and leisure, including reasonable limitation of working hours and periodic holidays with pay.
Article 25.
* (1) Everyone has the right to a standard of living adequate for the health and well-being of himself and of his family, including food, clothing, housing and medical care and necessary social services, and the right to security in the event of unemployment, sickness, disability, widowhood, old age or other lack of livelihood in circumstances beyond his control.
* (2) Motherhood and childhood are entitled to special care and assistance. All children, whether born in or out of wedlock, shall enjoy the same social protection.
Article 26.
* (1) Everyone has the right to education. Education shall be free, at least in the elementary and fundamental stages. Elementary education shall be compulsory. Technical and professional education shall be made generally available and higher education shall be equally accessible to all on the basis of merit.
* (2) Education shall be directed to the full development of the human personality and to the strengthening of respect for human rights and fundamental freedoms. It shall promote understanding, tolerance and friendship among all nations, racial or religious groups, and shall further the activities of the United Nations for the maintenance of peace.
* (3) Parents have a prior right to choose the kind of education that shall be given to their children.
Article 27.
* (1) Everyone has the right freely to participate in the cultural life of the community, to enjoy the arts and to share in scientific advancement and its benefits.
* (2) Everyone has the right to the protection of the moral and material interests resulting from any scientific, literary or artistic production of which he is the author.
Article 28.
* Everyone is entitled to a social and international order in which the rights and freedoms set forth in this Declaration can be fully realized.
Article 29.
* (1) Everyone has duties to the community in which alone the free and full development of his personality is possible.
* (2) In the exercise of his rights and freedoms, everyone shall be subject only to such limitations as are determined by law solely for the purpose of securing due recognition and respect for the rights and freedoms of others and of meeting the just requirements of morality, public order and the general welfare in a democratic society.
* (3) These rights and freedoms may in no case be exercised contrary to the purposes and principles of the United Nations.
Article 30.
* Nothing in this Declaration may be interpreted as implying for any State, group or person any right to engage in any activity or to perform any act aimed at the destruction of any of the rights and freedoms set forth herein.

BIN
puzzles/steg/30/src.mp3 Normal file

Binary file not shown.

60
puzzles/steg/40/index.exe Executable file
View File

@ -0,0 +1,60 @@
#! /usr/bin/python
import os
import sys
import md5
import cStringIO as StringIO
key = 'breadfruit chawbacon'
src = os.path.dirname(sys.argv[0])
class md5file:
def __init__(self, fn='outf.bin'):
self.fn = fn
self.f = open(fn, 'wb')
self.m = md5.new()
def write(self, s):
self.f.write(s)
self.m.update(s)
def close(self):
self.f.close()
os.rename(self.fn, self.m.hexdigest())
os.system('wget -O lena.tif http://www.cs.cmu.edu/~chuck/lennapg/lena_std.tif')
inf = os.popen('tifftopnm lena.tif', 'rb')
version = inf.readline()
dimensions = inf.readline()
depth = inf.readline()
# Read in plaintext
noise = open(os.path.join(src, 'noise.txt')).read()
noise += '\n\nThe key is "%s".\n' % key
noise = StringIO.StringIO(noise)
# Set the low-order bits in output file
outf = md5file()
outf.write(version)
outf.write(dimensions)
outf.write(depth)
i = 0
while True:
c = noise.read(1)
if c:
c = ord(c)
else:
c = 0
img_bytes = inf.read(8)
if not img_bytes:
break
for j in range(8):
bit = 7 - j
img_byte = ord(img_bytes[j]) & 0xFE
noise_bit = (c & (1<<bit)) >> bit
out_byte = img_byte | noise_bit
outf.write(chr(out_byte))
outf.close()
open('key', 'w').write(key)
os.unlink('lena.tif')

1
puzzles/steg/40/key Normal file
View File

@ -0,0 +1 @@
breadfruit chawbacon

194
puzzles/steg/40/noise.txt Normal file
View File

@ -0,0 +1,194 @@
Out of love for the truth and the desire to bring it to light, the following propositions will be discussed at Wittenberg, under the presidency of the Reverend Father Martin Luther, Master of Arts and of Sacred Theology, and Lecturer in Ordinary on the same at that place. Wherefore he requests that those who are unable to be present and debate orally with us, may do so by letter.
In the Name our Lord Jesus Christ. Amen.
1. Our Lord and Master Jesus Christ, when He said Poenitentiam agite, willed that the whole life of believers should be repentance.
2. This word cannot be understood to mean sacramental penance, i.e., confession and satisfaction, which is administered by the priests.
3. Yet it means not inward repentance only; nay, there is no inward repentance which does not outwardly work divers mortifications of the flesh.
4. The penalty [of sin], therefore, continues so long as hatred of self continues; for this is the true inward repentance, and continues until our entrance into the kingdom of heaven.
5. The pope does not intend to remit, and cannot remit any penalties other than those which he has imposed either by his own authority or by that of the Canons.
6. The pope cannot remit any guilt, except by declaring that it has been remitted by God and by assenting to God's remission; though, to be sure, he may grant remission in cases reserved to his judgment. If his right to grant remission in such cases were despised, the guilt would remain entirely unforgiven.
7. God remits guilt to no one whom He does not, at the same time, humble in all things and bring into subjection to His vicar, the priest.
8. The penitential canons are imposed only on the living, and, according to them, nothing should be imposed on the dying.
9. Therefore the Holy Spirit in the pope is kind to us, because in his decrees he always makes exception of the article of death and of necessity.
10. Ignorant and wicked are the doings of those priests who, in the case of the dying, reserve canonical penances for purgatory.
11. This changing of the canonical penalty to the penalty of purgatory is quite evidently one of the tares that were sown while the bishops slept.
12. In former times the canonical penalties were imposed not after, but before absolution, as tests of true contrition.
13. The dying are freed by death from all penalties; they are already dead to canonical rules, and have a right to be released from them.
14. The imperfect health [of soul], that is to say, the imperfect love, of the dying brings with it, of necessity, great fear; and the smaller the love, the greater is the fear.
15. This fear and horror is sufficient of itself alone (to say nothing of other things) to constitute the penalty of purgatory, since it is very near to the horror of despair.
16. Hell, purgatory, and heaven seem to differ as do despair, almost-despair, and the assurance of safety.
17. With souls in purgatory it seems necessary that horror should grow less and love increase.
18. It seems unproved, either by reason or Scripture, that they are outside the state of merit, that is to say, of increasing love.
19. Again, it seems unproved that they, or at least that all of them, are certain or assured of their own blessedness, though we may be quite certain of it.
20. Therefore by "full remission of all penalties" the pope means not actually "of all," but only of those imposed by himself.
21. Therefore those preachers of indulgences are in error, who say that by the pope's indulgences a man is freed from every penalty, and saved;
22. Whereas he remits to souls in purgatory no penalty which, according to the canons, they would have had to pay in this life.
23. If it is at all possible to grant to any one the remission of all penalties whatsoever, it is certain that this remission can be granted only to the most perfect, that is, to the very fewest.
24. It must needs be, therefore, that the greater part of the people are deceived by that indiscriminate and highsounding promise of release from penalty.
25. The power which the pope has, in a general way, over purgatory, is just like the power which any bishop or curate has, in a special way, within his own diocese or parish.
26. The pope does well when he grants remission to souls [in purgatory], not by the power of the keys (which he does not possess), but by way of intercession.
27. They preach man who say that so soon as the penny jingles into the money-box, the soul flies out [of purgatory].
28. It is certain that when the penny jingles into the money-box, gain and avarice can be increased, but the result of the intercession of the Church is in the power of God alone.
29. Who knows whether all the souls in purgatory wish to be bought out of it, as in the legend of Sts. Severinus and Paschal.
30. No one is sure that his own contrition is sincere; much less that he has attained full remission.
31. Rare as is the man that is truly penitent, so rare is also the man who truly buys indulgences, i.e., such men are most rare.
32. They will be condemned eternally, together with their teachers, who believe themselves sure of their salvation because they have letters of pardon.
33. Men must be on their guard against those who say that the pope's pardons are that inestimable gift of God by which man is reconciled to Him;
34. For these "graces of pardon" concern only the penalties of sacramental satisfaction, and these are appointed by man.
35. They preach no Christian doctrine who teach that contrition is not necessary in those who intend to buy souls out of purgatory or to buy confessionalia.
36. Every truly repentant Christian has a right to full remission of penalty and guilt, even without letters of pardon.
37. Every true Christian, whether living or dead, has part in all the blessings of Christ and the Church; and this is granted him by God, even without letters of pardon.
38. Nevertheless, the remission and participation [in the blessings of the Church] which are granted by the pope are in no way to be despised, for they are, as I have said, the declaration of divine remission.
39. It is most difficult, even for the very keenest theologians, at one and the same time to commend to the people the abundance of pardons and [the need of] true contrition.
40. True contrition seeks and loves penalties, but liberal pardons only relax penalties and cause them to be hated, or at least, furnish an occasion [for hating them].
41. Apostolic pardons are to be preached with caution, lest the people may falsely think them preferable to other good works of love.
42. Christians are to be taught that the pope does not intend the buying of pardons to be compared in any way to works of mercy.
43. Christians are to be taught that he who gives to the poor or lends to the needy does a better work than buying pardons;
44. Because love grows by works of love, and man becomes better; but by pardons man does not grow better, only more free from penalty.
45. Christians are to be taught that he who sees a man in need, and passes him by, and gives [his money] for pardons, purchases not the indulgences of the pope, but the indignation of God.
46. Christians are to be taught that unless they have more than they need, they are bound to keep back what is necessary for their own families, and by no means to squander it on pardons.
47. Christians are to be taught that the buying of pardons is a matter of free will, and not of commandment.
48. Christians are to be taught that the pope, in granting pardons, needs, and therefore desires, their devout prayer for him more than the money they bring.
49. Christians are to be taught that the pope's pardons are useful, if they do not put their trust in them; but altogether harmful, if through them they lose their fear of God.
50. Christians are to be taught that if the pope knew the exactions of the pardon-preachers, he would rather that St. Peter's church should go to ashes, than that it should be built up with the skin, flesh and bones of his sheep.
51. Christians are to be taught that it would be the pope's wish, as it is his duty, to give of his own money to very many of those from whom certain hawkers of pardons cajole money, even though the church of St. Peter might have to be sold.
52. The assurance of salvation by letters of pardon is vain, even though the commissary, nay, even though the pope himself, were to stake his soul upon it.
53. They are enemies of Christ and of the pope, who bid the Word of God be altogether silent in some Churches, in order that pardons may be preached in others.
54. Injury is done the Word of God when, in the same sermon, an equal or a longer time is spent on pardons than on this Word.
55. It must be the intention of the pope that if pardons, which are a very small thing, are celebrated with one bell, with single processions and ceremonies, then the Gospel, which is the very greatest thing, should be preached with a hundred bells, a hundred processions, a hundred ceremonies.
56. The "treasures of the Church," out of which the pope. grants indulgences, are not sufficiently named or known among the people of Christ.
57. That they are not temporal treasures is certainly evident, for many of the vendors do not pour out such treasures so easily, but only gather them.
58. Nor are they the merits of Christ and the Saints, for even without the pope, these always work grace for the inner man, and the cross, death, and hell for the outward man.
59. St. Lawrence said that the treasures of the Church were the Church's poor, but he spoke according to the usage of the word in his own time.
60. Without rashness we say that the keys of the Church, given by Christ's merit, are that treasure;
61. For it is clear that for the remission of penalties and of reserved cases, the power of the pope is of itself sufficient.
62. The true treasure of the Church is the Most Holy Gospel of the glory and the grace of God.
63. But this treasure is naturally most odious, for it makes the first to be last.
64. On the other hand, the treasure of indulgences is naturally most acceptable, for it makes the last to be first.
65. Therefore the treasures of the Gospel are nets with which they formerly were wont to fish for men of riches.
66. The treasures of the indulgences are nets with which they now fish for the riches of men.
67. The indulgences which the preachers cry as the "greatest graces" are known to be truly such, in so far as they promote gain.
68. Yet they are in truth the very smallest graces compared with the grace of God and the piety of the Cross.
69. Bishops and curates are bound to admit the commissaries of apostolic pardons, with all reverence.
70. But still more are they bound to strain all their eyes and attend with all their ears, lest these men preach their own dreams instead of the commission of the pope.
71. He who speaks against the truth of apostolic pardons, let him be anathema and accursed!
72. But he who guards against the lust and license of the pardon-preachers, let him be blessed!
73. The pope justly thunders against those who, by any art, contrive the injury of the traffic in pardons.
74. But much more does he intend to thunder against those who use the pretext of pardons to contrive the injury of holy love and truth.
75. To think the papal pardons so great that they could absolve a man even if he had committed an impossible sin and violated the Mother of God -- this is madness.
76. We say, on the contrary, that the papal pardons are not able to remove the very least of venial sins, so far as its guilt is concerned.
77. It is said that even St. Peter, if he were now Pope, could not bestow greater graces; this is blasphemy against St. Peter and against the pope.
78. We say, on the contrary, that even the present pope, and any pope at all, has greater graces at his disposal; to wit, the Gospel, powers, gifts of healing, etc., as it is written in I. Corinthians xii.
79. To say that the cross, emblazoned with the papal arms, which is set up [by the preachers of indulgences], is of equal worth with the Cross of Christ, is blasphemy.
80. The bishops, curates and theologians who allow such talk to be spread among the people, will have an account to render.
81. This unbridled preaching of pardons makes it no easy matter, even for learned men, to rescue the reverence due to the pope from slander, or even from the shrewd questionings of the laity.
82. To wit: "Why does not the pope empty purgatory, for the sake of holy love and of the dire need of the souls that are there, if he redeems an infinite number of souls for the sake of miserable money with which to build a Church? The former reasons would be most just; the latter is most trivial."
83. Again: "Why are mortuary and anniversary masses for the dead continued, and why does he not return or permit the withdrawal of the endowments founded on their behalf, since it is wrong to pray for the redeemed?"
84. Again: "What is this new piety of God and the pope, that for money they allow a man who is impious and their enemy to buy out of purgatory the pious soul of a friend of God, and do not rather, because of that pious and beloved soul's own need, free it for pure love's sake?"
85. Again: "Why are the penitential canons long since in actual fact and through disuse abrogated and dead, now satisfied by the granting of indulgences, as though they were still alive and in force?"
86. Again: "Why does not the pope, whose wealth is to-day greater than the riches of the richest, build just this one church of St. Peter with his own money, rather than with the money of poor believers?"
87. Again: "What is it that the pope remits, and what participation does he grant to those who, by perfect contrition, have a right to full remission and participation?"
88. Again: "What greater blessing could come to the Church than if the pope were to do a hundred times a day what he now does once, and bestow on every believer these remissions and participations?"
89. "Since the pope, by his pardons, seeks the salvation of souls rather than money, why does he suspend the indulgences and pardons granted heretofore, since these have equal efficacy?"
90. To repress these arguments and scruples of the laity by force alone, and not to resolve them by giving reasons, is to expose the Church and the pope to the ridicule of their enemies, and to make Christians unhappy.
91. If, therefore, pardons were preached according to the spirit and mind of the pope, all these doubts would be readily resolved; nay, they would not exist.
92. Away, then, with all those prophets who say to the people of Christ, "Peace, peace," and there is no peace!
93. Blessed be all those prophets who say to the people of Christ, "Cross, cross," and there is no cross!
94. Christians are to be exhorted that they be diligent in following Christ, their Head, through penalties, deaths, and hell;
95. And thus be confident of entering into heaven rather through many tribulations, than through the assurance of peace.