init
This commit is contained in:
parent
5f6f929393
commit
d3527cdd00
|
@ -0,0 +1 @@
|
|||
ifconfig -l
|
|
@ -0,0 +1,2 @@
|
|||
ifconfig en0 | grep broadcast | cut -d " " -f6
|
||||
arp -a | cut -d "(" -f2 | cut -d ")" -f1
|
|
@ -0,0 +1 @@
|
|||
ifconfig en1 | grep "ether"
|
|
@ -0,0 +1 @@
|
|||
netstat -nr | grep default | head -1
|
|
@ -0,0 +1 @@
|
|||
nslookup slash16.org | grep Server
|
|
@ -0,0 +1 @@
|
|||
/etc/resolv.conf
|
|
@ -0,0 +1 @@
|
|||
nslookup slash16.org 8.8.8.8
|
|
@ -0,0 +1,4 @@
|
|||
whois slash16.org
|
||||
|
||||
Je regarde la ligne name server, ici AwS => Amazon Web Services.
|
||||
Il y a aussi chez qui le nom de domaine a ete achete.
|
|
@ -0,0 +1,3 @@
|
|||
Address: 163.172.250.12
|
||||
Address: 163.172.250.13
|
||||
Address: 163.172.250.11
|
|
@ -0,0 +1 @@
|
|||
traceroute slash16.org
|
|
@ -0,0 +1 @@
|
|||
nat-1 (10.60.1.11)
|
|
@ -0,0 +1 @@
|
|||
ipconfig getifaddr en0
|
|
@ -0,0 +1 @@
|
|||
e1r5p9.42.fr
|
|
@ -0,0 +1 @@
|
|||
/etc/resolv.conf
|
|
@ -0,0 +1,4 @@
|
|||
open /etc/hosts
|
||||
add these two lines :
|
||||
46.19.122.85 42.fr
|
||||
46.19.122.85 intra.42.fr
|
|
@ -0,0 +1 @@
|
|||
awk -F: '{printf("%-24s%-24s%-24s\n", $1, $3, $6)}' /etc/passwd
|
|
@ -0,0 +1,5 @@
|
|||
for var in "$@"
|
||||
do
|
||||
pkill -u $var
|
||||
userdel -f $var
|
||||
done
|
|
@ -0,0 +1,12 @@
|
|||
((nbr=$RANDOM % 100 + 1))
|
||||
guess=-1
|
||||
echo "Find the mystery number (between 1 and 100) !!!"
|
||||
while ((guess != nbr)); do
|
||||
read -p 'Enter a number : ' guess
|
||||
if (( guess < nbr )); then
|
||||
echo "Mystery number is superior to the input number."
|
||||
elif (( guess > nbr )); then
|
||||
echo "Mystery number is inferior to the input number."
|
||||
fi
|
||||
done
|
||||
echo "Congrats ! You found the mystery number !"
|
|
@ -0,0 +1,4 @@
|
|||
console-setup.sh dbus irqbalance kmod procps rsyslog sudo
|
||||
cron hwclock.sh keyboard-setup.sh networking rsync ssh udev
|
||||
|
||||
ce sont des daemons/run commands, on peut les afficher avec ls /etc/init.d
|
|
@ -0,0 +1,11 @@
|
|||
ssh :
|
||||
|
||||
ssh user@ip -p 22
|
||||
|
||||
puis taper son mdp
|
||||
|
||||
session graphique :
|
||||
|
||||
Allumer l'ordinateur
|
||||
Entrer son login
|
||||
Entrer son password
|
Loading…
Reference in New Issue