Skip to content

Commit

Permalink
Merge pull request #27 from secureworks/commandline-module
Browse files Browse the repository at this point in the history
Commandline module
  • Loading branch information
whartond authored Mar 9, 2021
2 parents 8879c69 + 86420a1 commit de58ed4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ The Model class function `build()` executes flowsynth and the class constructor

*Note:* Because of the current less-than-ideal use of global variables instead of class variables, if more than one Model object is used concurrently, there will be issues. Hopefully this limitation will be remedied in a future release.

If the module is installed, Flowsynth can be invoked from the command line and run like a script, e.g.:

python3 -m flowsynth -f pcap -w out.pcap my.synth

## How it works ##

Flowsynth uses a syntax language to describe network flows. The syntax language is made up of individual *instructions* that are parsed by the application and are grouped into *events*, which are a logical representation of the *instructions* in the network domain. After all *instructions* have been parsed, the *events* are iterated over and converted into *packets*, which are the real-world representation of the traffic on the wire.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

setup(
name="flowsynth",
version="1.4.0",
version="1.4.1",
author="Will Urbanski",
maintainer="David Wharton",
maintainer_email="counterthreatunit@users.noreply.github.com",
maintainer_email="whartond@users.noreply.github.com",
description="Flowsynth is a tool for rapidly modeling network traffic. Flowsynth can be used to generate text-based hexdumps of packets as well as native libpcap format packet captures.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 2 additions & 0 deletions src/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .flowsynth import main
main()
2 changes: 1 addition & 1 deletion src/flowsynth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from scapy.all import Ether, IP, IPv6, TCP, UDP, RandMAC, hexdump, wrpcap, Raw

#global variables
APP_VERSION_STRING = "1.4.0"
APP_VERSION_STRING = "1.4.1"
# Define the standard version indicator.
__version__ = APP_VERSION_STRING
LOGGING_LEVEL = logging.INFO
Expand Down

0 comments on commit de58ed4

Please sign in to comment.