Skip to content

Commit 2dbe201

Browse files
committed
Initial commit
0 parents  commit 2dbe201

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+10048
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
_site/
2+
.sass-cache/
3+
.jekyll-metadata
4+
.bundle/

404.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
5+
---
6+
7+
<div class="page">
8+
<h1 class="page-title">404: Page not found</h1>
9+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}">Head back home</a> to try finding it again.</p>
10+
</div>

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
osce.tsondt.com

Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ubuntu:latest
2+
3+
VOLUME /srv
4+
WORKDIR /srv
5+
6+
ENV BUNDLE_PATH /srv/.bundle/
7+
8+
RUN apt-get update && \
9+
apt-get install -y \
10+
build-essential \
11+
git \
12+
ruby \
13+
ruby-dev \
14+
libxml2-dev \
15+
zlib1g-dev && \
16+
apt-get autoclean && \
17+
gem install bundler
18+
19+
CMD bundle check || bundle install && bundle exec jekyll serve --host 0.0.0.0 --port 4000

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll"
4+
gem 'github-pages'

Gemfile.lock

+202
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.7)
5+
i18n (~> 0.7)
6+
json (~> 1.7, >= 1.7.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
addressable (2.5.0)
11+
public_suffix (~> 2.0, >= 2.0.2)
12+
coffee-script (2.4.1)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.12.2)
16+
colorator (1.1.0)
17+
ethon (0.10.1)
18+
ffi (>= 1.3.0)
19+
execjs (2.7.0)
20+
faraday (0.11.0)
21+
multipart-post (>= 1.2, < 3)
22+
ffi (1.9.17)
23+
forwardable-extended (2.6.0)
24+
gemoji (3.0.0)
25+
github-pages (124)
26+
activesupport (= 4.2.7)
27+
github-pages-health-check (= 1.3.1)
28+
jekyll (= 3.3.1)
29+
jekyll-avatar (= 0.4.2)
30+
jekyll-coffeescript (= 1.0.1)
31+
jekyll-default-layout (= 0.1.4)
32+
jekyll-feed (= 0.9.1)
33+
jekyll-gist (= 1.4.0)
34+
jekyll-github-metadata (= 2.3.1)
35+
jekyll-mentions (= 1.2.0)
36+
jekyll-optional-front-matter (= 0.1.2)
37+
jekyll-paginate (= 1.1.0)
38+
jekyll-readme-index (= 0.0.4)
39+
jekyll-redirect-from (= 0.12.1)
40+
jekyll-relative-links (= 0.3.0)
41+
jekyll-sass-converter (= 1.5.0)
42+
jekyll-seo-tag (= 2.1.0)
43+
jekyll-sitemap (= 1.0.0)
44+
jekyll-swiss (= 0.4.0)
45+
jekyll-theme-architect (= 0.0.3)
46+
jekyll-theme-cayman (= 0.0.3)
47+
jekyll-theme-dinky (= 0.0.3)
48+
jekyll-theme-hacker (= 0.0.3)
49+
jekyll-theme-leap-day (= 0.0.3)
50+
jekyll-theme-merlot (= 0.0.3)
51+
jekyll-theme-midnight (= 0.0.3)
52+
jekyll-theme-minimal (= 0.0.3)
53+
jekyll-theme-modernist (= 0.0.3)
54+
jekyll-theme-primer (= 0.1.7)
55+
jekyll-theme-slate (= 0.0.3)
56+
jekyll-theme-tactile (= 0.0.3)
57+
jekyll-theme-time-machine (= 0.0.3)
58+
jekyll-titles-from-headings (= 0.1.4)
59+
jemoji (= 0.8.0)
60+
kramdown (= 1.13.2)
61+
liquid (= 3.0.6)
62+
listen (= 3.0.6)
63+
mercenary (~> 0.3)
64+
minima (= 2.0.0)
65+
nokogiri (= 1.6.8.1)
66+
rouge (= 1.11.1)
67+
terminal-table (~> 1.4)
68+
github-pages-health-check (1.3.1)
69+
addressable (~> 2.3)
70+
net-dns (~> 0.8)
71+
octokit (~> 4.0)
72+
public_suffix (~> 2.0)
73+
typhoeus (~> 0.7)
74+
html-pipeline (2.5.0)
75+
activesupport (>= 2)
76+
nokogiri (>= 1.4)
77+
i18n (0.8.1)
78+
jekyll (3.3.1)
79+
addressable (~> 2.4)
80+
colorator (~> 1.0)
81+
jekyll-sass-converter (~> 1.0)
82+
jekyll-watch (~> 1.1)
83+
kramdown (~> 1.3)
84+
liquid (~> 3.0)
85+
mercenary (~> 0.3.3)
86+
pathutil (~> 0.9)
87+
rouge (~> 1.7)
88+
safe_yaml (~> 1.0)
89+
jekyll-avatar (0.4.2)
90+
jekyll (~> 3.0)
91+
jekyll-coffeescript (1.0.1)
92+
coffee-script (~> 2.2)
93+
jekyll-default-layout (0.1.4)
94+
jekyll (~> 3.0)
95+
jekyll-feed (0.9.1)
96+
jekyll (~> 3.3)
97+
jekyll-gist (1.4.0)
98+
octokit (~> 4.2)
99+
jekyll-github-metadata (2.3.1)
100+
jekyll (~> 3.1)
101+
octokit (~> 4.0, != 4.4.0)
102+
jekyll-mentions (1.2.0)
103+
activesupport (~> 4.0)
104+
html-pipeline (~> 2.3)
105+
jekyll (~> 3.0)
106+
jekyll-optional-front-matter (0.1.2)
107+
jekyll (~> 3.0)
108+
jekyll-paginate (1.1.0)
109+
jekyll-readme-index (0.0.4)
110+
jekyll (~> 3.0)
111+
jekyll-redirect-from (0.12.1)
112+
jekyll (~> 3.3)
113+
jekyll-relative-links (0.3.0)
114+
jekyll (~> 3.3)
115+
jekyll-sass-converter (1.5.0)
116+
sass (~> 3.4)
117+
jekyll-seo-tag (2.1.0)
118+
jekyll (~> 3.3)
119+
jekyll-sitemap (1.0.0)
120+
jekyll (~> 3.3)
121+
jekyll-swiss (0.4.0)
122+
jekyll-theme-architect (0.0.3)
123+
jekyll (~> 3.3)
124+
jekyll-theme-cayman (0.0.3)
125+
jekyll (~> 3.3)
126+
jekyll-theme-dinky (0.0.3)
127+
jekyll (~> 3.3)
128+
jekyll-theme-hacker (0.0.3)
129+
jekyll (~> 3.3)
130+
jekyll-theme-leap-day (0.0.3)
131+
jekyll (~> 3.3)
132+
jekyll-theme-merlot (0.0.3)
133+
jekyll (~> 3.3)
134+
jekyll-theme-midnight (0.0.3)
135+
jekyll (~> 3.3)
136+
jekyll-theme-minimal (0.0.3)
137+
jekyll (~> 3.3)
138+
jekyll-theme-modernist (0.0.3)
139+
jekyll (~> 3.3)
140+
jekyll-theme-primer (0.1.7)
141+
jekyll (~> 3.3)
142+
jekyll-theme-slate (0.0.3)
143+
jekyll (~> 3.3)
144+
jekyll-theme-tactile (0.0.3)
145+
jekyll (~> 3.3)
146+
jekyll-theme-time-machine (0.0.3)
147+
jekyll (~> 3.3)
148+
jekyll-titles-from-headings (0.1.4)
149+
jekyll (~> 3.3)
150+
jekyll-watch (1.5.0)
151+
listen (~> 3.0, < 3.1)
152+
jemoji (0.8.0)
153+
activesupport (~> 4.0)
154+
gemoji (~> 3.0)
155+
html-pipeline (~> 2.2)
156+
jekyll (>= 3.0)
157+
json (1.8.6)
158+
kramdown (1.13.2)
159+
liquid (3.0.6)
160+
listen (3.0.6)
161+
rb-fsevent (>= 0.9.3)
162+
rb-inotify (>= 0.9.7)
163+
mercenary (0.3.6)
164+
mini_portile2 (2.1.0)
165+
minima (2.0.0)
166+
minitest (5.10.1)
167+
multipart-post (2.0.0)
168+
net-dns (0.8.0)
169+
nokogiri (1.6.8.1)
170+
mini_portile2 (~> 2.1.0)
171+
octokit (4.6.2)
172+
sawyer (~> 0.8.0, >= 0.5.3)
173+
pathutil (0.14.0)
174+
forwardable-extended (~> 2.6)
175+
public_suffix (2.0.5)
176+
rb-fsevent (0.9.8)
177+
rb-inotify (0.9.8)
178+
ffi (>= 0.5.0)
179+
rouge (1.11.1)
180+
safe_yaml (1.0.4)
181+
sass (3.4.23)
182+
sawyer (0.8.1)
183+
addressable (>= 2.3.5, < 2.6)
184+
faraday (~> 0.8, < 1.0)
185+
terminal-table (1.7.3)
186+
unicode-display_width (~> 1.1.1)
187+
thread_safe (0.3.6)
188+
typhoeus (0.8.0)
189+
ethon (>= 0.8.0)
190+
tzinfo (1.2.2)
191+
thread_safe (~> 0.1)
192+
unicode-display_width (1.1.3)
193+
194+
PLATFORMS
195+
ruby
196+
197+
DEPENDENCIES
198+
github-pages
199+
jekyll
200+
201+
BUNDLED WITH
202+
1.15.1

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# OSCE Notebook
2+
3+
This page contains notes, commands, links, etc. that I have collected and produced while doing my Offensive Security Certified Expert (OSCE) Certification Lab.
4+
5+
To preview this site offline:
6+
```
7+
git clone https://github.com/tsondt/osce
8+
```
9+
* with `ruby` and `bundle`:
10+
```
11+
BUNDLE_PATH=.bundle bundle check || \
12+
bundle install && \
13+
bundle exec jekyll serve
14+
```
15+
* with Docker:
16+
```
17+
./docker-build.sh
18+
./docker-run.sh
19+
```
20+
---
21+
Published by [tsondt](https://tsondt.com/) with [Jekyll](https://github.com/jekyll/jekyll) using [BlackDoc](https://github.com/karloespiritu/BlackDoc) theme. [MIT License](LICENSE).

_config.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Setup
2+
title: OSCE Notebook
3+
url: https://osce.tsondt.com
4+
author:
5+
name: tsondt
6+
url: https://tsondt.com
7+
8+
sass:
9+
sass_dir: public/css
10+
style: compressed
11+
12+
exclude:
13+
- "*.sh"
14+
- "Dockerfile"
15+
- "Gemfile*"
16+
- "LICENSE"
17+
- "README.md"
18+
- "CNAME"
19+
20+
gems:
21+
- jekyll-sitemap

_includes/head.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<head>
2+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
3+
4+
<title>
5+
{% if page.title == "Home" %}
6+
{{ site.title }} &middot; {{ site.tagline }}
7+
{% else %}
8+
{{ page.title }} &middot; {{ site.title }}
9+
{% endif %}
10+
</title>
11+
<meta name="description" content="{{ page.description }}">
12+
13+
<link rel="stylesheet" href="/public/css/main.css">
14+
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
15+
</head>

_includes/sidebar.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<div class="sidebar">
2+
<div class="container sidebar-sticky">
3+
<div class="sidebar-about">
4+
<h1>
5+
<a href="{{ site.url }}">
6+
{{ site.title }}
7+
</a>
8+
</h1>
9+
<p class="lead">{{ site.description }}</p>
10+
</div>
11+
12+
<nav class="sidebar-nav">
13+
14+
{% comment %}
15+
The code below dynamically generates a sidebar nav of pages with
16+
`layout: page` in the front-matter. See readme for usage.
17+
{% endcomment %}
18+
19+
{% assign pages_list = site.pages %}
20+
{% for node in pages_list %}
21+
{% if node.title != null %}
22+
{% if node.layout == "page" %}
23+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ site.url }}{{ node.url }}">{{ node.title }}</a>
24+
{% endif %}
25+
{% endif %}
26+
{% endfor %}
27+
28+
<hr>
29+
</nav>
30+
31+
<p>Copyright &copy; <a href="{{ site.author.url }}" class="h6" target="_blank">{{ site.author.name }}</a> {{ site.time | date: '%Y' }}.</p>
32+
33+
<p>All rights reserved.</p>
34+
</div>
35+
</div>

_layouts/compress.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# Jekyll layout that compresses HTML
3+
# v3.0.2
4+
# http://jch.penibelst.de/
5+
# © 2014–2015 Anatol Broder
6+
# MIT License
7+
---
8+
9+
{% capture _LINE_FEED %}
10+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}

_layouts/default.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: compress
3+
---
4+
5+
<!DOCTYPE html>
6+
<html lang="en-us">
7+
8+
{% include head.html %}
9+
10+
<body>
11+
12+
{% include sidebar.html %}
13+
14+
<div class="content container">
15+
{{ content }}
16+
</div>
17+
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)