summaryrefslogtreecommitdiff
path: root/scripts/subseg.sh
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-08-19 20:47:05 -0500
committerepochqwert <epoch@hacking.allowed.org>2015-08-19 20:47:05 -0500
commit9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1 (patch)
tree3a8fe9be12ee7088de99d2bb98e828cd472ff8e3 /scripts/subseg.sh
parent3cb90cc19cc95bcea41845de4555e79bdd34b161 (diff)
downloadsegfault_home-9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1.tar.gz
segfault_home-9135ec02b8eff4cf4c0d6dbcb54346b3f508a6f1.zip
save point.
Diffstat (limited to 'scripts/subseg.sh')
-rwxr-xr-xscripts/subseg.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/subseg.sh b/scripts/subseg.sh
new file mode 100755
index 0000000..27ba0e1
--- /dev/null
+++ b/scripts/subseg.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+if [ "_$1" == "_" ];then
+ echo '!say usage: !subseg server port'
+ echo '!say No SSL support yet. open an ssl tunnel yourself. :P'
+ exit 1
+else
+ export segserver=$1
+fi
+if [ "_$2" == "_" ];then
+ export segport=6667
+else
+ export segport=$2
+fi
+if [ "_$3" == "_" ];then
+ export 'segchan=#default'
+else
+ export "segchan=$3"
+fi
+export seghome=/home/segfault/subseg/$$
+mkdir -p $seghome
+mkdir $seghome/scripts
+echo '!rawrecord 1' >> $seghome/scripts/prestartup
+echo '!nick subseg' >> $seghome/scripts/prestartup
+echo '!raw user ss ss ss :ss' >> $seghome/scripts/prestartup
+
+echo '!raw join '"$segchan" >> $seghome/scripts/startup
+echo '!leettail 02'"$segchan"':'$seghome/files/eval_in >> $seghome/scripts/startup
+mkdir -p $seghome/files
+touch $seghome/files/eval_in
+touch $seghome/files/rawlog
+echo '!say check it. tailing in 5 seconds...'$$
+segfault 2>&1 >/dev/null &
+sleep 5
+echo '!leettail 08#cmd:'$seghome/files/rawlog
+echo '!alias !tellsub'$$' !leetappend '$seghome'/files/eval_in 10 %s'