mirror of
https://github.com/bvanroll/college-pentesting.git
synced 2025-08-29 20:12:41 +00:00
i think i almost have the default pass, i have to understand one more function
This commit is contained in:
18
verb/fs.sbin/chpasswd.sh
Executable file
18
verb/fs.sbin/chpasswd.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: chpasswd.sh, v1.01 2015-03-24 steven
|
||||
#
|
||||
# usage: chpasswd.sh
|
||||
#
|
||||
|
||||
user=`nvram_get 2860 AdminID`
|
||||
pass=`nvram_get 2860 AdminPassword`
|
||||
|
||||
if [ "$user" == "" ]; then
|
||||
echo "chpasswd: no user name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "$user:$pass" > /tmp/tmpchpw
|
||||
chpasswd < /tmp/tmpchpw
|
||||
rm -f /tmp/tmpchpw
|
Reference in New Issue
Block a user