Merge branch 'master' of https://github.com/SecWiki/ctf-hub
This commit is contained in:
34
README.md
34
README.md
@@ -19,14 +19,44 @@ This is the first time we have written a project, some of which are collected fr
|
||||
- base
|
||||
|
||||
- **Android**
|
||||
|
||||
- And_1
|
||||
- **Reverse**
|
||||
- re_1
|
||||
- re_2
|
||||
- re_3
|
||||
|
||||
- re_4
|
||||
- **Pwn**
|
||||
|
||||
## Configuration method ##
|
||||
```bash
|
||||
# Need python environment, you also need to install pip
|
||||
|
||||
# installation docker
|
||||
curl -s https://get.docker.com/ | sh
|
||||
|
||||
# Start the docker service
|
||||
service docker start
|
||||
|
||||
# Install compose
|
||||
pip install docker-compose
|
||||
|
||||
# Other operating system installations of docker and docker-compose may be slightly different, please read the Docker documentation for installation.
|
||||
|
||||
# Pull project
|
||||
git clone https://github.com/SecWiki/ctf-hub/ctf-hub.git
|
||||
cd ctf-hub
|
||||
|
||||
# Enter the environment directory of a vulnerability
|
||||
cd web/web1
|
||||
|
||||
# Automated compilation
|
||||
docker-compose build
|
||||
|
||||
# Start the entire environment
|
||||
docker-compose up -d
|
||||
```
|
||||
- There is a corresponding documentation in each environment directory, please read this file for vulnerability/environment testing.
|
||||
|
||||
## Project maintenance ##
|
||||
- WUJINLIN
|
||||
[http://www.whj.website/](http://www.whj.website/)
|
||||
|
||||
20
reverse/re_4/I_List_PY.py
Normal file
20
reverse/re_4/I_List_PY.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import base64
|
||||
|
||||
|
||||
def encode(message):
|
||||
s = ""
|
||||
for i in message:
|
||||
x = ord(i) ^ 32
|
||||
x = x + 16
|
||||
s += chr(x)
|
||||
return base64.b64encode(s)
|
||||
|
||||
|
||||
correct = "VlxRV2t5j3xZW1WPgGlkWF9ebQ=="
|
||||
flag = ''
|
||||
print("Input flag:")
|
||||
flag = raw_input()
|
||||
if encode(flag) == correct:
|
||||
print "correct"
|
||||
else:
|
||||
print "wrong"
|
||||
3
reverse/re_4/README.md
Normal file
3
reverse/re_4/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## python、逆向 ##
|
||||
|
||||
简单的pyc逆向和反加密。。挺容易的。
|
||||
@@ -1,5 +1,3 @@
|
||||
FROM php:5.6-apache
|
||||
|
||||
COPY /code /var/www/html/
|
||||
|
||||
RUN chmod 751 /var/www/html/start.sh
|
||||
COPY /code /var/www/html/
|
||||
4
web/web_1/docker-compose.yml
Normal file
4
web/web_1/docker-compose.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -1,5 +1,3 @@
|
||||
FROM php:5.6-apache
|
||||
|
||||
COPY /code /var/www/html/
|
||||
|
||||
RUN chmod 751 /var/www/html/start.sh
|
||||
COPY /code /var/www/html/
|
||||
4
web/web_2/docker-compose.yml
Normal file
4
web/web_2/docker-compose.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -2,6 +2,6 @@ FROM php:5.6-apache
|
||||
|
||||
COPY /code /var/www/html/
|
||||
|
||||
RUN chmod 4755 /bin/cat && chmod 777 /var/www/html/index.php && chmod 777 /var/www/html/option.php && chmod 751 /var/www/html/shell.sh && chmod 751 /var/www/html/start.sh
|
||||
RUN chmod 4755 /bin/cat && chmod 777 /var/www/html/index.php && chmod 777 /var/www/html/option.php
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
while true
|
||||
do
|
||||
echo "<?php" > option.php
|
||||
echo "\$option='xxx';" >> option.php
|
||||
echo "?>" >> option.php
|
||||
sleep 5m
|
||||
done
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
service apache2 start
|
||||
/var/www/html/shell.sh
|
||||
/bin/bash
|
||||
4
web/web_3/docker-compose.yml
Normal file
4
web/web_3/docker-compose.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
service apache2 start
|
||||
/var/www/html/shell.sh
|
||||
/bin/bash
|
||||
4
web/web_4/docker-compose.yml
Normal file
4
web/web_4/docker-compose.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -1,5 +1,3 @@
|
||||
FROM imagine10255/centos6-lnmp-php56
|
||||
|
||||
COPY /code /var/www/html/
|
||||
|
||||
RUN chmod 751 /var/www/html/start.sh
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
service nginx stop
|
||||
service httpd start
|
||||
/bin/bash
|
||||
4
web/web_5/docker-compose.yml
Normal file
4
web/web_5/docker-compose.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "80:80"
|
||||
Reference in New Issue
Block a user