Skip to content

Commit 2a632e7

Browse files
committed
Hacklu 2020
1 parent cfea365 commit 2a632e7

File tree

20 files changed

+927
-586880
lines changed

20 files changed

+927
-586880
lines changed

2019/INSHACK_2019_CTF/Dashlame/wordlist.txt

-586,880
This file was deleted.

2020/Hacklu_CTF_2020/FluxCloud/public/.gitkeep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.gitignore
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
# Created by https://www.gitignore.io/api/node
3+
# Edit at https://www.gitignore.io/?templates=node
4+
5+
### Node ###
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Compiled binary addons (https://nodejs.org/api/addons.html)
43+
build/Release
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# TypeScript v1 declaration files
50+
typings/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional REPL history
62+
.node_repl_history
63+
64+
# Output of 'npm pack'
65+
*.tgz
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# dotenv environment variables file
71+
.env
72+
.env.test
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
77+
# next.js build output
78+
.next
79+
80+
# nuxt.js build output
81+
.nuxt
82+
83+
# vuepress build output
84+
.vuepress/dist
85+
86+
# Serverless directories
87+
.serverless/
88+
89+
# FuseBox cache
90+
.fusebox/
91+
92+
# DynamoDB Local files
93+
.dynamodb/
94+
95+
# End of https://www.gitignore.io/api/node
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:14-alpine
2+
3+
# prepare dependencies
4+
WORKDIR /app
5+
ADD package.json package-lock.json /app/
6+
RUN npm install
7+
8+
# add the rest of the app
9+
ADD . /app
10+
11+
USER 1000
12+
ENV BIND_ADDR=0.0.0.0 PORT=8080
13+
14+
CMD [ "node", "index.js" ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const express = require('express');
2+
const bodyParser = require('body-parser');
3+
const compression = require('compression');
4+
const redis = require('./redis');
5+
6+
const serverless = require('./serverless');
7+
8+
const BIND_ADDR = process.env.BIND_ADDR || '127.0.0.1';
9+
const PORT = process.env.PORT || '3000';
10+
const REDIS_HOST = process.env.REDIS_HOST || '127.0.0.1';
11+
const REDIS_PORT = process.env.REDIS_PORT || '6379';
12+
13+
const app = express();
14+
app.use(bodyParser.text());
15+
app.use(compression());
16+
app.use(express.static('./static'));
17+
18+
const redisClient = redis.createClient({
19+
host: REDIS_HOST,
20+
port: REDIS_PORT,
21+
});
22+
app.set('db', redisClient);
23+
24+
app.use('/demo', serverless);
25+
26+
app.listen(PORT, BIND_ADDR, () => {
27+
console.log(`FluxCloud Serverless listening on ${BIND_ADDR}:${PORT}`);
28+
});

0 commit comments

Comments
 (0)