Pugna Posted February 5, 2012 Report Posted February 5, 2012 (edited) Updating Edited February 7, 2012 by Pugna Quote
pyth0n3 Posted February 5, 2012 Report Posted February 5, 2012 Daca vrei sa folosesti sintaxa asta sshpass -p [COLOR="#FF0000"]'$pass'[/COLOR] ssh $user@$host -o StrictHostKeyChecking=no -N -D 127.0.0.1:8899 & Va trebui sa scoti ghilimelele de la variabila $passAsta este sintaxa corecta de altfel clientul nu va autentifica userul cu parolasshpass -p [COLOR="#00FF00"]$pass[/COLOR] ssh $user@$host -o StrictHostKeyChecking=no -N -D 127.0.0.1:8899 &Urmatoare sintaxa va functiona intotdeauna daca userul nu are o restrictie de shellsshpass -p $pass ssh $user@$hosti "echo 2>&1" && echo "OK" || echo "KO" Quote
backdoor Posted February 8, 2012 Report Posted February 8, 2012 Da foarte dragut utilitarul , singura problema este ca ... eu nu mi-as lasa clear password in niste scripturi pe server , mai ales ca parolele sunt de la alte remote hosts.... Oricum bine de tinut minte.... Quote