Merge branch 'rhel' of ssh://git.andreafazzi.eu:10022/andrea/acp into rhel
This commit is contained in:
commit
07f47c412f
504 changed files with 265 additions and 77 deletions
|
@ -8,6 +8,8 @@ RUN service ssh start
|
||||||
RUN mkdir -p /home/ubuntu/playground
|
RUN mkdir -p /home/ubuntu/playground
|
||||||
COPY assets/ /home/ubuntu/playground/
|
COPY assets/ /home/ubuntu/playground/
|
||||||
|
|
||||||
|
RUN useradd abcdyuinaF6e
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
# Start the OpenSSH server
|
# Start the OpenSSH server
|
||||||
|
|
11
assets/accessi/README.md
Normal file
11
assets/accessi/README.md
Normal 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 num_access.txt | sha1sum
|
||||||
|
```
|
||||||
|
|
104
assets/accessi/access.log
Normal file
104
assets/accessi/access.log
Normal 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
|
|
@ -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
|
|
||||||
```
|
|
|
@ -1,11 +1,10 @@
|
||||||
# Backup
|
# Backup con restic
|
||||||
|
|
||||||
Prima di effettuare una modifica all'interno della cartella `foo`
|
Prima di effettuare una modifica all'interno della cartella `foo` decidi saggiamente di effettuare una copia di backup utilizzando `restic`. Scarica
|
||||||
decidi saggiamente di effettuare una copia di backup chiamata
|
il programma e crea un repository `./foo_bk`. Effettua il backup della cartella `foo` nel repository.
|
||||||
`foo.bk`.
|
|
||||||
|
|
||||||
Il checksum della soluzione è dato da
|
Il checksum della soluzione è dato da
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tree $HOME/playground/backup/ | sha1sum
|
restic -r foo_bk/ snapshots | grep -c backup/foo | sha1sum
|
||||||
```
|
```
|
||||||
|
|
4
assets/backup/foo/bar/biz/file.md
Normal file
4
assets/backup/foo/bar/biz/file.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Header 1
|
||||||
|
|
||||||
|
Paragraph.
|
||||||
|
|
11
assets/cercatrova/README.md
Normal file
11
assets/cercatrova/README.md
Normal 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
|
||||||
|
```
|
||||||
|
|
0
assets/cercatrova/foo/bar/bar11.txt
Normal file
0
assets/cercatrova/foo/bar/bar11.txt
Normal file
0
assets/cercatrova/foo/bar/bar110.txt
Normal file
0
assets/cercatrova/foo/bar/bar110.txt
Normal file
0
assets/cercatrova/foo/bar/bar111.txt
Normal file
0
assets/cercatrova/foo/bar/bar111.txt
Normal file
0
assets/cercatrova/foo/bar/bar112.txt
Normal file
0
assets/cercatrova/foo/bar/bar112.txt
Normal file
0
assets/cercatrova/foo/bar/bar113.txt
Normal file
0
assets/cercatrova/foo/bar/bar113.txt
Normal file
0
assets/cercatrova/foo/bar/bar114.txt
Normal file
0
assets/cercatrova/foo/bar/bar114.txt
Normal file
0
assets/cercatrova/foo/bar/bar115.txt
Normal file
0
assets/cercatrova/foo/bar/bar115.txt
Normal file
0
assets/cercatrova/foo/bar/bar116.txt
Normal file
0
assets/cercatrova/foo/bar/bar116.txt
Normal file
0
assets/cercatrova/foo/bar/bar117.txt
Normal file
0
assets/cercatrova/foo/bar/bar117.txt
Normal file
0
assets/cercatrova/foo/bar/bar118.txt
Normal file
0
assets/cercatrova/foo/bar/bar118.txt
Normal file
0
assets/cercatrova/foo/bar/bar119.txt
Normal file
0
assets/cercatrova/foo/bar/bar119.txt
Normal file
0
assets/cercatrova/foo/bar/bar12.txt
Normal file
0
assets/cercatrova/foo/bar/bar12.txt
Normal file
0
assets/cercatrova/foo/bar/bar120.txt
Normal file
0
assets/cercatrova/foo/bar/bar120.txt
Normal file
0
assets/cercatrova/foo/bar/bar121.txt
Normal file
0
assets/cercatrova/foo/bar/bar121.txt
Normal file
0
assets/cercatrova/foo/bar/bar122.txt
Normal file
0
assets/cercatrova/foo/bar/bar122.txt
Normal file
0
assets/cercatrova/foo/bar/bar123.txt
Normal file
0
assets/cercatrova/foo/bar/bar123.txt
Normal file
0
assets/cercatrova/foo/bar/bar124.txt
Normal file
0
assets/cercatrova/foo/bar/bar124.txt
Normal file
0
assets/cercatrova/foo/bar/bar125.txt
Normal file
0
assets/cercatrova/foo/bar/bar125.txt
Normal file
0
assets/cercatrova/foo/bar/bar126.txt
Normal file
0
assets/cercatrova/foo/bar/bar126.txt
Normal file
0
assets/cercatrova/foo/bar/bar127.txt
Normal file
0
assets/cercatrova/foo/bar/bar127.txt
Normal file
0
assets/cercatrova/foo/bar/bar128.txt
Normal file
0
assets/cercatrova/foo/bar/bar128.txt
Normal file
0
assets/cercatrova/foo/bar/bar129.txt
Normal file
0
assets/cercatrova/foo/bar/bar129.txt
Normal file
0
assets/cercatrova/foo/bar/bar13.txt
Normal file
0
assets/cercatrova/foo/bar/bar13.txt
Normal file
0
assets/cercatrova/foo/bar/bar130.txt
Normal file
0
assets/cercatrova/foo/bar/bar130.txt
Normal file
0
assets/cercatrova/foo/bar/bar131.txt
Normal file
0
assets/cercatrova/foo/bar/bar131.txt
Normal file
0
assets/cercatrova/foo/bar/bar132.txt
Normal file
0
assets/cercatrova/foo/bar/bar132.txt
Normal file
0
assets/cercatrova/foo/bar/bar133.txt
Normal file
0
assets/cercatrova/foo/bar/bar133.txt
Normal file
0
assets/cercatrova/foo/bar/bar134.txt
Normal file
0
assets/cercatrova/foo/bar/bar134.txt
Normal file
0
assets/cercatrova/foo/bar/bar135.txt
Normal file
0
assets/cercatrova/foo/bar/bar135.txt
Normal file
0
assets/cercatrova/foo/bar/bar136.txt
Normal file
0
assets/cercatrova/foo/bar/bar136.txt
Normal file
0
assets/cercatrova/foo/bar/bar137.txt
Normal file
0
assets/cercatrova/foo/bar/bar137.txt
Normal file
0
assets/cercatrova/foo/bar/bar138.txt
Normal file
0
assets/cercatrova/foo/bar/bar138.txt
Normal file
0
assets/cercatrova/foo/bar/bar139.txt
Normal file
0
assets/cercatrova/foo/bar/bar139.txt
Normal file
0
assets/cercatrova/foo/bar/bar14.txt
Normal file
0
assets/cercatrova/foo/bar/bar14.txt
Normal file
0
assets/cercatrova/foo/bar/bar140.txt
Normal file
0
assets/cercatrova/foo/bar/bar140.txt
Normal file
0
assets/cercatrova/foo/bar/bar141.txt
Normal file
0
assets/cercatrova/foo/bar/bar141.txt
Normal file
0
assets/cercatrova/foo/bar/bar142.txt
Normal file
0
assets/cercatrova/foo/bar/bar142.txt
Normal file
0
assets/cercatrova/foo/bar/bar143.txt
Normal file
0
assets/cercatrova/foo/bar/bar143.txt
Normal file
0
assets/cercatrova/foo/bar/bar144.txt
Normal file
0
assets/cercatrova/foo/bar/bar144.txt
Normal file
0
assets/cercatrova/foo/bar/bar145.txt
Normal file
0
assets/cercatrova/foo/bar/bar145.txt
Normal file
0
assets/cercatrova/foo/bar/bar146.txt
Normal file
0
assets/cercatrova/foo/bar/bar146.txt
Normal file
0
assets/cercatrova/foo/bar/bar147.txt
Normal file
0
assets/cercatrova/foo/bar/bar147.txt
Normal file
0
assets/cercatrova/foo/bar/bar148.txt
Normal file
0
assets/cercatrova/foo/bar/bar148.txt
Normal file
0
assets/cercatrova/foo/bar/bar149.txt
Normal file
0
assets/cercatrova/foo/bar/bar149.txt
Normal file
1
assets/cercatrova/foo/bar/bar15.txt
Normal file
1
assets/cercatrova/foo/bar/bar15.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
abcdMaiChe5i
|
0
assets/cercatrova/foo/bar/bar150.txt
Normal file
0
assets/cercatrova/foo/bar/bar150.txt
Normal file
0
assets/cercatrova/foo/bar/bar151.txt
Normal file
0
assets/cercatrova/foo/bar/bar151.txt
Normal file
0
assets/cercatrova/foo/bar/bar152.txt
Normal file
0
assets/cercatrova/foo/bar/bar152.txt
Normal file
0
assets/cercatrova/foo/bar/bar153.txt
Normal file
0
assets/cercatrova/foo/bar/bar153.txt
Normal file
0
assets/cercatrova/foo/bar/bar154.txt
Normal file
0
assets/cercatrova/foo/bar/bar154.txt
Normal file
0
assets/cercatrova/foo/bar/bar155.txt
Normal file
0
assets/cercatrova/foo/bar/bar155.txt
Normal file
0
assets/cercatrova/foo/bar/bar156.txt
Normal file
0
assets/cercatrova/foo/bar/bar156.txt
Normal file
0
assets/cercatrova/foo/bar/bar157.txt
Normal file
0
assets/cercatrova/foo/bar/bar157.txt
Normal file
0
assets/cercatrova/foo/bar/bar158.txt
Normal file
0
assets/cercatrova/foo/bar/bar158.txt
Normal file
0
assets/cercatrova/foo/bar/bar159.txt
Normal file
0
assets/cercatrova/foo/bar/bar159.txt
Normal file
1
assets/cercatrova/foo/bar/bar16.txt
Normal file
1
assets/cercatrova/foo/bar/bar16.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
abcdMaiChe5i
|
0
assets/cercatrova/foo/bar/bar160.txt
Normal file
0
assets/cercatrova/foo/bar/bar160.txt
Normal file
0
assets/cercatrova/foo/bar/bar161.txt
Normal file
0
assets/cercatrova/foo/bar/bar161.txt
Normal file
0
assets/cercatrova/foo/bar/bar162.txt
Normal file
0
assets/cercatrova/foo/bar/bar162.txt
Normal file
0
assets/cercatrova/foo/bar/bar163.txt
Normal file
0
assets/cercatrova/foo/bar/bar163.txt
Normal file
0
assets/cercatrova/foo/bar/bar164.txt
Normal file
0
assets/cercatrova/foo/bar/bar164.txt
Normal file
0
assets/cercatrova/foo/bar/bar165.txt
Normal file
0
assets/cercatrova/foo/bar/bar165.txt
Normal file
0
assets/cercatrova/foo/bar/bar166.txt
Normal file
0
assets/cercatrova/foo/bar/bar166.txt
Normal file
0
assets/cercatrova/foo/bar/bar167.txt
Normal file
0
assets/cercatrova/foo/bar/bar167.txt
Normal file
0
assets/cercatrova/foo/bar/bar168.txt
Normal file
0
assets/cercatrova/foo/bar/bar168.txt
Normal file
0
assets/cercatrova/foo/bar/bar169.txt
Normal file
0
assets/cercatrova/foo/bar/bar169.txt
Normal file
1
assets/cercatrova/foo/bar/bar17.txt
Normal file
1
assets/cercatrova/foo/bar/bar17.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
abcdMaiChe5i
|
0
assets/cercatrova/foo/bar/bar170.txt
Normal file
0
assets/cercatrova/foo/bar/bar170.txt
Normal file
0
assets/cercatrova/foo/bar/bar171.txt
Normal file
0
assets/cercatrova/foo/bar/bar171.txt
Normal file
0
assets/cercatrova/foo/bar/bar172.txt
Normal file
0
assets/cercatrova/foo/bar/bar172.txt
Normal file
0
assets/cercatrova/foo/bar/bar173.txt
Normal file
0
assets/cercatrova/foo/bar/bar173.txt
Normal file
0
assets/cercatrova/foo/bar/bar174.txt
Normal file
0
assets/cercatrova/foo/bar/bar174.txt
Normal file
0
assets/cercatrova/foo/bar/bar175.txt
Normal file
0
assets/cercatrova/foo/bar/bar175.txt
Normal file
0
assets/cercatrova/foo/bar/bar176.txt
Normal file
0
assets/cercatrova/foo/bar/bar176.txt
Normal file
0
assets/cercatrova/foo/bar/bar177.txt
Normal file
0
assets/cercatrova/foo/bar/bar177.txt
Normal file
0
assets/cercatrova/foo/bar/bar178.txt
Normal file
0
assets/cercatrova/foo/bar/bar178.txt
Normal file
0
assets/cercatrova/foo/bar/bar179.txt
Normal file
0
assets/cercatrova/foo/bar/bar179.txt
Normal file
1
assets/cercatrova/foo/bar/bar18.txt
Normal file
1
assets/cercatrova/foo/bar/bar18.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
abcdMaiChe5i
|
0
assets/cercatrova/foo/bar/bar180.txt
Normal file
0
assets/cercatrova/foo/bar/bar180.txt
Normal file
0
assets/cercatrova/foo/bar/bar181.txt
Normal file
0
assets/cercatrova/foo/bar/bar181.txt
Normal file
0
assets/cercatrova/foo/bar/bar182.txt
Normal file
0
assets/cercatrova/foo/bar/bar182.txt
Normal file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue