Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jack
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dave Pena PhD
jack
Commits
d0ddda5d
Commit
d0ddda5d
authored
Sep 17, 2020
by
dfpena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recipes
parent
b95e9a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
156 additions
and
0 deletions
+156
-0
.dhexrc
.dhexrc
+41
-0
recipe.txt
recipe.txt
+115
-0
No files found.
.dhexrc
0 → 100644
View file @
d0ddda5d
#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
recipe.txt
0 → 100644
View file @
d0ddda5d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment