[INIT] - add client & server
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
cd $(dirname $0)/conf-client/
|
||||
|
||||
SondeFile=$(pwd)/sonde.cfg
|
||||
source service.cfg
|
||||
|
||||
|
||||
while read DATA
|
||||
do
|
||||
Cmd=$(echo $DATA| cut -d"#" -f1)
|
||||
Arg=$(echo $DATA| cut -d"#" -f2)
|
||||
Res=$(echo -e "${Cmd}#${Arg}" | timeout 0.1 cryptcat -k ${LocalPassword} ${RemoteIp} ${RemotePort} 2> /dev/null)
|
||||
if [[ -z $Res ]]
|
||||
then
|
||||
echo "5|No sonde $Cmd on serveur $RemoteIp"
|
||||
else
|
||||
echo "$Res"
|
||||
fi
|
||||
done < ${SondeFile}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
RemoteIp=127.0.0.1
|
||||
RemotePort=8080
|
||||
LocalPassword='Evil@MonitoR-666'
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
file#/tmp/coucou
|
||||
file#/tmp/nop
|
||||
file#
|
||||
tamere#reboot
|
||||
Reference in New Issue
Block a user