Code Monkey home page Code Monkey logo

bomber-server's Introduction

About project

Project's aim is interesting highload testing with different protocols, easy deployment and gamification of working process.

We have modules to perform attacks

Modules of web in react

And module of web-server

Build and Run executable

1 Run command

gradle build

2 Go to ./api/build/libs/

3 Run

java -jar name.jar

Run

1 run docker image of postgres docker run

docker run -it -d --name test postgres

2 create in postgres console a database with name - bomber

psql -U postgres
CREATE DATABASE bomber

3 run docker image of arangodb, expose ports to localhost

docker run -it -d -p 8529:8529 --name arango -e ARANGO_RANDOM_ROOT_PASSWORD=0 -e ARANGO_NO_AUTH=1 arangodb

About current version

Now we need to support rest in different modules of our project.

Technologies

Arangodb [https://github.com/arangodb/arangodb]

SpringBoot [https://github.com/spring-projects/spring-boot]

Kotlin [https://github.com/JetBrains/kotlin]

bomber-server's People

Contributors

kostya05983 avatar kubitre avatar

Watchers

James Cloos avatar

bomber-server's Issues

API for scripts

our script looks something like this, we have random parameters for protocols, but some of this parameters are used in each protocol.
{
"protocol": "http", //this defines different params, it is used for gui, bomber doesn't know about this param
"attack-address": "localhost:7070", //mandatory param for any bomber
"server-address": "localhost:8080", //mandatory param for any bomber
"buffer-size": 100, //mandatory param for any bomber
"time-between-attacks": 1000, //mandatory param for any bomber
"amount-attacks": 100, //mandatory param for any bomber
"id_of_scheme_file": "blabla", //mandatory param for any bomber
"application-type": "application/json" //parameter of http protocol
}

Scheme jsonValidator

Create enum of generator's name. Next with reflection and recursion check scheme from gui, before saving.

Create arango db pool

We use arangodb to save scenarrous, we need a pool of connection to use this in our dao.

Devices-api

Create API for crud devices
{
"key": "bla",
"ip": "sdf",
"name": "device1"
}

Work with update

Необходимо доделать обновление схемы и script-а.

API for start attack

Route it will get a parameter of script to start attack, next realize algorithm to start attack. Now we realize it without a bus of data, use abstractions.

Done with form

Надо доделать формирование самого теста от и до, от выбора конкретной схемы и до отправки на девайсы.

Change SchemaDto

Сейчас схема выглядит вот так:

data class RestSchemaDTO(
    val id: String,
    val pathVariables: Map<String, String>,
    val headers: Map<String, String>,
    val requestParams: List<RequestParamDTO>,
    val body: List<BodyParamDTO>
) : SchemaDTO()

Надо поменять на вот это

data class RestSchemaDTO(
    val id: String,
    val pathVariables: Map<String, String>,
    val headers: Map<String, String>,
    val requestParams: List<RequestParamDTO>,
    val body: String
) : SchemaDTO()

Extend CreateResultRequest

Надо расширить запрос с результами, добавить метрики, саму информацию о запросах, как они прошли и т.д

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.