Skip to content

Instantly share code, notes, and snippets.

View daguy666's full-sized avatar
🏠
Working from home

Joey Pistone daguy666

🏠
Working from home
View GitHub Profile

Lock fun

Assuming you have read this tweet from lemiorhan talking about how to get the root bypass.

After doing the above you are set with a root account with no password. If your remote access settings allow for "All Users" then root can access with no password.

If you enter a new a password on the account and disable it, you can bypass all of that by starting the entire workflow over. Click the lock and enter root and leave the password blank. It will overwrite what you originally had set.

#!/bin/bash
#Suspends user account. I added a "are you sure" option just in case
#########################
gam="/path/to/gam/gam.py"
GAM_USER=$1
if [ -z $GAM_USER ];
then
~/gam$ python gam.py create user {username} firstname {firstname} lastname {lastname} password {password}
@daguy666
daguy666 / vitals.sh
Last active December 17, 2015 18:09
Raspberry Pi System Information
#!/bin/bash
#This will get you some system info
#Built using Raspbian Wheezy
#sleep for dramatic effect
echo "Current System Status"
sleep 1
echo "Cpu Temp:"
/opt/vc/bin/vcgencmd measure_temp
sleep 1
echo "System Uptime:"