forked from 0x4xel/0x4xel.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.latex
154 lines (137 loc) · 6.89 KB
/
index.latex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
hidelinks,
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\newenvironment{Shaded}{}{}
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\BuiltInTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}}
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}}
\newcommand{\ImportTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{\textbf{#1}}}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\NormalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\author{}
\date{}
\begin{document}
*Your vault have the following machines
\hypertarget{machines}{%
\subsection{Machines}\label{machines}}
\begin{Shaded}
\begin{Highlighting}[]
\NormalTok{const \{fieldModifier: f\} = this.app.plugins.plugins["metadata{-}menu"].api;}
\NormalTok{dv.table([\textquotesingle{}Name\textquotesingle{}, \textquotesingle{}Avatar\textquotesingle{},\textquotesingle{}Difficulty\textquotesingle{},\textquotesingle{}User Flag\textquotesingle{}, \textquotesingle{}Root Flag\textquotesingle{},\textquotesingle{}Stars\textquotesingle{}, \textquotesingle{}OS\textquotesingle{}],}
\NormalTok{ dv.pages("\#machine")}
\NormalTok{ .filter(p =\textgreater{} p.file.path.includes("Machine"))}
\NormalTok{ .filter(p =\textgreater{} !p.file.path.includes("fileClass"))}
\NormalTok{ .filter(p =\textgreater{} !p.file.path.includes("templates"))}
\NormalTok{ .map(p =\textgreater{} [}
\NormalTok{ p.file.link,}
\NormalTok{ \textquotesingle{}\textless{}img style="max{-}width:70px" src="https://www.hackthebox.com/\textquotesingle{}+p.avatar+\textquotesingle{}"\textgreater{}\textquotesingle{},}
\NormalTok{ f(dv,p,"difficulty\_text"),}
\NormalTok{ f(dv,p,"user\_flag"),}
\NormalTok{ f(dv,p,"root\_flag"),}
\NormalTok{ f(dv,p,"stars"),}
\NormalTok{ f(dv,p,"os")}
\NormalTok{ ]).sort(b =\textgreater{} b.created )}
\NormalTok{ )}
\end{Highlighting}
\end{Shaded}
\hypertarget{machines-in-vault-with-user-but-not-root}{%
\subsection{Machines in vault with USER but not
ROOT}\label{machines-in-vault-with-user-but-not-root}}
\begin{Shaded}
\begin{Highlighting}[]
\NormalTok{const \{fieldModifier: f\} = this.app.plugins.plugins["metadata{-}menu"].api;}
\NormalTok{dv.table([\textquotesingle{}Name\textquotesingle{}, \textquotesingle{}Avatar\textquotesingle{},\textquotesingle{}Difficulty\textquotesingle{},\textquotesingle{}User Flag\textquotesingle{}, \textquotesingle{}Root Flag\textquotesingle{},\textquotesingle{}Stars\textquotesingle{}, \textquotesingle{}OS\textquotesingle{}],}
\NormalTok{ dv.pages("\#machine")}
\NormalTok{ .filter(p =\textgreater{} p.file.path.includes("Machine"))}
\NormalTok{ .filter(p =\textgreater{} !p.file.path.includes("fileClass"))}
\NormalTok{ .filter(p =\textgreater{} !p.file.path.includes("templates"))}
\NormalTok{ .filter(p =\textgreater{} !p.root\_flag)}
\NormalTok{ .map(p =\textgreater{} [}
\NormalTok{ p.file.link,}
\NormalTok{ \textquotesingle{}\textless{}img style="max{-}width:70px" src="https://www.hackthebox.com/\textquotesingle{}+p.avatar+\textquotesingle{}"\textgreater{}\textquotesingle{},}
\NormalTok{ f(dv,p,"difficulty\_text"),}
\NormalTok{ f(dv,p,"user\_flag"),}
\NormalTok{ f(dv,p,"root\_flag"),}
\NormalTok{ f(dv,p,"stars"),}
\NormalTok{ f(dv,p,"os")}
\NormalTok{ ]).sort(b =\textgreater{} b.created )}
\NormalTok{ )}
\end{Highlighting}
\end{Shaded}
\end{document}