home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / zines / phrack1 / phrack27.008 < prev    next >
Encoding:
Text File  |  2003-06-11  |  1.9 KB  |  74 lines

  1.                                 ==Phrack Inc.==
  2.  
  3.                      Volume Three, Issue 27, File 8 of 12
  4.  
  5.         <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  6.         <><><><>                                              <><><><>
  7.         <><><>             Sending Fake Mail In Unix            <><><>
  8.         <><>                                                      <><>
  9.         <>                     by Dark OverLord                     <>
  10.         <><>                                                      <><>
  11.         <><><>                   May 26, 1989                   <><><>
  12.         <><><><>                                              <><><><>
  13.         <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  14.  
  15.  
  16. Here is a shell script that can be use to send fakemail from any Unix system.
  17. Have fun and stay out of trouble.
  18.  
  19.  
  20. -Dark Overlord
  21.  
  22.         -=-=-=-=-=-=-=-=-=-=-=-=-=  Cut here -=-=-=-=-=-=-=-=-=-=-=-=-=
  23. ! /bin/sh
  24. #Mfakemail - A shell script to send fakemail.
  25. #M##M#Mt up the path.
  26. PATH=/usr/ucb:/bin:$HOME/Bin
  27. #Marse the command line
  28. case $ in
  29. 0)echo "USAGE: user@host [ from@somewhere ] [ mailer_host ]" >& 2
  30. exit 1
  31. ;;
  32. 1)mailto=$1
  33. from="person@campus"
  34. mailerhost=localhost
  35. ;;
  36. 2)mailto=$1
  37. from=$2
  38. mailerhost=localhost
  39. ;;
  40. 3)mailto=$1
  41. from=$2
  42. mailerhost=$3
  43. ;;
  44. *)echo "USAGE: user@host [ from@somewhere ] [ mailer_host" >& 2
  45. exit 1
  46. ;;
  47. esac
  48. #Mreate a header for sendmail
  49. cat <<E!O!F!> /tmp/cli$$
  50. helo $mailerhost
  51. mail from:$from<$from>
  52. rcpt to: $mailto <$mailto>
  53. data
  54. From: $from
  55. To: $mailto
  56. Subject:
  57. Status: RO
  58.  
  59.  
  60. E!O!F!
  61. #Mdit the mailer
  62. vi /tmp/cli$$
  63. #Mdd a ending for the mailer
  64. cat <<E!O!F!>> /tmp/cli$$
  65. .
  66. quit
  67. E!O!F!
  68. #Monnect to the remote host's sendmail daemon
  69. telnet $mailerhost smtp < /tmp/cli$$
  70. #Mlean up time
  71. /bin/rm -f /tmp/cli$$
  72. _______________________________________________________________________________
  73.  
  74.