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
635dbe12
Commit
635dbe12
authored
Sep 20, 2020
by
dfpena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed ip
parent
48283dac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
lab1.sh
lab1.sh
+2
-2
recipe.txt
recipe.txt
+12
-6
No files found.
lab1.sh
View file @
635dbe12
...
@@ -5,8 +5,8 @@ wget https://git.pluricorp.com/dfpena/jack/raw/master/client_lab1.sh
...
@@ -5,8 +5,8 @@ wget https://git.pluricorp.com/dfpena/jack/raw/master/client_lab1.sh
chmod
+x client_lab1.sh
chmod
+x client_lab1.sh
cat
client_lab1.sh | ssh cadmin@192.168.122.188
cat
client_lab1.sh | ssh cadmin@192.168.122.188
wget
jacksvm.local
/ecb.bmp
wget
192.168.122.188
/ecb.bmp
wget
jacksvm.local
/cbc.bmp
wget
192.168.122.188
/cbc.bmp
gimp ecb.bmp
gimp ecb.bmp
gimp cbc.bmp
gimp cbc.bmp
...
...
recipe.txt
View file @
635dbe12
...
@@ -74,8 +74,8 @@ sudo service apache2 restart ---> works as serveroperator
...
@@ -74,8 +74,8 @@ sudo service apache2 restart ---> works as serveroperator
Lab 3
Lab 3
Create Working directory
Create Working directory
mkdir 1520_lab3_
username
mkdir 1520_lab3_
jrmuraka
cd 1520_lab3_
username
cd 1520_lab3_
jrmuraka
...
@@ -94,7 +94,7 @@ wget https://git.pluricorp.com/dfpena/jack/raw/master/iu.bmp
...
@@ -94,7 +94,7 @@ wget https://git.pluricorp.com/dfpena/jack/raw/master/iu.bmp
ls - l
4320122
ls - l
#3858054
head -c 54 iu.bmp > cbc.bmp
head -c 54 iu.bmp > cbc.bmp
head -c 54 iu.bmp > ecb.bmp
head -c 54 iu.bmp > ecb.bmp
...
@@ -102,8 +102,8 @@ head -c 54 iu.bmp > ecb.bmp
...
@@ -102,8 +102,8 @@ 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-cbc -e -in iu.bmp -out cbc.bin -k jacks
openssl enc -aes-128-ecb -e -in iu.bmp -out ecb.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
385000
cbc.bin >> cbc.bmp
tail -c
4320068
ecb.bin >> ecb.bmp
tail -c
385000
ecb.bin >> ecb.bmp
sudo mv ecb.bmp /var/www/html/ecb.bmp
sudo mv ecb.bmp /var/www/html/ecb.bmp
...
@@ -159,5 +159,11 @@ openssl rsautl -decrypt -inkey private1.pem -in key.bin.enc -out key.dec.bin
...
@@ -159,5 +159,11 @@ openssl rsautl -decrypt -inkey private1.pem -in key.bin.enc -out key.dec.bin
openssl enc -d -aes-256-cbc -in cipher.enc -out plain.txt -pass file:./key.dec.bin
openssl enc -d -aes-256-cbc -in cipher.enc -out plain.txt -pass file:./key.dec.bin
cd ..
cd ..
zip -r 1520_lab3_
username
zip -r 1520_lab3_
jrmuraka
wget https://git.pluricorp.com/dfpena/jack/raw/master/lab1.sh
chmod +x lab1.sh
./lab1.sh
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