Test email accounts are typically a security vulnerability. Originally made with an initial purpose of testing, many times with a weak or insecure password and then forgotten about. Regularly checking your server for test@domain.tld email accounts is a great security precaution.
Find "test" email accounts on cPanel servers.
=================================
1)Login to your server via SSH as the root user.
2)Copy and paste this nifty one line command into the terminal:
grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'
3)If any test email accounts exist, you should see output similar to this:
grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'
test@test.com email address exists!
4)You can search for other possible email aliases, such as "testing@domain.tld" instead of test by replacing 'test' with 'testing' in the one liner.
Find "test" email accounts on cPanel servers.
=================================
1)Login to your server via SSH as the root user.
2)Copy and paste this nifty one line command into the terminal:
grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'
3)If any test email accounts exist, you should see output similar to this:
grep -i 'test' /home/*/etc/*/passwd | awk 'BEGIN { FS = "/" } ; { print "test@" $5 " email address exists!"}'
test@test.com email address exists!
4)You can search for other possible email aliases, such as "testing@domain.tld" instead of test by replacing 'test' with 'testing' in the one liner.
No comments:
Post a Comment