mailer

来自「unix密码破解软件John the Ripper」· 代码 · 共 42 行

TXT
42
字号
#!/bin/sh## This file is part of John the Ripper password cracker,# Copyright (c) 1996-98 by Solar Designer#if [ $# -ne 1 ]; then	echo "Usage: $0 PASSWORD-FILE"	exit 0fi# There's no need to mail users with these shellsSHELLS=-,/bin/false,/dev/null,/bin/sync# Look for John in the same directory with this scriptDIR="`echo "$0" | sed 's,/[^/]*$,,'`"# Let's start$DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' |(	SENT=0	while read LOGIN; do		echo Sending mail to "$LOGIN"...# You'll probably want to edit the message below		mail -s 'Bad password' "$LOGIN" << EOFHello!Your password for account "$LOGIN" is insecure. Please change it as soonas possible.Yours,	Password Checking Robot.EOF		SENT=$(($SENT+1))	done	echo $SENT messages sent)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?