HTTP/HTTPS/websocket/tcp
Debugging Proxy
Replay attack
Security testing
中文
Mloger is a security testing platform developed on top of mitmproxy. It's a lightweight version of mloger used by MOMO internal security team. Compared to burp, this also supports socks5 proxy for TCP protocol, TCP protocol is commonly used in scenarios such as instant messaging and gaming. The functions of debugging proxy and replay for HTTP/HTTPS protocol are the same compared to burp.
This project is developed on python3.8 environment
Front-end | Back-end | Database | Proxy |
---|---|---|---|
vue2 | Flask | mongodb、redis | mitmproxy |
- Create a database directory for persistent data storage
Changing the directory requires modifying thedocker-comemess.yml
synchronously.
mkdir /tmp/mongo
mkdir /tmp/redis
- Start the docker
docker-compose up
After modifying the front-end source code, you need to build it. If no modification is made, skip it.
cd front
npm install
npm run build
- Installing mongodb and redis
- Make sure you have config the password for redis when installation
- Creeate a database for users after the installation for mongodb
use mloger
db.createUser({user:"mloger",pwd:"mloger_pwd",roles:[{"role":"readWrite","db":"mloger"}]})
- Clone the project and install dependencies for the application
cd server
pip3 install -r requirements.txt
- Database configuration
-
You will need to config the parameters including host, port, user, password, and the name of the database in the config file
server/db/mongo_db.py
for MongoDB. -
You will also need to config the parameters including host, port, user, and password of the database in the config file
server/db/redis_db.py
for Redis. -
Add system environment variables for the database configs by
echo "export PROJECT_ENV=local" >> ~/.bash_profile
in order to use. -
Create an Index for mongodb
mongo mongodb://mloger:mloger_pwd@localhost:27017/mloger server/db/mongo_create_indexes.js
- Proxy config [Optional]
You can check the configs for HTTP, socks, and port inserver/config/config.ini
and make sure the port is not currently used. - Starting the back-end
python3 app.py
You should be able to access the web page with IP:8000 if successful.
Reference to User Guide。
陌陌安全致力于以务实的工作保障陌陌旗下所有产品及亿万用户的信息安全,以开放的心态拥抱信息安全机构、团队与个人之间的共赢协作,以自由的氛围和丰富的资源支撑优秀同学的个人发展与职业成长。
MOMO Security Emergency Response Center:https://security.immomo.com