bash

2 articles tagged as bash

Here’s some WordPress SQL queries and bash stuff that have helped me out in the past! If you have any questions or suggestions/improvements let me know Reset Admin Password UPDATE wp_users SET user_pass=MD5(‘newpassword123’) WHERE ID = 1; Check WordPress Version

Read more →

#!/bin/bash #ARG 1 – Username if [ $# = 1 ]; then { randpass() { [ “$2” == “0” ] && CHAR=”[:alnum:]” || CHAR=”[:graph:]” cat /dev/urandom | tr -cd “$CHAR” | head -c 15 echo } pass=$(randpass 15 0) Q1=”CREATE …

Read more →