Git Product home page Git Product logo

cyber2_prac_ex's Introduction

Cyber2_Prac_Ex

This repo contains all report of practical exercises in the course Cyber Security 2 at Tampere University

All practical exercises in this course are based on SEED labs. Please find more information about those labs here: https://seedsecuritylabs.org/Labs_20.04/

Installing LaTeX

Follow the link here: https://www.latex-project.org/get/

NOTE: If you are using Window, I would recommend to install Ubuntu (or other distributions you like) following this link: https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#2-install-wsl

I assume all the commands below would be run in the Unix environment.

Install necessary packages

Ensure that I installed below packages throught TeX distributions (TeX Live if you use Linux, MiKTeX if you use Windows, MacTeX if you use MacOS).

graphicx  
amsmath  
parskip  
hyperref  
datetime2  
biblatex

Most common TeX syntax

Create a new section

\section{title_here}

Create a new subsection

\subsection{title_here}

Bolding text

\textbf{text_here}

Italicizing text

\emph{text_here}

Insert picture

Ensure that the image file was stored in figures folder.

\begin{picture}
    \centering
    \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{file_name}
    \caption{title_of_figure}\label{fig:variable_name}
\end{picture}

NOTE: the variable_name is used to refer the correspoding figure in other places with the command \autoref{fig:variable_name}.

Adding references

The first step is to add bibliography into the references.bib file.

Depends on the type of source you found e.g online pages, academic articles, or books we have different types of entry needed to consider:

  • Online websites: @misc
  • Academic article: @article
  • Book: @book

For example

@article{<variable_name>,
    author = {Ley, Michael},
    title = {DBLP: Some Lessons Learned},
    year = {2009},
    issue_date = {August 2009},
    publisher = {VLDB Endowment},
    volume = {2},
    number = {2},
    issn = {2150-8097},
    url = {https://doi.org/10.14778/1687553.1687577},
    doi = {10.14778/1687553.1687577},
    journal = {Proc. VLDB Endow.},
    month = {aug},
    pages = {1493–1500},
    numpages = {8}
    }

The above entry will be rendered as

Michael Ley. 2009. DBLP: some lessons learned. Proc. VLDB Endow. 2, 2 (August 2009), 1493–1500. https://doi.org/10.14778/1687553.1687577

NOTE: you can freely assign the variable_name for later citing by the command \cite{variable_name}. However, I think we should agree that the format of this naming convention as type:short_name e.g article:dblp_lesson_learned.

I think most of sources we will use is online articles. So the simple format for online sources is

@misc{online:short_name,
    title = {title_here},
    author = {author_here},
    url = {url_here},
    urldate = {yyyy-mm-dd} % the date we accessed, not the publishing date
}

If you find a academic paper needs to be cited, it will be easy to find its BibTeX citation format through ACM library. At the page of the article, choosing export citation and then choose BibTeX.

Citing sources

Ensure that the entry with variable_name was added in references.bib.

\cite{variable_name}.

Newline

Newline in LaTeX is \\.

For example

The first line.\\
The second line.

will be rendered as

The first line.
The second line.

If you type

% LaTeX code here
The first line.
The second line

it will be rendered as

The first line.The second line.

NOTE: please remember to wrap your text around 80 characters while editting the report for better visual.

Quotes

If you want to use "" or " in LaTeX, use the backtick symbol ``` for opening quote in LaTeX.

For example

``Hello world'' % it will be rendered as "Hello World"
`Hello world' % it will be rendered as 'Hello World'

Include TeX files

The idea here is that we organize each task in a separate TeX file stored in the folder tex.

In order to insert those TeX files, we use the command

\include{file_path}
% in this case the path will be './tex/file_name'

For example

\include{./tex/task1.tex}

Starting a new report

Run the following command to start a new folder for the practical exercise (if the folder for the corresponding exercise does not exist)

source starter.sh <folder_name> <number_of_tasks>
# <number_of_tasks> here is the total number of tasks we will
# do in the exercise.

For example,

source starter.sh XSS 7

NOTE: after running the above script, the current directory will be moved to the newly created folder.

Git workflow

git pull --rebase
# edit, edit, edit
make
# ensure that no error is raised.
git add .
git commit -m <message>
# the message should start with topic title in []
# for example: if you are working on the task 5 of the XSS exercise
# you can create a message as "[XSS][task_5] first draft"
# the idea here is that it makes easier for us to know what is the target of
# a specific commit by only looking at the very first letters.
git pull --rebase
git push origin master

cyber2_prac_ex's People

Contributors

ancuongnguyen07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.