Tips Linux

Linux, DevOps and Security

Tag: security

Root password Linux reset in 1 minute

This little trick recently saved me from a critical situation and shows one more time the weakness of every system with unencrypted disks.

Continue reading

IP extraction

Regex are useful to cope with basic unix / linux administration tasks.
To extract IP from file, this simple command do the trick :
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' /var/log/auth.log 15-08-27 - 16:17:00
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
188.216.199.96
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142
11.213.54.142

Continue reading

© 2019 Tips Linux

Theme by Anders NorenUp ↑