Skip to content

Detalhes

Iuri Guilherme edited this page Nov 23, 2020 · 1 revision

Detalhes técnicos

Antes que me perguntem, as informações que estão nesta página não estão aqui para que as pessoas consigam hackear o servidor. Pra hackear o servidor, tem que hackear o sysadmin ;)

O servidor denise é uma VPS da Vultr localizado em um datacenter em Tóquio.

Endereços públicos

IPv4: 104.238.151.247

IPv6: 2001:19f0:7002:ca2:5400:02ff:fecd:3273

DNS reverso: denise.matehackers.org


Software

O sistema operacional é Debian 10 (buster).

sudo apt install

Em ordem alfabética:

  • byobu
  • certbot
  • ffmpeg
  • git
  • ipfs
  • nginx
  • pipenv
  • python2.7
  • python3.7
  • python3-pip
  • rsync

TODO: Lista de pacotes instalados está desatualizada. Manter esta lista ou apagar ela. 2020-11-23


SSH Fingerprint

Quem quiser shell no servidor fala com o @iuriguilherme (@desobedientecivil no grupo de telegram do matehackers).

iuri@denise:~$ for KEY in /etc/ssh/*.pub; do ssh-keygen -lf $KEY; ssh-keygen -lE md5 -f $KEY; done
256 SHA256:xK/39Ec52RZxf/dCKUQ6MOTsmtG0RhgAO8cfTvzpo4Q root@guest (ECDSA)
256 MD5:64:c0:50:84:6e:52:2b:40:7b:6f:b4:86:e9:83:25:d8 root@guest (ECDSA)
256 SHA256:Rtm3P5jSWglJL0ulgpvg8eTejYT4Fj4dithhv+UMrhE root@guest (ED25519)
256 MD5:d1:59:da:b7:63:81:3c:6d:ed:a5:ce:8d:37:b6:d3:ff root@guest (ED25519)
2048 SHA256:M/IbV78C7poyCfU80j0JWvFh5nbc1TBjcMVb5HHK0jE root@guest (RSA)
2048 MD5:f2:9d:a5:c4:8d:87:b5:60:e6:69:3a:7c:af:73:60:9f root@guest (RSA)

Configuração

iuri@denise:~$ cat /etc/hosts
127.0.0.1    localhost
127.0.1.1    denise.matehackers.org denise

# The following lines are desirable for IPv6 capable hosts
::1          localhost ip6-localhost ip6-loopback
ff02::1      ip6-allnodes
ff02::2      ip6-allrouters

104.238.151.247 denise.matehackers.org  denise
2001:19f0:7002:ca2:5400:02ff:fecd:3273  denise.matehackers.org  denise

MateBot

Código fonte em https://github.com/matehackers/matebot

iuri@denise:~$ cat .config/systemd/user/matebot-mate_obot.service
[Unit]
Description=MateBot daemon
After=network.target nss-lookup.target

[Service]
Type=simple
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
ExecStart=/home/iuri/.local/bin/pipenv run python start.py telepot mate_obot
WorkingDirectory=/home/iuri/git/matehackers/tg-matebot/
Restart=on-failure

[Install]
WantedBy=multi-user.target

IPFS

Systemd

iuri@denise:~$ cat .config/systemd/user/ipfs.service
[Unit]
Description=IPFS daemon
After=network.target

[Service]
ExecStart=/home/iuri/bin/ipfs daemon --migrate
Restart=on-failure

[Install]
WantedBy=default.target

IPNS

iuri@denise:~$ cat ~/bin/ipfs-denise.bash
#!/bin/bash
## Atualiza /ipns/denise.matehackers.org

ipfs name publish /ipfs/$(ipfs add --recursive --dereference-args --quieter --pin --fscache --cid-version 1 /var/www/denise)

MatePad

Se algum plugin estiver desatualizado ou com falha de segurança, avise a gente que o problema será consertado mais rápido do que hackeando o nosso pad e me fazendo perder tempo consertando ;)

Installed plugins

Name Description Version
activepads Gives the ability to list pads people are working on. 0.0.1
adminpads3 Etherpad plugin to list and delete pads in /admin. 1.1.3
copy_paste_images Copy and Paste images from clipboard to a pad 0.0.21
hash_auth Allow the use of hashed passwords in etherpad-lite. 3.0.2
headings2 Adds heading support to Etherpad Lite. Includes improved suppot for export, i18n etc. 0.1.4
hide_referrer Don't pass the referring URL to third parties. This handles the security/privacy issue where you don't want the third party service to know your pad URL. Improves Privacy. 0.0.15
what_have_i_missed What have I missed when I have been away from a pad? Diff view in a modal then additional functionality for reviewing changes 0.0.8
Clone this wiki locally