CasperSecurity

Current Path : /home/uiet/iRedMail-1.5.0/tools/
Upload File :
Current File : //home/uiet/iRedMail-1.5.0/tools/find_sasl_login_ip.sh

#!/usr/bin/env bash
# Purpose: Find login IP address of specified username which is used for smtp
#          authentication.

MAIL_LOG="$1"
USER="$2"

if [ -z ${MAIL_LOG} -o -z ${USER} ]; then
    echo "Please run script with a log file and email address: $0 /path/to/maillog mail_address"
    exit 255
fi

tmpfile="/tmp/sasl_username_${RANDOM}"

# extract 'client=xxx[__IP__]' lines
grep "sasl_username=${USER}" ${MAIL_LOG} | awk '{print $7}' | sort | uniq -c | sort -n > sort > ${tmpfile}

cat ${tmpfile}

rm -f ${tmpfile}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY