Compare commits
No commits in common. "master" and "v0.4" have entirely different histories.
@ -1,36 +0,0 @@
|
|||||||
file:
|
|
||||||
|
|
||||||
#check si latest.sql.gs existe
|
|
||||||
/root/latest.sql.gz:
|
|
||||||
exists: true
|
|
||||||
filetype: file
|
|
||||||
|
|
||||||
|
|
||||||
command:
|
|
||||||
|
|
||||||
#check le contenue de la crontab
|
|
||||||
crontab -l:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 0 21 * * 1-7 /root/svbase.sh
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
|
|
||||||
#check la sortie du fichier hostname de ap23
|
|
||||||
ssh root@ap23 hostname:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- ap23
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
|
|
||||||
|
|
||||||
interface:
|
|
||||||
|
|
||||||
#check l'existence de la carte enp0s3, son adresse ipv4, mac et sa valeur mtu
|
|
||||||
enp0s3:
|
|
||||||
exists: true
|
|
||||||
addrs:
|
|
||||||
- 192.168.0.33/24
|
|
||||||
- fe80::a00:27ff:fe06:7232/64
|
|
||||||
mtu: 1500
|
|
@ -1,39 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
#ip dans la variable $3
|
|
||||||
ip=$(ip -br a|grep UP|awk '{print $3}'|cut -f1 -d'/')
|
|
||||||
|
|
||||||
#dependances
|
|
||||||
apt install apache2 php php-mbstring php-xml php-gd -y
|
|
||||||
|
|
||||||
#telechargement dokuwiki et deplacement dans /var/www/html/dokuwiki et suppression archive plus utile
|
|
||||||
cd /tmp
|
|
||||||
wget http://depl.sio.lan/store/dokuwiki-stable.tgz
|
|
||||||
tar -xzvf dokuwiki-stable.tgz
|
|
||||||
rm dokuwiki-stable.tgz
|
|
||||||
|
|
||||||
#check si bonne version de dokuwiki extraite
|
|
||||||
if [ ! -d dokuwiki-2020-07-29 ] ; then
|
|
||||||
echo "Erreur de version dokuwiki : version attendue : dokuwiki-2020-07-29"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#deplacement dans le repertoire de base apache2/dokuwiki
|
|
||||||
mv dokuwiki-2020-07-29 dokuwiki
|
|
||||||
mv dokuwiki /var/www/html
|
|
||||||
cd /var/www/html
|
|
||||||
|
|
||||||
#suppresion index.html pas necessaire si present
|
|
||||||
if [ -d index.html ] ; then
|
|
||||||
rm index.html
|
|
||||||
fi
|
|
||||||
cd /var/www/html/dokuwiki
|
|
||||||
chown -R root:root .
|
|
||||||
chown -R www-data:www-data data lib conf
|
|
||||||
|
|
||||||
#nettoyage affichage et resultat
|
|
||||||
clear
|
|
||||||
echo "Installation de dokuwiki terminee."
|
|
||||||
echo "Connectez-vous avec un navigateur à l'adresse http://$ip/dokuwiki/install.php"
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
#set -e
|
|
||||||
set -u
|
|
||||||
#instalation des paquets
|
|
||||||
apt install -y wget apache2 php php-gd php-mbstring php-xml
|
|
||||||
|
|
||||||
#srcipt installation
|
|
||||||
cd /tmp || return
|
|
||||||
wget http://depl.sio.lan/store/dokuwiki-stable.tgz
|
|
||||||
tar xvfs dokuwiki-stable.tgz
|
|
||||||
mkdir /var/www/html/doku
|
|
||||||
if [[! -d dokuwiki-2020-07-29]] ; then
|
|
||||||
echo"$0 : erreur version dokuwiki"
|
|
||||||
fi
|
|
||||||
cp -a dokuwiki-2020-07-29/* /var/www/html/doku
|
|
||||||
cd /var/www/html/doku || return
|
|
||||||
chown -R root:root .
|
|
||||||
chown -R www-data:www-data data lib conf
|
|
||||||
|
|
||||||
adresse=$(ip -br a|grep UP|awk '{print $3}t'|cut -f1 -d'/')
|
|
||||||
echo "installation du dokuwiki terminee.Conecter vous a l'adresse http://${adresse}/doku"
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -u
|
|
||||||
#check si il y a un argument et exit 1 si y'a pas
|
|
||||||
if [ ! "$1" ] ; then
|
|
||||||
echo "Usage : $0 user >> /var/www/html/dokuwiki/conf/users.auth.php"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# chiffremment du mot de passe $1 avec bcrypt
|
|
||||||
hashpass=$(htpasswd -bnBC 10 "$1" "$1")
|
|
||||||
|
|
||||||
echo "${hashpass}:${1}:${1}@localhost:${1},user"
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -u
|
|
||||||
|
|
||||||
|
|
||||||
./dau.sh anthony >> /var/www/html/dokuwiki/conf/users.auth.php
|
|
||||||
./dau.sh rayan >> /var/www/html/dokuwiki/conf/users.auth.php
|
|
||||||
./dau.sh mathis >> /var/www/html/dokuwiki/conf/users.auth.php
|
|
||||||
./dau.sh lucas >> /var/www/html/dokuwiki/conf/users.auth.php
|
|
||||||
./dau.sh adrien >> /var/www/html/dokuwiki/conf/users.auth.php
|
|
@ -1,50 +0,0 @@
|
|||||||
Nmap version 7.80 ( https://nmap.org )
|
|
||||||
Platform: x86_64-pc-linux-gnu
|
|
||||||
Compiled with: liblua-5.3.3 openssl-1.1.1j libssh2-1.9.0 libz-1.2.11 libpcre-8.39 libpcap-1.10.0 nmap-libdnet-1.12 ipv6
|
|
||||||
Compiled without:
|
|
||||||
Available nsock engines: epoll poll select
|
|
||||||
Starting Nmap 7.80 ( https://nmap.org ) at 2022-03-31 11:02 CEST
|
|
||||||
Nmap scan report for ap23 (10.121.38.78)
|
|
||||||
Host is up (0.00093s latency).
|
|
||||||
Not shown: 65532 closed ports
|
|
||||||
PORT STATE SERVICE VERSION
|
|
||||||
22/tcp open ssh OpenSSH 8.4p1 Debian 5 (protocol 2.0)
|
|
||||||
80/tcp open http Apache httpd 2.4.52
|
|
||||||
| http-ls: Volume /
|
|
||||||
| SIZE TIME FILENAME
|
|
||||||
| - 2022-03-17 15:36 AP23/
|
|
||||||
| 465K 2021-05-14 07:40 adminer.php
|
|
||||||
| - 2020-07-29 11:35 dokuwiki/
|
|
||||||
|_
|
|
||||||
|_http-server-header: Apache/2.4.52 (Debian)
|
|
||||||
|_http-title: Index of /
|
|
||||||
3306/tcp open mysql?
|
|
||||||
| fingerprint-strings:
|
|
||||||
| NULL:
|
|
||||||
|_ Host 'gwsio2.sio.lan' is not allowed to connect to this MariaDB server
|
|
||||||
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
|
|
||||||
SF-Port3306-TCP:V=7.80%I=7%D=3/31%Time=62456E18%P=x86_64-pc-linux-gnu%r(NU
|
|
||||||
SF:LL,4D,"I\0\0\x01\xffj\x04Host\x20'gwsio2\.sio\.lan'\x20is\x20not\x20all
|
|
||||||
SF:owed\x20to\x20connect\x20to\x20this\x20MariaDB\x20server");
|
|
||||||
No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ).
|
|
||||||
TCP/IP fingerprint:
|
|
||||||
OS:SCAN(V=7.80%E=4%D=3/31%OT=22%CT=1%CU=37759%PV=Y%DS=2%DC=T%G=Y%TM=62456E2
|
|
||||||
OS:A%P=x86_64-pc-linux-gnu)SEQ(SP=107%GCD=1%ISR=10C%TI=Z%CI=Z%II=I%TS=A)OPS
|
|
||||||
OS:(O1=M5B4ST11NW7%O2=M5B4ST11NW7%O3=M5B4NNT11NW7%O4=M5B4ST11NW7%O5=M5B4ST1
|
|
||||||
OS:1NW7%O6=M5B4ST11)WIN(W1=FE88%W2=FE88%W3=FE88%W4=FE88%W5=FE88%W6=FE88)ECN
|
|
||||||
OS:(R=Y%DF=Y%T=40%W=FAF0%O=M5B4NNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%A=S+%F=A
|
|
||||||
OS:S%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T5(R
|
|
||||||
OS:=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F
|
|
||||||
OS:=R%O=%RD=0%Q=)T7(R=N)U1(R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%
|
|
||||||
OS:RUCK=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S)
|
|
||||||
|
|
||||||
Network Distance: 2 hops
|
|
||||||
Service Info: Host: ap23.sio.lan; OS: Linux; CPE: cpe:/o:linux:linux_kernel
|
|
||||||
|
|
||||||
TRACEROUTE (using port 1720/tcp)
|
|
||||||
HOP RTT ADDRESS
|
|
||||||
1 0.38 ms 192.168.0.1
|
|
||||||
2 0.89 ms 10.121.38.78
|
|
||||||
|
|
||||||
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
|
|
||||||
Nmap done: 1 IP address (1 host up) scanned in 21.90 seconds
|
|
@ -1,5 +0,0 @@
|
|||||||
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
|
|
||||||
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
|
|
||||||
LISTEN 0 80 *:3306 *:*
|
|
||||||
LISTEN 0 511 *:80 *:*
|
|
||||||
LISTEN 0 128 [::]:22 [::]:*
|
|
Loading…
x
Reference in New Issue
Block a user