🤬
  • search for group password hashes in /etc/group

    also check whether gshadow is readable
  • Loading...
  • exploide committed 4 years ago
    f5440170
    1 parent 996faed9
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    lse.sh
    skipped 737 lines
    738 738   "Does the /etc/passwd have hashes?" \
    739 739   'grep -v "^[^:]*:[x]" /etc/passwd'
    740 740   
     741 + #check if /etc/group has group password hashes (old system)
     742 + lse_test "sys022" "0" \
     743 + "Does the /etc/group have hashes?" \
     744 + 'grep -v "^[^:]*:[x]" /etc/group'
     745 + 
    741 746   #check if we can read any shadow file
    742  - for s in 'shadow' 'shadow-' 'shadow~' 'master.passwd'; do
     747 + for s in 'shadow' 'shadow-' 'shadow~' 'gshadow' 'gshadow-' 'master.passwd'; do
    743 748   lse_test "sys030" "0" \
    744 749   "Can we read /etc/$s file?" \
    745 750   'cat /etc/$s'
    skipped 439 lines
Please wait...
Page is in error, reload to recover