Giter Club home page Giter Club logo

lnadlse's Introduction

Lightweight-network-attack-and-defense-learning-simulation-environment

輕便化之網路攻防學習模擬環境

OS:Linux Ubuntu Desktop. ELK version:8.2.0

  1. OS environment
sudo apt update 
sudo apt install -y git vim make docker.io docker-compose python3 curl
sudo usermod -aG docker $USER && newgrp docker
  1. install
  • Clone project
git clone https://github.com/guan4tou2/Lnadlse.git
cd Lnadlse
  • Data-process-module install
cd ELK
make

After above command,you can use make check to check is elasticsearch successful install and running.
If you get curl: (56) Recv failure: Connection reset by peer,restart terminal and try chech again.
If your kibana get error,it may be server.publicBaseUrl,you can try replace url elasticsearch to your ELK host ip in kibana/config/kibana.yml. And restart it docker restart docker-elk_kibana.
If you need api key,you can use make apikey to set it.

  • Attack-and-Defense-module install
cd Machines
make

Before make,you can change attacker's username and password in makefile.
It will build attack-and-defense-environment by default.Attacker is kali(GUI),Targeter is httpd with packetbeat.
You can change machines by make.py.
Use python3 make.py -h to see what machines can used.

  • aider-module install
docker pull portainer/portainer
docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Portainer can help you to manage your docker container.
It's not necessarily to install,but recommended.

  1. Useage
  • Data-process-module
    Use kibana with http://localhost:5601
    username: elastic
    password: changeme
    You can change password after you installed Data-process-module,find the file named .env,And use make start.
  • Attack-and-Defense-module
    Use ssh or rdp to connect attacker

username: kali
password: kali
In attacker,if you want more tools,sudo apt install -y <kali-linux-default> or <kali-linux-large>.

  1. Remove
  • Data-process-module
cd ELK
make remove
  • Attack-and-Defense-module
cd Machines
make remove
  • aider-module
docker stop portainer

lnadlse's People

Contributors

guan4tou2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.