Terminai: Difference between revisions

From Futuragora Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Codename: terminai==
==Codename: terminai==


Servidor: dev.futuragora.pt
Servidor: futuragora.pt


IP: 188...
O terminai é um sistema integrado de monitorização e controle informático dos sistemas da futuragora. Permite para além de monitorização, activar e automatizar processos actualmente manuais. Escrito em bash e linguagens de programação bash, python, java, php, mysql entre outras.


Servicos:  
Metodo de programacao: GIT *falta criar o git


SSH Net: 62323


SSH VPN: 2323
Acessos:  


Web SSH: 4200 *shell in a box*
Web SSH: 4200 *shell in a box*
Linguagens de programação bash, python, java
Metodo de programacao: GIT *falta criar o git
Acesso directo: ssh terminai@dev.futuragora.pt -p 62323


Acesso web: http://dev.futuragora.pt:4200
Acesso web: http://dev.futuragora.pt:4200


O terminai é um sistema integrado de monitorização e controle informático dos sistemas da futuragora. Permite para além de monitorização, activar e automatizar processos actualmente manuais.
==Colaboração==
 
 
Colaboração
 
ambiente screen:
 
Ligar: terminai@dev.futuragora.pt -p 62323 ou (secured) ssh terminai@10.7.0.6 -p 2323


Entrar no screen: screen -x terminaiedit #modo de edicao colaborativa
Ambiente screen:


Entrar no screen: screen -x terminai


TERMINAI SERVER
TERMINAI SERVER
Line 55: Line 42:
TERMINAI APP
TERMINAI APP


    
<pre>    
   
Script Design: *actualizar
Script Design: *actualizar
1) Help
1) Help
Line 68: Line 54:
9) Webadmin
9) Webadmin
10)  Junior
10)  Junior
</pre>


Files
==Files==
 
<pre>
hi.mp3             
hi.mp3             
svn-commit.4.tmp     
svn-commit.4.tmp     
Line 109: Line 96:
venusa.sh     
venusa.sh     
wikisearch.sh
wikisearch.sh
 
</pre>
.
.


Line 117: Line 104:
elif [ "$options" = "telehack" ]; then        echo "Escolheu a option $options"echo "Connecting to telehack.com ..........."sleep 3      telnet telehack.com
elif [ "$options" = "telehack" ]; then        echo "Escolheu a option $options"echo "Connecting to telehack.com ..........."sleep 3      telnet telehack.com


[[Category:Projectos Futuragora]]


echo "ping 10.7.0.1:"       
==Venus AIML no Terminai==
ping -v -b -w 1 10.7.0.1
echo "ping 10.7.0.4:"       
ping -v -b -w 1 10.7.0.4
echo "ping 10.7.0.6:"   
ping -v -b -w 1 10.7.0.6 
echo "ping 10.7.0.8:"   
ping -v -b -w 1 10.7.0.8   
echo "ping 10.7.0.10:"   
ping -v -b -w 1 10.7.0.10   
echo "ping 10.7.0.12:"   
ping -v -b -w 1 10.7.0.12   
echo "ping 10.7.0.14:"   
ping -v -b -w 1 10.7.0.14
echo "ping 10.7.0.16:"       
ping -v -b -w 1 10.7.0.16
echo "ping 10.7.0.18:"   
ping -v -b -w 1 10.7.0.18 
echo "ping 10.7.0.20:"   
ping -v -b -w 1 10.7.0.20   
echo "ping 10.7.0.22:"   
ping -v -b -w 1 10.7.0.22   
echo "ping 10.7.0.24:"   
ping -v -b -w 1 10.7.0.24   
echo "ping 10.7.0.26:"   
ping -v -b -w 1 10.7.0.26
echo "ping 10.7.0.28:"       
ping -v -b -w 1 10.7.0.28
echo "ping 10.7.0.30:"   
ping -v -b -w 1 10.7.0.30


nmap -sS -sU -T4 -A -v -PE -PP -PS80,443 -PA3389 -PU40125 -PY -g 53 --script "default or (discovery and safe)"
https://upload.wikimedia.org/wikipedia/commons/5/51/Nrol-39.jpg


[[Category:Projectos Futuragora]]
<pre>
#!/bin/bash
# venus.sh google search before venus.
echo "Venus Virtual Assistant v 0.1.2 (teste PT)"
while :
do echo -n "User: "  #get user input
read text
command=${text%% *} gquery=${text#* }
search="procura"
echo -n "Venus: "
if [ $command  == $search ] # split user input on function reply or search
then
echo "Google Top10 Results:"
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
else
reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) #get chatbot response
echo $reply
fi
done
</pre>
 
#!/bin/bash
## This program is intended to be a terminal virtual assistant with
## text to speech, websearch and automation function. It is based on
##
echo "Venus Virtual Assistant v 0.1.2"
 
## SALUTATION
echo -n "Venus: "
hi=$(curl -s -d "botid=Venus&text=oi" http://dev.futuragora.pt:2001)
echo $hi
wget -q -U Mozilla -O ./hi.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${hi}"
mplayer -quiet hi.mp3 > /dev/null 2>&1
 
## LOOP
while :
do echo -n "User: "  #get user input
read text
command=${text%% *} gquery=${text#* }
search="procura"
echo -n "Venus: "
if [ $command  == $search ] # split user input on function reply or search
then
echo "Google Top10 Results:"
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
else
reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) #get chatbot response
echo $reply
wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}"
mplayer -quiet output.mp3 > /dev/null 2>&1 # audio output
fi
done
 
 
 
 
"Venus Virtual Assistant"
while :
do echo -n "User: "
read text
command=${text%% *} gquery=${text#* }
search="procura"
 
if [ $command  == $search ]
then
echo match
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
fi
 
echo -n "Venus: "
reply=$(curl -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001)
echo ""
echo $reply
wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}"
mplayer -quiet output.mp3 > /dev/null 2>&1
done
 
---------------------------------------------------------------------------------------------
Venus falante com procura (LOCAL)
 
#!/bin/bash
echo "Venus Virtual Assistant"
while :
do echo -n "User: "
read text
command=${text%% *} gquery=${text#* }
search="procura"
if [ $command  == $search ]
then
echo match
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
else
echo -n "Venus: "
reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001)
echo ""
echo $reply
wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}"
mplayer -quiet output.mp3 > /dev/null 2>&1
 
fi
done
 
venus com procura server
 
#!/bin/bash
echo "Venus Virtual Assistant Server"
while :
do echo -n "User: "
read text
command=${text%% *} gquery=${text#* }
search="procura"
if [ $command  == $search ]
then
echo match
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
else
echo -n "Venus: "
reply=$(curl -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001)
echo ""
echo $reply
fi
done
</pre>

Latest revision as of 03:01, 27 February 2019

Codename: terminai

Servidor: futuragora.pt

O terminai é um sistema integrado de monitorização e controle informático dos sistemas da futuragora. Permite para além de monitorização, activar e automatizar processos actualmente manuais. Escrito em bash e linguagens de programação bash, python, java, php, mysql entre outras.

Metodo de programacao: GIT *falta criar o git


Acessos:

Web SSH: 4200 *shell in a box*

Acesso web: http://dev.futuragora.pt:4200

Colaboração

Ambiente screen:

Entrar no screen: screen -x terminai

TERMINAI SERVER

Menu A 1) help 2) quit 3) venus 4) futuragora 5) web 6) tools 7) webadmin

Menu B - futuragora

Menu C - web

Menu D - tools

Menu E - webadmin


TERMINAI APP

    
Script Design: *actualizar
1) Help
2) Quit
3) BioRio > ./biorio.sh
4) Venus > venusdev.sh
5) Telehack >
6) Web >
7) Games > ./games.sh
8) System Tools >
9) Webadmin
10)  Junior

Files

 
hi.mp3             
svn-commit.4.tmp    
venusdev.shbiorio.sh     
kill9.sh           
svn-commit.5.tmp   
venus-falante.shcalc.sh       
myip.sh            
svn-commit.tmp      
venusg1.shdev.sh        
mylocation.sh      
terminai_server.sh  
venusgdev.shdig.sh        
output.mp3         
terminai.sh      
venusg.sh
games     
ping.sh   
timer.sh       
venus.sh
games.sh  
README.txt
tools.sh
vpn.sh
gg.sh
scan.sh   
top.sh      
webadmin.sh
google.sh 
server_monitor.sh
traceroute.sh
web.shgtop10.sh
svn-commit.2.tmp
tts_local.sh
whois.sh
hawkings.sh 
svn-commit.3.tmp 
venusa.sh     
wikisearch.sh

.

elif [ "$options" = "biorio" ]; then echo "Escolheu a option $options" ./biorio.sh


elif [ "$options" = "telehack" ]; then echo "Escolheu a option $options"echo "Connecting to telehack.com ..........."sleep 3 telnet telehack.com

Venus AIML no Terminai

#!/bin/bash
# venus.sh google search before venus.
echo "Venus Virtual Assistant v 0.1.2 (teste PT)"
while : 
do echo -n "User: "  #get user input
read text
command=${text%% *} gquery=${text#* }
search="procura"
echo -n "Venus: "
if [ $command  == $search ] # split user input on function reply or search
then
echo "Google Top10 Results:"
GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
else
reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) #get chatbot response
echo $reply
fi
done
  1. !/bin/bash
    1. This program is intended to be a terminal virtual assistant with
    2. text to speech, websearch and automation function. It is based on

echo "Venus Virtual Assistant v 0.1.2"

    1. SALUTATION

echo -n "Venus: " hi=$(curl -s -d "botid=Venus&text=oi" http://dev.futuragora.pt:2001) echo $hi wget -q -U Mozilla -O ./hi.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${hi}" mplayer -quiet hi.mp3 > /dev/null 2>&1

    1. LOOP

while : do echo -n "User: " #get user input read text command=${text%% *} gquery=${text#* } search="procura" echo -n "Venus: " if [ $command == $search ] # split user input on function reply or search then echo "Google Top10 Results:" GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}" else reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) #get chatbot response echo $reply wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}" mplayer -quiet output.mp3 > /dev/null 2>&1 # audio output fi done



"Venus Virtual Assistant"

while : do echo -n "User: " read text

command=${text%% *} gquery=${text#* } search="procura"

if [ $command == $search ] then echo match GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}" fi

echo -n "Venus: " reply=$(curl -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) echo "" echo $reply wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}" mplayer -quiet output.mp3 > /dev/null 2>&1 done


Venus falante com procura (LOCAL)

  1. !/bin/bash

echo "Venus Virtual Assistant" while : do echo -n "User: " read text command=${text%% *} gquery=${text#* } search="procura" if [ $command == $search ] then echo match GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}" else echo -n "Venus: " reply=$(curl -s -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) echo "" echo $reply wget -q -U Mozilla -O ./output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=pt&q=${reply}" mplayer -quiet output.mp3 > /dev/null 2>&1

fi done

venus com procura server

  1. !/bin/bash

echo "Venus Virtual Assistant Server" while : do echo -n "User: " read text command=${text%% *} gquery=${text#* } search="procura" if [ $command == $search ] then echo match GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${gquery/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}" else echo -n "Venus: " reply=$(curl -d "botid=Venus&text=${text}" http://dev.futuragora.pt:2001) echo "" echo $reply fi done