Files
SCR/SCR1.2/TP12/solar-5-TP12-reponses.txt

236 lines
8.9 KiB
Plaintext
Raw Normal View History

2025-03-24 11:36:01 +01:00
I.
./regexp 'aaa' zzzzzaaaaaaaacccccc
Correspondance !
le x{y,} x le caractère et y le nombre de caractère:
./extregexp 'a{3,}' bbbbbaaaaacccccc
Correspondance !
il y a au moins 3 a donc il y a correspondance.
./extregexp 'a{6,}' "zzzzzaaaaaccccc"
Pas de correspondance.
il y a 5 a et non 6 donc pas de correspondance
./regexp '\baaa' zzzzzaaaaaaaccccc
Pas de correspondance.
./regexp '\baaa' "zzzzz aaaaaccccc"
Correspondance !
III)
1.
grep "\.ipv[46]\." sysctl.conf
net.ipv4.tcp_syncookies = 1
#net.ipv4.conf.all.log_martians = 1
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_source_route = 0
net.ipv4.ip_forward = 0
net.ipv6.conf.all.forwarding = 0
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.all.use_tempaddr = 2
#net.ipv4.ip_local_port_range = 32768 61000
2.
La première met des espaces la où le 2ème ne met pas d'espace entre chaque ligne
grep -v "^#" sysctl.conf / grep '^[^#]' sysctl.conf
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 0
net.ipv6.conf.all.forwarding = 0
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.all.use_tempaddr = 2
kernel.sysrq = 0
3.
grep -i "_root_" ca-certificates.conf
mozilla/America_Online_Root_Certification_Authority_1.crt
mozilla/America_Online_Root_Certification_Authority_2.crt
mozilla/Certum_Root_CA.crt
mozilla/Chambers_of_Commece_Root_-_2008.crt
mozilla/DST_Root_CA_X3.crt
mozilla/Deutsche_Telekom_Root_CA_2.crt
mozilla/DigiCert_Assured_ID_Root_CA.crt
mozilla/DigiCert_Global_Root_CA.crt
mozilla/DigiCert_High_Assurance_EV_Root_CA.crt
mozilla/Entrust_Root_Certification_Authority.crt
mozilla/Firmaprofesional_Root_CA.crt
mozilla/GlobalSign_Root_CA.crt
mozilla/GlobalSign_Root_CA_-_R2.crt
mozilla/GlobalSign_Root_CA_-_R3.crt
mozilla/Global_Chambersign_Root_-_2008.crt
mozilla/Go_Daddy_Root_Certificate_Authority_-_G2.crt
mozilla/Hongkong_Post_Root_CA_1.crt
mozilla/Microsec_e-Szigno_Root_CA.crt
mozilla/Microsec_e-Szigno_Root_CA_2009.crt
mozilla/OISTE_WISeKey_Global_Root_GA_CA.crt
mozilla/QuoVadis_Root_CA.crt
mozilla/QuoVadis_Root_CA_2.crt
mozilla/QuoVadis_Root_CA_3.crt
mozilla/RSA_Root_Certificate_1.crt
mozilla/S-TRUST_Authentication_and_Encryption_Root_CA_2005_PN.crt
mozilla/Security_Communication_Root_CA.crt
mozilla/Sonera_Class_1_Root_CA.crt
mozilla/Sonera_Class_2_Root_CA.crt
mozilla/Staat_der_Nederlanden_Root_CA.crt
mozilla/Staat_der_Nederlanden_Root_CA_-_G2.crt
mozilla/Starfield_Root_Certificate_Authority_-_G2.crt
mozilla/Starfield_Services_Root_Certificate_Authority_-_G2.crt
mozilla/Swisscom_Root_CA_1.crt
mozilla/TDC_Internet_Root_CA.crt
mozilla/TDC_OCES_Root_CA.crt
mozilla/TURKTRUST_Certificate_Services_Provider_Root_1.crt
mozilla/TURKTRUST_Certificate_Services_Provider_Root_2.crt
mozilla/TWCA_Root_Certification_Authority.crt
mozilla/UTN_DATACorp_SGC_Root_CA.crt
mozilla/UTN_USERFirst_Email_Root_CA.crt
mozilla/UTN_USERFirst_Hardware_Root_CA.crt
mozilla/VeriSign_Universal_Root_Certification_Authority.crt
mozilla/WellsSecure_Public_Root_Certificate_Authority.crt
mozilla/Wells_Fargo_Root_CA.crt
mozilla/certSIGN_ROOT_CA.crt
mozilla/ePKI_Root_Certification_Authority.crt
mozilla/thawte_Primary_Root_CA.crt
mozilla/thawte_Primary_Root_CA_-_G2.crt
mozilla/thawte_Primary_Root_CA_-_G3.crt
4.
grep '_Class_[0-9]' ca-certificates.conf
mozilla/Buypass_Class_2_CA_1.crt
mozilla/Buypass_Class_3_CA_1.crt
mozilla/Certplus_Class_2_Primary_CA.crt
mozilla/Go_Daddy_Class_2_CA.crt
mozilla/Sonera_Class_1_Root_CA.crt
mozilla/Sonera_Class_2_Root_CA.crt
mozilla/Starfield_Class_2_CA.crt
mozilla/TC_TrustCenter_Class_2_CA_II.crt
mozilla/TC_TrustCenter_Class_3_CA_II.crt
mozilla/ValiCert_Class_1_VA.crt
mozilla/ValiCert_Class_2_VA.crt
mozilla/VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.crt
mozilla/VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.crt
mozilla/Verisign_Class_1_Public_Primary_Certification_Authority.crt
mozilla/Verisign_Class_1_Public_Primary_Certification_Authority_-_G2.crt
mozilla/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.crt
mozilla/Verisign_Class_2_Public_Primary_Certification_Authority_-_G2.crt
mozilla/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.crt
mozilla/Verisign_Class_3_Public_Primary_Certification_Authority.crt
mozilla/Verisign_Class_3_Public_Primary_Certification_Authority_-_G2.crt
mozilla/Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.crt
mozilla/Verisign_Class_4_Public_Primary_Certification_Authority_-_G3.crt
5.
grep -l 'KEYMAP' *
vconsole.conf
6.
grep '(.*)' Xorg.0.log
[ 18.182] (--) evdev: Logitech USB Optical Mouse: Found x and y relative axes
[ 18.182] (II) evdev: Logitech USB Optical Mouse: Configuring as mouse
[ 18.182] (II) evdev: Logitech USB Optical Mouse: Adding scrollwheel support
[ 18.182] (**) evdev: Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
[ 18.182] (**) evdev: Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 18.182] (**) Option "config_info" "udev:/sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:046D:C077.0001/input/input0/event0"
[ 18.182] (II) XINPUT: Adding extended input device "Logitech USB Optical Mouse" (type: MOUSE, id 6)
[ 18.183] (II) evdev: Logitech USB Optical Mouse: initialized for relative axes.
[ 18.183] (**) Logitech USB Optical Mouse: (accel) keeping acceleration scheme 1
[ 18.184] (**) Logitech USB Optical Mouse: (accel) acceleration profile 0
[ 18.184] (**) Logitech USB Optical Mouse: (accel) acceleration factor: 2.000
[ 18.184] (**) Logitech USB Optical Mouse: (accel) acceleration threshold: 4
[ 18.185] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse0)
[ 18.185] (II) No input driver specified, ignoring this device.
[ 18.185] (II) This device may have been added with another device file.
[ 18.187] (II) config/udev: Adding input device Dell Dell USB Entry Keyboard (/dev/input/event1)
[ 18.187] (**) Dell Dell USB Entry Keyboard: Applying InputClass "evdev keyboard catchall"
[ 18.187] (II) Using input driver 'evdev' for 'Dell Dell USB Entry Keyboard'
[ 18.187] (**) Dell Dell USB Entry Keyboard: always reports core events
[ 18.187] (**) evdev: Dell Dell USB Entry Keyboard: Device: "/dev/input/event1"
[ 18.188] (--) evdev: Dell Dell USB Entry Keyboard: Vendor 0x413c Product 0x2107
[ 18.188] (--) evdev: Dell Dell USB Entry Keyboard: Found keys
[ 18.188] (II) evdev: Dell Dell USB Entry Keyboard: Configuring as keyboard
[ 18.188] (**) Option "config_info" "udev:/sys/devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:413C:2107.0002/input/input1/event1"
[ 18.188] (II) XINPUT: Adding extended input device "Dell Dell USB Entry Keyboard" (type: KEYBOARD, id 7)
[ 18.188] (**) Option "xkb_rules" "evdev"
[ 18.188] (**) Option "xkb_model" "pc105"
[ 18.188] (**) Option "xkb_layout" "fr"
[ 18.188] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
7.
grep '\.[[:alnum:]]' krb5.conf
default_realm = ATHENA.MIT.EDU
ATHENA.MIT.EDU = {
admin_server = KERBEROS.MIT.EDU
default_domain = MIT.EDU
mit = mit.edu
lithium = lithium.lcs.mit.edu
ANDREW.CMU.EDU = {
admin_server = vice28.fs.andrew.cmu.edu
.mit.edu = ATHENA.MIT.EDU
mit.edu = ATHENA.MIT.EDU
.media.mit.edu = MEDIA-LAB.MIT.EDU
media.mit.edu = MEDIA-LAB.MIT.EDU
.ucsc.edu = CATS.UCSC.EDU
8.
grep -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]' syslog
Sep 25 16:17:12 RP2-13 ntpd[2234]: Listen normally on 1 lo 127.0.0.1 UDP 123
Sep 25 16:17:12 RP2-13 dhcpcd[2008]: eth0: rebinding lease of 10.14.75.149
Sep 25 16:17:17 RP2-13 dhcpcd[2008]: eth0: leased 10.14.75.149 for 10800 seconds
Sep 25 16:17:17 RP2-13 avahi-daemon[2486]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.14.75.149.
Sep 25 16:17:17 RP2-13 dhcpcd[2008]: eth0: adding route to 10.14.72.0/22
Sep 25 16:17:17 RP2-13 dhcpcd[2008]: eth0: adding default route via 10.14.72.1
Sep 25 16:17:17 RP2-13 avahi-daemon[2486]: Registering new address record for 10.14.75.149 on eth0.IPv4.
Sep 25 16:17:19 RP2-13 ntpd[2234]: Listen normally on 2 eth0 10.14.75.149 UDP 123
Sep 25 16:17:21 RP2-13 ntpd_intres[2294]: DNS 0.fr.pool.ntp.org -> 5.135.162.217
Sep 25 16:17:21 RP2-13 ntpd_intres[2294]: DNS 1.fr.pool.ntp.org -> 37.187.109.209
Sep 25 16:17:24 RP2-13 ntpd_intres[2294]: DNS 2.fr.pool.ntp.org -> 94.23.32.122
Sep 25 16:17:24 RP2-13 ntpd_intres[2294]: DNS 3.fr.pool.ntp.org -> 62.210.28.176
9.
grep -E '[[:digit:]]+\.[[:digit:]]+ \* [[:digit:]]+\.[[:digit:]]+' sensors.conf
set in2_max 3.3 * 1.05
set in3_min 1.9 * 0.95
set in3_max 1.9 * 1.05
set in0_min 1.5 * 0.95
set in0_max 1.5 * 1.05
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in3_min 5.0 * 0.95
set in3_max 5.0 * 1.05
# set in0_min 1.7 * 0.95
# set in0_max 1.7 * 1.05
# set in2_min 3.3 * 0.95
# set in2_max 3.3 * 1.05
# set in3_min 5.0 * 0.95
# set in3_max 5.0 * 1.05
# set in5_min 3.3 * 0.95
# set in5_max 3.3 * 1.05
10.