[UPDATE] - 2022

This commit is contained in:
2022-09-07 17:36:35 +02:00
parent dc4268717c
commit 1ef8caccbd
17 changed files with 267 additions and 55 deletions
Executable
+1
View File
@@ -0,0 +1 @@
client
+15
View File
@@ -0,0 +1,15 @@
cd
ls
pwd
ll
ls
rm a
touch a
ll
ls -al
id
ll
ls
rm a
ls
vi /etc/hosts
+39
View File
@@ -0,0 +1,39 @@
# This viminfo file was generated by Vim 8.2.
# You may edit it if you're careful!
# Viminfo version
|1,4
# Value of 'encoding' when this file was written
*encoding=latin1
# hlsearch on (H) or off (h):
~h
# Command Line History (newest to oldest):
:q
|2,0,1661249269,,"q"
# Search String History (newest to oldest):
# Expression History (newest to oldest):
# Input Line History (newest to oldest):
# Debug Line History (newest to oldest):
# Registers:
# File marks:
'0 1 0 /etc/hosts
|4,48,1,0,1661249269,"/etc/hosts"
# Jumplist (newest first):
-' 1 0 /etc/hosts
|4,39,1,0,1661249269,"/etc/hosts"
# History of marks within files (newest to oldest):
> /etc/hosts
* 1661249268 0
" 1 0
+2
View File
@@ -4,6 +4,7 @@ if [[ -f /etc/first ]]
then
[[ -f /home/isen/.gen/hostname ]] && cat /home/isen/.gen/hostname | sudo tee -a /etc/hosts &> /dev/null
[[ -f /home/isen/.gen/backup.sh ]] && /usr/bin/shc -f /home/isen/.gen/backup.sh -o /home/isen/backup_isen && sudo rm -f /home/isen/backup.sh.x.c
sudo mv /home/isen/backup_isen /usr/bin/
[[ -f /home/isen/.gen/motd ]] && sudo cp /home/isen/.gen/motd /etc/motd
[[ -d /home/isen/.ssh ]] && mv /home/isen/.ssh /home/isen/.ssh.orig
[[ -d /home/isen/.gen/.ssh ]] && cp -rp /home/isen/.gen/.ssh /home/isen/.ssh
@@ -35,6 +36,7 @@ if [[ -f /etc/first ]]
echo -n "."
done
sudo rm /etc/first
sudo rm -Rf /home/isen/.gen /home/isen/.ssh.orig
killall -9 bash
fi
+9
View File
@@ -0,0 +1,9 @@
.-------.
/ * /|
/_______/ |
| |*|
| * | /
| |/
'-------'
Regular → Executable
+3 -8
View File
@@ -1,10 +1,5 @@
ASTIER Guillaume
LEFEBVRE Loic
CATANESE Yann
USER One
MAN Two
GUY Three
DEMO Guillaume
DEMO Yann
DEMO Loic
LEFBVRE Loic
CASTANESS Yann
EVIL Empire
+10
View File
@@ -0,0 +1,10 @@
ASTIER Guillaume
LEFEBVRE Loic
CATANESE Yann
USER One
MAN Two
GUY Three
DEMO Guillaume
DEMO Yann
DEMO Loic
+2 -2
View File
@@ -1,11 +1,11 @@
#!/bin/bash
Backup=$(date +%s)_$(hostname)_isen.tar.bz2
Backup=$(date +%Y%m%d%H%M)_$(hostname)_isen.tar.bz2
echo "BACKUP : /home/isen/${Backup}"
echo -n "ARCHIVE : "
sudo tar -jcvf /tmp/${Backup} /home/isen /root/ /etc/&> /dev/null
sudo tar -jcvf /tmp/${Backup} --exclude=/home/isen/*_isen.tar.bz2 /home/isen/Notes &> /dev/null
[[ $? -eq 0 ]] && echo OK || echo FAILED
echo -n "COPY : "