diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-05 09:10:04 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-06-05 09:10:04 +0200 |
commit | 08a59db8a54bcdeb6430584b26e54adb1766e0eb (patch) | |
tree | f016082fcce81fbca365fec9f9cea1a5d48e8d59 /gg_map | |
parent | gg_map: option to specify glougloud server ip / port (diff) | |
download | glouglou-08a59db8a54bcdeb6430584b26e54adb1766e0eb.tar.xz glouglou-08a59db8a54bcdeb6430584b26e54adb1766e0eb.zip |
glouglou_localsniff: move to gg_map
Diffstat (limited to 'gg_map')
-rwxr-xr-x | gg_map/glouglou_localsniff.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gg_map/glouglou_localsniff.sh b/gg_map/glouglou_localsniff.sh new file mode 100755 index 0000000..75d9cdd --- /dev/null +++ b/gg_map/glouglou_localsniff.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Wrapper script to visualize network activity on local machine + +PATH="./:$PATH" # for pkg + +glougloud=`which glougloud` +gg_sniff=`which gg_sniff` +gg_map=`which gg_map` +iface=${1-"eth0"} + +if [ -z "$glougloud" -o -z "$gg_sniff" -o -z "$gg_map" ]; then + echo "instalation incomplete (glougloud, gg_sniff, gg_map)" + exit 1 +fi + +tmux start \;\ + new-session -d -s glouglou \;\ + neww -n "glougloud" "sudo $glougloud -v; bash" \;\ + neww -n "gg_sniff" "sudo $gg_sniff -v -i $iface" \;\ + neww -n "gg_map" "gg_map" \;\ + attach-session -t glouglou + |