home *** CD-ROM | disk | FTP | other *** search
/ Hacker Chronicles 1 / HACKER1.ISO / phrk3 / phrack27.8 < prev    next >
Text File  |  1992-09-26  |  2KB  |  77 lines

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