diff --git a/mkpuzzles.py b/mkpuzzles.py index 3d3e0da..243bf29 100755 --- a/mkpuzzles.py +++ b/mkpuzzles.py @@ -21,6 +21,9 @@ for cat in os.listdir(opts.puzzles): dirname = os.path.join(opts.puzzles, cat) for points in os.listdir(dirname): pointsdir = os.path.join(dirname, points) + if not os.path.isdir(pointsdir): + continue + outdir = os.path.join(opts.htmldir, cat, points) try: os.makedirs(outdir) diff --git a/puzzles/webapp/40/,binary.png b/puzzles/webapp/40/,binary.png deleted file mode 120000 index 736df8b..0000000 --- a/puzzles/webapp/40/,binary.png +++ /dev/null @@ -1 +0,0 @@ -../1/,binary.png \ No newline at end of file diff --git a/puzzles/webapp/40/,binary.png b/puzzles/webapp/40/,binary.png new file mode 100644 index 0000000..81cecbf Binary files /dev/null and b/puzzles/webapp/40/,binary.png differ diff --git a/puzzles/webapp/40/,ctf.css b/puzzles/webapp/40/,ctf.css deleted file mode 120000 index 32cad37..0000000 --- a/puzzles/webapp/40/,ctf.css +++ /dev/null @@ -1 +0,0 @@ -../1/,ctf.css \ No newline at end of file diff --git a/puzzles/webapp/40/,ctf.css b/puzzles/webapp/40/,ctf.css new file mode 100644 index 0000000..4b1b9a0 --- /dev/null +++ b/puzzles/webapp/40/,ctf.css @@ -0,0 +1,54 @@ +html,body { + height: 100%; + min-height: 100%; + background-color: #000000; + background-image: url(",binary.png"); + background-repeat: repeat-x repeat-y; + margin: 0; + padding: 0; +} + +#wrapper { + min-height: 100%; + height: 100%; + width: 800px; + margin: 0 auto; + border-left: 2px solid #009900; + border-right: 2px solid #009900; + font: .9em monospace; + color: #009900; + padding: 0; + background: #000; +} + +#content { + padding: 2em 1.5em 2em 1.5em; +} + +#footer { + padding: 0; + margin: 0; + height: 2em; + line-height: 2em; + width: 800px; + text-align: center; +} + +input { + background-color: #222; + color: #fff; + border: 1px solid #009900; + padding: 1px 2px 1px 2px; +} + +h1,h2,h3,h4 { + padding-bottom: 5px; +} + +.vertsep { + width: 100%; + height: 1px; + padding: 0; + margin: 2em auto 2em auto; + border-bottom: 1px dotted #222; +}