File: README

package info (click to toggle)
tempest-for-eliza 1.0.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 340 kB
  • sloc: cpp: 420; sh: 349; makefile: 20
file content (232 lines) | stat: -rw-r--r-- 8,513 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
Tempest For Eliza
(c) 2001 by Erik Thiele
 
This program uses the GPL license. see the file
COPYING for details. a very important passage will be pasted here, too.:

                            NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

 
this means if you get an electric shock from an old radio or
crash your aircraft because of radio signals, it is YOUR problem!


ok. now to the more interesting but less important topics:

What is it ?
------------

Tempest for Eliza is a Program that uses your computer monitor
to send out AM radio signals. You can then hear computer 
generated music in your radio.

this document first describes tempest for eliza, the old program that
plays music like your cellphone does when you get a phonecall. then it
describes tempest for mp3 which you can use to play mp3 files :-)

How does this work ?
--------------------

All electronic devices send out eletromagnetic waves.
so does your monitor. and your monitor does it all the time.
and at very high frequencies. high enough for your short wave
AM radio.
all you have to do is display the "correct" image on your screen
and your monitor will emit the "right" signals.
Tempest for Eliza displays pictures on your screen. one for
each note in the song.

[Note: Markus G. Kuhn's and Ross J. Anderson's paper; "Soft Tempest:
Hidden Data Transmission Using Electromagnetic Emanations" was used as a
reference when programming Tempest-AM. This paper is a must read before
going further testing Tempest-AM. The paper is availabe from
   http://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf
I strongly recommend to read the paper thoroughly.]

Why this program ?
------------------

You need no additional hardware to understand that it is
really possible to observe your computer without
physically touching it. (tempest).
I wrote this program because it was fun and because
it teaches in an amusing way that tempest really exists.
i want people to understand that their computers can
be observed.
And last but not least you can listen to music without a soundcard!

More information on Tempest
---------------------------

Tempest and electromagnetic radiation is an interesting topic. There
aren't very much public literature on this topic. Luckily, there are a
few technical papers and web sites on the net that are a must read. 

Papers to read:

o Markus G. Kuhn's and Ross J. Anderson's, "Soft Tempest: Hidden Data
  Transmission Using Electromagnetic Emanations"

        http://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf

o Wim van Eck, "Electromagnetic Radiation from Video Display Units: An
  Eavesdropping Risk?"

        http://jya.com/emr.pdf

o Christopher Seline, "Eavesdropping On the Electromagnetic Emanations of
  Digital Equipment: The Laws of Canada, England and the United States"

        http://www.eff.org/pub/Privacy/Security/tempest_legal.draft


Here's a few links to start from:

o Ros Anderson's website, is a good starting point and has links to 
  go further.

        http://www.cl.cam.ac.uk/users/rja14/#Tempest
                
o The Complete, Unofficial TEMPEST Information Page, a great site. A lot
  of links to other websites and papers.

        http://www.eskimo.com/~joelm/tempest.html

Compiling and runnning
----------------------

you must have libSDL installed.
see http://www.devolution.com/~slouken/SDL/

type
  ./configure
  make

now start X11. make sure that you choose low colordepth this gives much higher speed !!!
8 bpp is optimal.
if the cpu runs at 100% the music will slow down, i.e. short tunes will get longer than they
usually are. the song will sound bad :)

start xvidtune.
write down the values of 
HDisplay
VDisplay
HTotal
Pixel Clock

now go and get a short wave AM receiver.
(pocket radio, put switch into SW position (if it is named this way;))
dial close to 10 Megahertz

now start

./tempest_for_eliza 105000000  1024     768      1400   10000000  songs/forelise
                    pixelclock Hdisplay VDisplay HTotal radio     music
                    *1000000                            frequency file

the program runs in fullscreen.

now SLOWLY move a little left and right on your radio
to find the 10 Megahertz. You will hear
a Song for Eliza from Ludwig van Beethoven

the song will be on the radio at multiple frequencies.
but the best transmission is at the frequency you gave on
the commandline.

if your computer makes too much noise on that frequency
you could also try some other radio frequencies.
it is up to you.

now go and try other songs included in the songs/ subdir !!

Let's be a spy
--------------

Observe your computer from within another room !
take the radio into another room. play with the antenna
touch earth connections or other things. just play around.
depending on the distance and the quality of your monitor
you will hear good voice.
i have a TCO'99 monitor and i can still hear GOOD music !

Tempest for MP3
---------------

get your favourite mp3 file to the current directory. let's call it
'foobar.mp3'. make sure you have "amp" and "sox" installed. you must
use X11 with 8 bits colordepth. use the old -bpp 8 option to your
xserver or the new -fbbpp 8 option if you have a newer Xserver.

first we need to find out what the correct sampling rate will
be. therefore start:

./tempest_for_mp3 115500000 1024 768 1350 810 1500000 0 20  notexist.raw
                  pixel-clock    resy     vtotal      playmode
                            resx     htotal   radio-frequency
                                                        amplification
                                                            filename

note that the vtotal parameter is a new one and must be read from the
xvidtune screen!

also note that the notexist.raw file does not exist. we just want to
see the output of the program, play no music yet.

it will display:

"audio file frequency should be 13519.890261 Hz"

now take this value and convert your mp3 like this:

./mksong.sh 13519 foobar.mp3 cool.raw

you can now listen to it with this command:

./tempest_for_mp3 115500000 1024 768 1350 810 1500000 0 20  cool.raw

notice the low radio frequency of only 1500 KHz. well... i found out
that you actually don't need a short wave radio if you put your
antenna close enough to your computer screen. lower frequencies also
work. and even nowadays most radios can receive AM waves :) so finally
you can send to any radio you have. (but no FM, sorry...)

the playmode and amplification parameters control the algorithm for
playback. you can choose between playmode 0 and playmode 1. playmode 1
produces a correct AM signal. amplification 1 is correct. if you
increase amplification the audio signal will be clipped. but since
there is so much disturbing noise anyway, this doesn't matter. you can
use playmode 0 to further increase output energy. the signal is not
very good anymore then :) but it is louder. the problem is i cannot
use the time when the electron beam does the blanking and retrace
phase. unfortunately there's no way around this, folks. if your song
has heavy basses, you shouldn't over-amplify, because you won't hear
the melody while the bass is drumming then...

Credits
-------

The original idea is from Pekka Riikonen. (see file AUTHORS)
he wrote the program
tempest-AM-0.9. i used a simplification of his routines
to create the signal.