This shows you the differences between two versions of the page.
cdci:rec [2020/03/20 00:53] mihai.chiroiu created |
cdci:rec [2024/03/29 16:21] (current) mihai.chiroiu |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Due to the fact that we have to work remote, please make sure that you record your screen while working. Here is how. | + | Use OpenStack CDCI template to start a new VM. To access the VM, login to [[https://cloud.grid.pub.ro/project/|cloud.grid.pub.ro]] using your UPB credentials, and from there ssh into the private IP from OpenStack using "ubuntu" as a username and your ssh key. |
+ | |||
+ | <code> | ||
+ | root@cdci:/$ ssh mihai.chiroiu@fep.grid.pub.ro | ||
+ | [mihai.chiroiu@fep8 ~]$ ssh -vv ubuntu@<IP> | ||
+ | </code> | ||
+ | |||
+ | <solution> | ||
+ | Please make sure that you record your screen while working. Here is how. | ||
<code> | <code> | ||
# start the recording after you ssh into the machine | # start the recording after you ssh into the machine | ||
- | ubuntu@cdci-v2:~/cdci/labs/lab03$ asciinema rec | + | ubuntu@cdci-v2:~/cdci/labs/lab03$ asciinema rec lab03_mihai.cast |
[...] | [...] | ||
+ | # !!!IMPORTANT before you start working echo your name in the terminal!!! | ||
+ | ubuntu@cdci-v2:~/cdci/labs/lab03$ echo "Mihai Chiroiu's terminal!" | ||
+ | # ============ IMPORTANT ============ | ||
# do the tasks: enter docker | # do the tasks: enter docker | ||
ubuntu@cdci-v2:~/cdci/labs/lab03$ ./attacker_bash.sh | ubuntu@cdci-v2:~/cdci/labs/lab03$ ./attacker_bash.sh | ||
Line 12: | Line 23: | ||
root@attacker:/# exit | root@attacker:/# exit | ||
# exited docker | # exited docker | ||
- | # stop recording and press enter to upload | + | # stop recording |
ubuntu@cdci-v2:~/cdci/labs/lab03$ exit | ubuntu@cdci-v2:~/cdci/labs/lab03$ exit | ||
asciinema: recording finished | asciinema: recording finished | ||
- | asciinema: press <enter> to upload to asciicinema.cdci.ro, <ctrl-c> to save locally | ||
- | View the recording at: | + | # upload the recording |
- | + | ASCIINEMA_API_URL=https://asciinema.cs.pub.ro asciinema upload lab03_mihai.cast | |
- | http://asciicinema.cdci.ro/a/QJdizlwTeMTSivCJd1M1VLx6l | + | |
- | + | ||
- | ubuntu@cdci-v2:~/cdci/labs/lab03$ | + | |
</code> | </code> | ||
+ | When you finish your work, submit the details on the [[ https://forms.office.com/r/XtEDjcNF0R | form ]]. Double check to see if all is good (https://ctipub-my.sharepoint.com/:x:/g/personal/mihai_chiroiu_upb_ro/EcKTIE5LyNtDsOzKJx5xfOYBWce6CeIBmm4yO43Lt1SdhQ?e=kPJcRL) | ||
+ | |||
+ | </solution> |