Projects STRLCPY PEASS-ng Commits 0a41095a
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    linPEAS/builder/linpeas_parts/6_software_information.sh
    skipped 42 lines
    43 43   
    44 44  #-- SI) Mysql version
    45 45  if [ "$(command -v mysql)" ] || [ "$(command -v mysqladmin)" ] || [ "$DEBUG" ]; then
    46  - print_2title "MySQL version"
     46 + print_2title "MySQL"
    47 47   mysql --version 2>/dev/null || echo_not_found "mysql"
     48 + mysqluser=$(systemctl status mysql 2>/dev/null | grep -o ".\{0,0\}user.\{0,50\}" | cut -d '=' -f2 | cut -d ' ' -f1)
     49 + if [ "$mysqluser" ]; then
     50 + echo "MySQL user: $mysqluser" | sed -${E} "s,$sh_usrs,${SED_LIGHT_CYAN}," | sed -${E} "s,$nosh_usrs,${SED_BLUE}," | sed -${E} "s,$knw_usrs,${SED_GREEN}," | sed "s,$USER,${SED_LIGHT_MAGENTA}," | sed "s,root,${SED_RED},"
     51 + fi
    48 52   echo ""
    49 53   
    50 54   #-- SI) Mysql connection root/root
    skipped 602 lines
Please wait...
Page is in error, reload to recover