From b0cae796314f7c0ceda3d44f0fa74e55acd21b8b Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Mon, 24 Oct 2011 18:05:36 +0000 Subject: - add screen - add dropbear - add etc/shells - add script that set password and start ssh server --- rescue/genpasswd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 rescue/genpasswd (limited to 'rescue/genpasswd') diff --git a/rescue/genpasswd b/rescue/genpasswd new file mode 100755 index 000000000..328ced265 --- /dev/null +++ b/rescue/genpasswd @@ -0,0 +1,10 @@ +#!/usr/bin/perl + +system "stty -echo"; +print STDERR "Give a password: "; +chomp($word = ); +print STDERR "\n"; +system "stty echo"; + +print crypt($word, join('', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64])); +print "\n"; -- cgit v1.2.1