Git Product home page Git Product logo

trex-packet-editor's Introduction

TRex Packet editor Build Status

Network packet editor GUI for TRex.

Quickstart

# Run scapy server
./scripts/run_scapy_server &

# Run all tests, including headless UI tests (optional) 
./gradlew -Pheadless test intTest uiTest

# Run application
./gradlew run

Run integration and UI tests

make sure the Scapy server is started. see ./scripts/run_scapy_server helper script you can also specify external server with an environment variable export SCAPY_SERVER=localhost:4507

./gradlew intTest uiTest
# or run tests in headless mode
./gradlew -Pheadless intTest uiTest
# to see test reports:
# open ./build/reports/tests/index.html

Howto

Install to the local Maven repository
./gradlew install
Build standalone jar file

this builds standalone jar file for UI. scapy_service is not included. jar is located in ./build/libs/TRexPacketCraftingTool.jar

./gradlew jar
Build pom
./gradlew createPom
Build package/installer

see https://github.com/FibreFoX/javafx-gradle-plugin#gradle-tasks for more options

./gradlew jfxNative
Run scapy_server with python3

PYTHON=python3 ./scripts/run_scapy_server -v --scapy-port 4507

Enable Debug logging for packed editor UI

enable logging in gradle by specifying -PpacketEditorLogger(gradle -PpacketEditorLogger <your command>) also you may need to create logging.properties(see sl4j, logback documentation)

cat <<ENDL > logging.properties
handlers= java.util.logging.ConsoleHandler
.level= DEBUG
ENDL
Remove logging library from jar
gradle -Prelease jar

trex-packet-editor's People

Contributors

hedjuo avatar kisel avatar igrche avatar egorblagov avatar sergey-ivashin 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.