Övrigt uxu-bbspam-readme.txt

Öppna i terminalen


  BBSPAM DOCUMENTATION

  BBspam - Big Brother Spam v0.1

  (c)1999 by the uXu
  http://uXu.org/
  bbspam@uxu.org    (Send questions, suggestions and bbspam-type programs)

  Read the included uxu-529.txt for even more information on BBspam.
  


  What is this?
  =============

  BBspam is Big Brother Spam. It will add a header line to all your outgoing
  mail, containing words that most countries are interested in, such as
  drugs, guns, terrorism, freedom of speech and so on.


  Why?
  ====

  There are several organizations listening to your electronic communication,
  such as every government with self respect. BBspam makes their job much
  harder as more and more people use it, or similar programs. We can't stop
  them from prying, history tells us, but we can turn their secret mission
  into a hopeless mission.


  Paradox?
  ========

  "Isn't it easy just to filter out mail processed by BBspam?"

  It is, yes. But if some spying organization decides to do that, the
  purpose of BBspam would be fulfilled as well. Think, what about
  bad guys who disguise behind mail with BBspam patterns? Since it is
  possible, you can not just discard mail with a BBspam signature.

  The same goes for ignoring the header lines. People can communicate
  through header lines, just as they can through the mail body. Ignoring
  the header lines would be just as ignorant as filtering out mail with a
  known BBspam pattern.

  I.e., the only way to be sure to find the bad guys is to scan
  _each_and_every_ mail.

  Note: BBspam leaves no real traces of its presence, since the header
        line it includes may be modified by the user. "X-nonstandard" is
        the default, but it could just as well be "Keywords".
  
  

Quick archive overview:
  README.TXT    - this file
  EXAMPLES.TXT  - hints and examples
  FAQ.TXT       - Frequently Asked Questions
  uxu-529.txt   - uXu File #529 about BBspam v0.1
  bbsetup       - setup your bbspam environment (creates and runs bbsetup.2)
  bbsp-send     - delivers any mail present in queue
  bbsp-logrot   - rotate bbsp-send log files
  bbsp.ctp      - C-source template
  bbsp.conf     - bbspam universal configuration file
  bbprepare     - prepares queued messages
  bbrand        - generates a header line w/one to five random BBspam keywords
  bbrand.dat    - list of BBspam keywords
  cgen          - generates C-code & compiles the bbsp.ctp, and then takes
                  care of rand.c and bbinsert.c
  rand.c        - simple (pseudo) random number generator
  bbinsert.c    - inserts BBspam-header
  mailers.txt   - Inspirational list of mailers. Not used by BBspam.


NOTE: This is a demonstration program. It is not a complete, nor perfect
      program package. There is little to no error handling and a lot of
      things are taken for granted. This is Intended Imperfect-Ware, to
      inspire/force others to do their own versions.
      The purpose of this program is solely to inspire others to create
      similar programs. The whole purpose of the BBspam concept is actually
      lost if there are only one or a few different programs to choose from.
      The more, the merrier - i.e., more problems for your favorite spying
      organization.

      For convenience, NOT for speed, most subprograms are made in Bourne
      shell scripts. Easy to read, understand, and implement own ideas.


QUICK INSTALLATION INSTRUCTIONS

For Linux

            You should have atleast minor knowledge of the Linux OS to safely
            carry out what is described herein.

  Overview:

  1. Extract the bbspam archive.
  2. Run bbsetup in the same directory.
  3. Change /etc/services if necessary.
  4. Change /etc/inetd.conf
  5. Run cgen
  6. Change the SMTP settings in your email client.
  7. Modify crontab, add bbsp-send
  8. HUP inetd
  9. Finished!
 10. Optional: Put bbsp-logrot in the crontab as well.

  Somewhat more detailed:

  1. Copy all the files in the bbspam archive to a directory of your choice.
     In these instructions, the directory "/root/bb" is used, but it can
     be anything you like.

  2. In this directory, run bbsetup and enter the values that reflect
     your setup. Read further down in this document for detailed explanation
     of each of the variables. bbsetup automatically changes the bbsp.conf to
     reflect your changes.

  3. Add the following line to your /etc/services file, if it does not
     already exist:

     smtp            25/tcp          mail   # or some other port

  4. Add the following line to your /etc/inetd.conf file. If it already
     has a line beginning with "smtp", replace it with this:

     smtp    stream  tcp     nowait  root    /usr/sbin/tcpd  /root/bb/bbsp

     WARNING: This will replace the standard SMTP program you might already
              have installed. If you don't want this to happen, change the
              port number from 25 to something else.

  5. Run "cgen" to generate and compile the bbsp program. This will also
     create the rand and bbinsert programs.

  6. In your email-client (pine, Eudora, Netscape, Outlook, whatever)
     set your SMTP-server to your new BBspam-server instead.

  7. Add this line to your other crontab jobs:

     0-59 * * * * /root/bb/bbsp-send /root/bb/bbsp.conf

  8. Find out the PID of the inetd (or equivalent) process by running this
     command:

          % ps -ax | grep inetd | grep -v grep

     and you'll see something like this:

            46  ?  S     0:00 /usr/sbin/inetd

     Notice the first number on the line and then send a HUP
     to this process (46 in this example).
 
          % kill -HUP 46

     If you didn't find inetd, do "cat /etc/inetd.pid" and try
     to HUP the process number you get.

  9. You are ready to go! Write and send mail just as you always have
     done. Every outgoing mail will, however be laced with BBspam-keywords...

 10. Optional. Put bbsp-logrot in your crontab as well:

     0 2 * * 6 /root/bb/bbsp-logrot /root/bb/bbsp.conf

     This will rotate the bbsp-send logs once a week.

=================================

For Windows 95/98/NT3/NT4/2k:

Check out the uXu website: http://uXu.org/

===================================

How mail is processed when going through BBspam:

1. Mail is received by bbsp(C) from your email-client, such as Eudora, Outlook
   or anything else that supports SMTP for outgoing mail. The mail session
   is stored in the queue directory.

2. In one minute intervals, bbsp-send(sh) scans the queue directory, and if
   any mail is present, it is processed by the following:

   a) bbprepare(sh) - Modifies or removes header-lines of your choice,
                      see bbsp.conf.

   b) bbinsert(C)   - Inserts the header-line which contains the random
                      BBspam-keywords. Default header is "X-nonstandard:".
                      
   c) netcat(C)     - Sends the modified and BBspam-inserted mail to the
                      SMTP-server. Netcat is NOT a uXu product, check out
                      http://www.l0pht.com/ .

3. The mail file is finally moved to the "sent" directory.


===================================

The bbsp.conf file:

This file is built up in sections, defined within []'s, such as
[Main] and [Header]. Each section must end with an empty line.

Each line in the sections are made up of WORD1=WORD2.
WORD1 may contain any characters except the equal-sign (=).
WORD1 must not have any whitespaces before it.
WORD2 may contain any characters.

Recognized WORD1's in the [Main] section and their default
values in this version of BBspam are:

  BB-dir=/root/bb
    Set the BBspam main directory. Must be absolute.

  SMTP-server=10.0.0.10
    The SMTP-server's IP address. If your Linux resolves hostnames,
    you're free to use that instead.

  SMTP-port=25
    The port which the above mentioned SMTP-server listens to.
  
  Presentation=220 mymachine [uXu.org] BBSPAM SMTP Server Ready.
    This is how the BBspam program will identify itself when
    connected to.

  MaxSize=5000000
    The maximum size of incoming mail in bytes. Mail larger than this will be
    discarded.

  NetCat=/usr/local/bin/nc
    The location of the netcat program.

  BBsp-send-logfile=bbsp-send.log
    The name of the bbsp-send program's logfile. Relative to the BB-dir.

  Queue-dir=q
    The name of the mail queue dir that BBspam should use. Relative to
    the BB-dir.

  Sent-dir=sent
    The directory where sent mail should be stored. Relative to the BB-dir.

  Header-line=X-nonstandard:
    The header line which should contain the BBspam keyword(s).


In the [Header] section, the WORD1 can be any kind of header, while WORD2 is
what should replace it. If WORD2 is omitted, the whole WORD1 header line will
be removed.


Example to modify a X-Mailer line:
  X-Mailer:=X-Mailer: QUALCOMM Windows/Eudora Pro Version 4.2.0.58

Examples to remove header lines:
  X-Sender:=
  Content-Type:=
  Mime-Version:=


===================================

Final hints & nice-to-know stuff:

  If bbsp.conf is modified (with bbsetup or manually), you MUST run
  "cgen" again.

  Don't modify bbsp.c! Edit bbsp.ctp instead, then run "cgen". bbsp.c
  is re-created everytime, with bbsp.ctp as the template.

  In the queue and sent directories, the mail sessions are kept. If you
  would like to resend mails for debugging reasons, just move or copy
  files from the sent dir to the queue dir.

  When sending more than one mail at the time, each mail will contain
  the same keywords. Keywords are randomized and selected on a per-session
  basis, not per delivered mail.

  As a provocative feature, the old mail in the "sent" folder will be
  overwritten at random.

===================================

** END OF README.TXT **

← phrack.txt uxu-catswe.html →