Commit d0ddda5d authored by dfpena's avatar dfpena

recipes

parent b95e9a77
#DHEXCOLORSCHEME
#VERSION 0
#possible colors are: BLACK,RED,GREEN,YELLOW,BLUE,MAGENTA,CYAN,WHITE
#possible extra flags are: UNDERLINE,REVERSE,BLINK,DIM,BOLD
BRACKETS: FG=BLACK,BG=BLACK,BOLD
HEXFIELD: FG=WHITE,BG=BLACK
INPUT: FG=BLACK,BG=WHITE
CURSOR: FG=WHITE,BG=BLACK
TEXT: FG=WHITE,BG=BLACK,BOLD
MENU_NORMAL: FG=CYAN,BG=BLACK
MENU_HIGHLIGHT: FG=BLACK,BG=CYAN
MENU_HOTKEY: FG=YELLOW,BG=BLACK,BOLD
MENU_HOTKEY_HI: FG=YELLOW,BG=CYAN,BOLD
FRAME: FG=BLUE,BG=BLACK,BOLD
NORMAL_DIFF: FG=YELLOW,BG=BLACK
CURSOR_DIFF: FG=YELLOW,BG=WHITE,BOLD
HEADLINE: FG=BLUE,BG=BLACK,BOLD
HEADER: FG=BLACK,BG=CYAN
KEYF1:1b 5b 31 31 7e
KEYF2:1b 5b 31 32 7e
KEYF3:1b 5b 31 33 7e
KEYF4:1b 5b 31 34 7e
KEYF5:1b 5b 31 35 7e
KEYF6:1b 5b 31 37 7e
KEYF7:1b 5b 31 38 7e
KEYF8:1b 5b 31 39 7e
KEYF9:1b 5b 32 30 7e
KEYF10:1b 5b 32 31 7e
KEYESC:1b
KEYBACKSPACE:08
KEYDEL:7f
KEYENTER:0a
KEYTAB:09
KEYUP:1b 5b 41
KEYDOWN:1b 5b 42
KEYRIGHT:1b 5b 43
KEYLEFT:1b 5b 44
KEYPGUP:1b 5b 35 7e
KEYPGDOWN:1b 5b 36 7e
KEYHOME:1b 5b 37 7e
KEYEND:1b 5b 38 7e
Lab 1 Setting up ssh
cat ~/.ssh/id_rsa.pub | ssh @HOST "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
1. SSH config for VM unclear if it is completed need lab 1
2.1 Fixed Hosts --done
2.2
sudo apt-get install resolvconf
sudo systemctl start resolvconf.service
sudo systemctl enable resolvconf.service
sudo systemctl status resolvconf.service
sudo nano /etc/resolvconf/resolv.conf.d/head
make edits
nameserver 8.8.8.8
save
reboot 0
cat /etc/resolv.conf should have edits
2.3 Knowledge of Apt
3 Install Apache
install synaptic search apache2
install apache
or sudo apt install apache2
3.2 Install Mysql
-install from apt use password given
3.3 install php
sudo apt update
sudo apt install php libapache2-mod-php
sudo systemctl restart apache2
check: firefox localhost/group.php
3.4
gedit /etc/sudoers
serveroperator ALL=(ALL) /sbin/reboot
serveroperator ALL=(ALL) /sbin/service apache2 restart
Eval
cat /etc/resolv.conf ---> contains 8.8.8.8
cat /etc/hosts ---> contains correct hostname
mysql -u root –p --> works with password
firefox localhost/group.php ---> works
su serveroperator ---> exists
sudo reboot 0 ---> works as serveroperator
sudo service apache2 restart ---> works as serveroperator
Lab 3
1 .
sudo apt install openssl dhex
2.1 (no submission) “openssl enc <ciphertype> -e -in plain.txt -out cipher.bin -k <key_string> -iv <iv_string>”
2.2
Get IU image:
wget https://git.pluricorp.com/dfpena/jack/raw/master/iu.bmp
-aes-128-cbc
-aes-128-ecb
ls - l 4320122
head -c 54 iu.bmp > cbc.bmp
head -c 54 iu.bmp > ecb.bmp
openssl enc -aes-128-cbc -e -in iu.bmp -out cbc.bin -k jacks
openssl enc -aes-128-ecb -e -in iu.bmp -out ecb.bin -k jacks
tail -c 4320068 cbc.bin >> cbc.bmp
tail -c 4320068 ecb.bin >> ecb.bmp
sudo mv ecb.bmp /var/www/html/ecb.bmp
sudo mv cbc.bmp /var/www/html/cbc.bmp
CBC looks like white noise in the shape of the old image
EBC You can see the structure of the underlying image
2.3
openssl enc -aes-128-cbc -e -in test.txt -out cbc.bin -k jacks
openssl enc -aes-128-ecb -e -in test.txt -out ecb.bin -k jacks
openssl enc -aes-128-ofb -e -in test.txt -out ofb.bin -k jacks
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment