blob: 8e09278b5abec71b3868e67a89df1a49f10553e1 (
plain)
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
|
# 👧️ Gigi
> A Finger protocol server for risk takers
Gigi is a Finger protocol server with few features.
- Gigi can respond to Finger requests statically
- Gigi can respond to Finger requests dynamically
<p align="center">
<br>
<img src="https://i.imgur.com/RddckKP.png" width="75%">
</p>
## Usage
### Local
```bash
$ git clone [email protected]:Fuwn/gigi.git
$ cd gigi
$ tup
```
### Configuration
Gigi is configured through the `./gigi` directory.
Dynamic response mode is disabled by default in [`gigi.c`](./gigi.c)
because it is very unsafe. If you wish to live on the edge, uncomment the
`GIGI_DYNAMIC` macro. Dropping Gigi into a container is significantly safer
than running it on a host machine, so consider that as an option, too.
Dynamic mode runs any and all executables located at the path `./gigi/do`, and
passes any arguments from the Finger request to the executable.
Static mode is enabled by default. A Finger request for `test` will return the
contents of `./gigi/test`. A Finger request of nothing will return the contents
of `./gigi/default`.
To emulate dynamic mode, minus the arguments you can setup a service of some
kind to periodically update the contents of one of the static files.
## Licence
This project is licensed with the [GNU General Public License v3.0](./LICENSE).
|