Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dubs3c committed May 21, 2019
0 parents commit 868cb49
Show file tree
Hide file tree
Showing 20 changed files with 490 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode
__pycache__
*.log
*.vagrant/
*.pyc
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.7
ENV PYTHONUNBUFFERED 1
RUN useradd -u 1002 -ms /bin/bash dmb && pip install --upgrade pip
USER dmb
RUN mkdir /home/dmb/ctf
COPY --chown=dmb . /home/dmb/ctf/
WORKDIR /home/dmb/ctf
RUN pip install -r requirements.txt --user && echo "export PATH=$(python -c 'import site; print(site.USER_BASE + "/bin")'):$PATH" >> ~/.bashrc
30 changes: 30 additions & 0 deletions Encryption.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
PEM_PRIVATE_KEY=b"""-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFLTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIF+TK17Q9CAsCAggA
MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBCebicNIgfA441g2E3t3z/oBIIE
0OAMyvjZ8MaFDLJzuzDY3RWHP0IHWiHoCBNxPJWySon/tLXoizSbsj8EKtgA0MpE
vORC4QdnKg7bqplAAXfSIRli9Hb7RcuMpKv5buW3/Oh/th8NWWM9LOQOBAO0svlR
pJhA5hZSKEgEJMd1E77mjv29gHMEzRgXvAsTOZXhgbbtPnIkQGPXZq4hXyhy0VBt
9cCevKYLgVFahIARjejN+KErNiSN0f76mc62wunum+J6uGtk/HYZ00ZsFcf/0x7B
O/8hrFsliAg+2izNLVWy/+b1oCkuaMIEZ0zXjse3iZirSmWs6F5tFGh2w5lnJB1G
hJAqTjhHdvPWpwiyTw4nCG7+FDd3v1Ih+v8Qq9evlkY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8EA/ZykDJs4M/E5eSiZI9ZmrCsIrUXZ7QGjguqHXnHi7wsO3RSa2c8Bl+t
+SYlmqK5U55yHZ23rJIS/XNIaMB+mX0CHnx/+rohABcueD7Hz7Q0OHP34NuPwK3x
NAx6x4Yfrw2SiYd0Nj15N8oexI+u6/tahCL2obap9S1Y7zibfNgJs4d2yi3F3A+w
Fe+whD+k+txSfs6w50MFgI4JG2Hu6dLtdQC5FSyOAYDJ
-----END ENCRYPTED PRIVATE KEY-----"""
16 changes: 16 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
flask = "*"
peewee = "*"
cryptography = "*"
gunicorn = "*"
flask-login = "*"

[requires]
python_version = "3.7"
191 changes: 191 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# The Dark Message Board

A message board for the darknet. Only real cyber pirates can run this application!

## Requirements
* Python 3.6
* Docker *(optional)*


## How to run

First, clone the repository, then follow the steps below.

### Using pip
`pip3 install -r requirements.txt`

### Using pipenv
`pipenv install`

## Gr33ts

Greetings to chaz | xXxH4x0r1xXx | H4ckerm@n | Dark0verl0rd | dubs3c | lanbot | MCr00tz | S4W_BL457 | 4prili666h05T | Mr.3RR0R | Mr.Aljabar | Alternation | Exect1337 | MR.WWW | ./m!5t312be3 | Z3U54774CK | N1C3x13 | D34D 5L00P | TehManiz404 | Hmei1| Its Botline7w7 | N00BT3RS4K1T1 | h3NDr1k Cyb3r | Mr.Clay | Mr.H4z | Leo | Mr.DYMC | Hmei1 | TUAN B4DUT | F4LK4 | Mr.Dex | Look-t | Prima | Raka | Not Found | Yujinn | Mr.Jingga719 | Mr.-T- | Uyhaw | Trojan | Mr.Finnix | Mr.Kalveki | Ccr7 | ItsHardware7w7 | ItsR00tme7w7 | Ceki | 4M3L1A | P4TR1CK | Its Ponny 7w7 | ItsJsrCrash7w7 | Mr.D43NGR00T | xMrCold

**such hackers, much cyber**

*plz dont hack*
34 changes: 34 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import os

from model import init_database, Post
from flask import render_template, Flask, send_from_directory, request


init_database()

app = Flask(__name__, static_folder='static')

@app.route('/robots.txt')
def static_from_root():
return send_from_directory(app.static_folder, request.path[1:])

@app.route("/")
def index():
return render_template("login.html")


@app.route("/boards/<id>")
def board(id):
posts = []

if int(id) == 1:
posts = Post.select()

return render_template("board.html", posts=posts)


if __name__ == "__main__":
if os.environ.get("FLASK_DEBUG"):
app.run(debug=True)
else:
app.run()
21 changes: 21 additions & 0 deletions model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import datetime
from peewee import *

db = SqliteDatabase('db.db')

class Post(Model):
name = CharField()
role = CharField()
post_count = IntegerField()
message = TextField()
avatar_id = IntegerField()
created = DateTimeField(default=datetime.datetime.now)

class Meta:
database = db

def init_database():
try:
db.create_tables([Post])
except Exception as e:
raise e
25 changes: 25 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
asn1crypto==0.24.0
certifi==2019.3.9
cffi==1.12.3
chardet==3.0.4
Click==7.0
cryptography==2.6.1
Flask==1.0.2
Flask-Login==0.4.1
gevent==1.4.0
greenlet==0.4.15
gunicorn==19.9.0
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
locustio==0.11.0
MarkupSafe==1.1.1
msgpack==0.6.1
peewee==3.9.5
psycopg2==2.8.2
pycparser==2.19
pyzmq==18.0.1
requests==2.21.0
six==1.12.0
urllib3==1.24.3
Werkzeug==0.15.2
Binary file added static/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/anon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions static/board.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
body,html {
background-image: url('/static/matrix.jpg');
height: 100%;
}

h1 {
color: white;
font-size: 40px;
text-shadow: -1px 1px 0 #000,
1px 1px 0 #000,
1px -1px 0 #000,
-1px -1px 0 #000;
}

p {
color: #008F11;
}
Loading

0 comments on commit 868cb49

Please sign in to comment.