2 filed fast online check zsh/bash chaos comandFOO/fortune script

---

https://hastebin.com/ocabazobum.bash

in die .zshrc

ip=127.0.0.1;
port=8888;
bash ~/srv_up_b.sh $ip $port;
RETVAL=$(bash ~/srv_up_b.sh $ip $port);
[ $RETVAL -eq 1 ] && {
#echo “commandLINEfu raDNOM:”;
time proxychains wget -qO- http://www.commandlinefu.com/commands/random/plaintext
#; | sed 1,2d | sed 3,4d
}
[ $RETVAL -eq 0 ] && {

ip=heise.de;
port=443;
RETVAL=$(bash ~/srv_up_b.sh $ip $port);
[ $RETVAL -eq 1 ] && {
time wget -qO- http://www.commandlinefu.com/commands/random/plaintext
}
[ $RETVAL -eq 0 ] && {
time fortune;
}
}

in die ~/srv_up_b.sh

declare -A SERVER
# SERVER[“NAME – Description”]=”IP KNOWNPORT”
SERVER[“SERVER1 – Client foo”]=”$1 $2″
# …
# add as many server/port combinations as you’d like

NMAP_MAX_RETRIES=10

# printf “========================= ========================= ========== ==========\n”
# printf “%25s %25s %10s %10s\n” “Host Description” “IP” “Port” “Status”
# printf “========================= ========================= ========== ==========\n”

for server in “${!SERVER[@]}”; do
set — ${SERVER[“$server”]}
eval nmap \$1 -p \$2 –max-retries $NMAP_MAX_RETRIES | grep -q open
if [ “$?” == “0” ]; then
STATUS=”1″
else
STATUS=”0″
fi
# printf “%25s %25s %10s %10s\n” “$server” “$1” “$2” “$STATUS”

done
echo $STATUS

##################################################

 

Dazu sei gesagt das die Verbindung zu dem REchner mit Inter auf 8888 des lokalen Rechner reported sein müssen…

zb ssh -XCD name @internet.rechner.ip

!!!!!

chmod +x ./srv_up_b.sh

http://fevermind.tx0https://hastebin.com/sozagenu.org/

https://hastebin.com/ocabazobum.bash

^^^^ sogar mit comiCScriptStyLE

2 filed fast online check zsh/bash chaos comandFOO/fortune script

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>