Skip to content

Commit

Permalink
bash script to find users who have not changed their passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest authored and Guest committed Nov 7, 2015
1 parent b951742 commit bdcbe53
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions find_pass.bash
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/bin/bash
touch nochange.list
echo "create"
for i in `cat roll.list`
do
bash forti_login ${i} ${i} | grep "Logged in."
echo "start"
echo ${i}
bash forti_login ${i} "nitc1234" | grep "Logged in."
if [ $? -eq 0 ]; then
echo "s"
echo ${i} >> nochange.list
else
echo "trying roll number ${i}"
echo "f"
fi
echo "next"
done
echo "end"

0 comments on commit bdcbe53

Please sign in to comment.