This commit is contained in:
1809070261@qq.com
2018-08-16 21:18:33 +08:00
16 changed files with 78 additions and 31 deletions

View File

@@ -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
View 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
View File

@@ -0,0 +1,3 @@
## python、逆向 ##
简单的pyc逆向和反加密。。挺容易的。

View File

@@ -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/

View File

@@ -0,0 +1,4 @@
web:
build: .
ports:
- "80:80"

View File

@@ -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/

View File

@@ -0,0 +1,4 @@
web:
build: .
ports:
- "80:80"

View File

@@ -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

View File

@@ -1,8 +0,0 @@
#!/bin/bash
while true
do
echo "<?php" > option.php
echo "\$option='xxx';" >> option.php
echo "?>" >> option.php
sleep 5m
done

View File

@@ -1,4 +0,0 @@
#!/bin/bash
service apache2 start
/var/www/html/shell.sh
/bin/bash

View File

@@ -0,0 +1,4 @@
web:
build: .
ports:
- "80:80"

View File

@@ -1,4 +0,0 @@
#!/bin/bash
service apache2 start
/var/www/html/shell.sh
/bin/bash

View File

@@ -0,0 +1,4 @@
web:
build: .
ports:
- "80:80"

View File

@@ -1,5 +1,3 @@
FROM imagine10255/centos6-lnmp-php56
COPY /code /var/www/html/
RUN chmod 751 /var/www/html/start.sh

View File

@@ -1,4 +0,0 @@
#!/bin/bash
service nginx stop
service httpd start
/bin/bash

View File

@@ -0,0 +1,4 @@
web:
build: .
ports:
- "80:80"