diff --git a/README.md b/README.md index 37fa0cf..2e3433b 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ LocalPassword can be used if you chose Crypted=yes (process is slow) Crypted=no (use netcat or cryptcat) Rotation is the time between the ratation of all sonde WebPort is the port to see the result on the web interfaces : http://127.0.0.1:PORT +TimeOut is the number of second before the interrogation failed ``` diff --git a/client/conf-client/exec.sh b/client/conf-client/exec.sh index 2622eaf..f9c2f99 100755 --- a/client/conf-client/exec.sh +++ b/client/conf-client/exec.sh @@ -7,7 +7,7 @@ SondeFile=$(pwd)/sonde.cfg source service.cfg source functions -[[ "${Crypted}" == "yes" ]] && NcCmd="timeout 0.1 cryptcat -k ${LocalPassword} ${RemoteIp} ${RemotePort} " || NcCmd="timeout 0.1 nc ${RemoteIp} ${RemotePort}" +[[ "${Crypted}" == "yes" ]] && NcCmd="timeout ${TimeOut} cryptcat -k ${LocalPassword} ${RemoteIp} ${RemotePort} " || NcCmd="timeout ${TimeOut} nc ${RemoteIp} ${RemotePort}" while read DATA diff --git a/client/conf-client/service.cfg b/client/conf-client/service.cfg index c184160..a679022 100644 --- a/client/conf-client/service.cfg +++ b/client/conf-client/service.cfg @@ -1,8 +1,9 @@ -RemoteIp=127.0.0.1 -RemotePort=8080 +RemoteIp=192.168.0.22 +RemotePort=8990 LocalPassword='Evil@MonitoR-666' Crypted=no Rotation=1 +TimeOut=2 WebPort=8888