• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Makefile.inH A D06-Jan-2006630 3018

READMEH A D14-Jan-20061.9 KiB5743

configureH A D11-Jan-2006122.3 KiB4,2333,489

configure.acH A D11-Jan-20063.7 KiB138118

install-shH A D06-Jan-20066.3 KiB271153

ratbox-respond.cH A D03-May-20226.8 KiB280214

setup.h.inH A D04-Jan-2006736 2819

README

1- ratbox-respond -
2------------------
3ratbox-respond takes the challenge from the server and creates a valid
4response to pass back to the server.
5
6ratbox-respond will run either interactively, or can have input piped to it
7through stdin.
8
9- Compiling -
10-------------
11Run:
12	./configure
13	make
14
15This will generate a 'ratbox-respond' binary, which you may place wherever
16you like. If configure does not detect your openssl installation, you may
17pass it the directory where it is installed to via --enable-openssl, this
18should be the base directory which has lib/ and include/openssl/ within it:
19	./configure --enable-openssl=/path/to/opensslbase
20
21
22- ratbox-respond usage -
23------------------------
24ratbox-respond takes only one argument, the path to your private key:
25	./ratbox-respond /path/to/private.key
26
27
28- Interactive mode -
29--------------------
30ratbox-respond runs in interactive mode when it detects theres a tty
31attached (eg, you run ./ratbox-respond from a normal shell).  This will
32prompt for keyphrases and the challenge, and will generate the output to be
33given to ircd.
34
35
36- Non-interactive mode -
37------------------------
38To allow for ratbox-respond to be called from a script, input may be piped
39to ratbox-respond through stdin.  The format of the input is:
40	keyphrase\nchallenge\n
41
42If there is no keyphrase, the \n preceding the challenge from ircd must
43still be sent.  Output will be given on stdout, and will be just the
44response needed to be sent back to ircd.
45
46It is required that input is piped for security reasons, as allowing the
47keyphrase to appear in ps is insecure.
48
49An example to illustrate this is:
50	echo "keyphrase\nchallenge" | /path/to/ratbox-respond /path/to/key
51Though this is equally insecure, as the echo will appear in process lists.
52It can be done better in perl for example, by using the open2() function,
53see client-scripts/challenge-xchat.pl for an implementation.
54
55--
56- $Id: README 21696 2006-01-14 22:30:32Z leeh $ -
57