Compare commits

...

6 commits
master ... rhel

506 changed files with 284 additions and 78 deletions

View file

@ -1,6 +1,6 @@
FROM ubuntu
RUN apt update && apt install tree nano openssh-server iproute2 sudo -y
RUN apt update && apt install tree nano openssh-server iproute2 iputils-ping sudo -y
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
RUN echo 'test:test' | chpasswd
RUN service ssh start
@ -8,6 +8,8 @@ RUN service ssh start
RUN mkdir -p /home/ubuntu/playground
COPY assets/ /home/ubuntu/playground/
RUN useradd abcdyuinaF6e
EXPOSE 22
# Start the OpenSSH server

11
assets/accessi/README.md Normal file
View file

@ -0,0 +1,11 @@
# Accessi
Conta gli accessi registrati nel file di log `access.log` enumerando le richieste di tipo GET. Il risultato dev'essere scritto all'interno del file
`access_num.txt`.
Il checksum della soluzione è dato da
```bash
cat access_num.txt | sha1sum
```

104
assets/accessi/access.log Normal file
View file

@ -0,0 +1,104 @@
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
POST /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK
GET /foo 200 OK

View file

@ -1,11 +0,0 @@
# Alias
Per produrre con un solo comando l'elenco dei file presenti in una
cartella ordinati dal più recente al meno recente decidi di installare
il seguente alias: `lss='ls -lt'`.
Il checksum della soluzione è dato da
```bash
alias | sha1sum
```

View file

@ -1,11 +1,10 @@
# Backup
# Backup con restic
Prima di effettuare una modifica all'interno della cartella `foo`
decidi saggiamente di effettuare una copia di backup chiamata
`foo.bk`.
Prima di effettuare una modifica all'interno della cartella `foo` decidi saggiamente di effettuare una copia di backup utilizzando `restic`. Scarica
il programma e crea un repository `./foo_bk`. Effettua il backup della cartella `foo` nel repository.
Il checksum della soluzione è dato da
```bash
tree $HOME/playground/backup/ | sha1sum
restic -r foo_bk/ snapshots | grep -c backup/foo | sha1sum
```

View file

@ -0,0 +1,4 @@
# Header 1
Paragraph.

View file

@ -0,0 +1,11 @@
# Cerca Trova
Un hacker ha nascosto alcune chiavi all'interno dei file in foo/. Le chiavi iniziano con la stringa "abcd". Cerca e conta le chiavi e scrivi il
risultato nel file ./keys.txt senza inserire newlines (a capo).
Il checksum della soluzione è dato da
```bash
cat $HOME/playground/cercatrova/keys.txt | sha1sum
```

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -0,0 +1 @@
abcdMaiChe5i

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -0,0 +1 @@
abcdMaiChe5i

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -0,0 +1 @@
abcdMaiChe5i

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -0,0 +1 @@
abcdMaiChe5i

View file

View file

View file

Some files were not shown because too many files have changed in this diff Show more