-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy paththesis.tex
executable file
·283 lines (255 loc) · 7.35 KB
/
thesis.tex
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
%
%
% ***** used to mark places where you need to make changes in this file
%
% Abstract, acknowledgements, chapters, appendices, and references are in separate tex files
%
%
\documentclass[oneref]{urithesis}
\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{multicol}
\usepackage{algorithmic}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{listings}
\usepackage{cmap}
\PassOptionsToPackage{hyphens}{url}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black,filecolor=black}
\usepackage[T1]{fontenc}
\usepackage[tableposition=top]{caption}
\usepackage{color}
\usepackage[utf8x]{inputenc}
\usepackage{xcolor}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{maroon}{RGB}{175,50,53}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\newcommand*{\ColorIfNotInString}[1]{\iftoggle{InString}{#1}{\color{red}#1}}%
\newcommand*{\ProcessQuote}[1]{#1\iftoggle{InString}{\global\togglefalse{InString}}{\global\toggletrue{InString}}}%
\newcommand{\shellcmd}[1]{\\\indent\indent\texttt{\footnotesize\# #1}\\}
\usepackage{seqsplit}
\usepackage{textcomp}
\usepackage{fancyvrb}
\DeclareUnicodeCharacter{"2103}{\textcelsius}
\lstdefinelanguage{JavaScript}{
%
literate=*{0}{{\textcolor{blue}{0}}}{1}%
{1}{{\textcolor{blue}{1}}}{1}%
{2}{{\textcolor{blue}{2}}}{1}%
{3}{{\textcolor{blue}{3}}}{1}%
{4}{{\textcolor{blue}{4}}}{1}%
{5}{{\textcolor{blue}{5}}}{1}%
{6}{{\textcolor{blue}{6}}}{1}%
{7}{{\textcolor{blue}{7}}}{1}%
{8}{{\textcolor{blue}{8}}}{1}%
{9}{{\textcolor{blue}{9}}}{1}%
{.0}{{\textcolor{blue}{.0}}}{1}% Following is to ensure that only periods
{.1}{{\textcolor{blue}{.1}}}{1}% followed by a digit are changed.
{.2}{{\textcolor{blue}{.2}}}{1}%
{.3}{{\textcolor{blue}{.3}}}{1}%
{.4}{{\textcolor{blue}{.4}}}{1}%
{.5}{{\textcolor{blue}{.5}}}{1}%
{.6}{{\textcolor{blue}{.6}}}{1}%
{.7}{{\textcolor{blue}{.7}}}{1}%
{.8}{{\textcolor{blue}{.8}}}{1}%
{.9}{{\textcolor{blue}{.9}}}{1}%
{\ }{{ }}{1}% handle the space
,%
mathescape=true,
morekeywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with, def, script},
morecomment=[s]{/*}{*/},
morecomment=[l]//,
morestring=[b]",
morestring=[b]',
literate= %
{°}{\textdegree{}}1%
}
\lstdefinelanguage{myasm} {
morekeywords={
nop,movl,pushl,popl,cmpl,testl,leal,cmovl,jmp,je,jne,
jz,jnz,jg,jge,jl,jle,addl,subl,imul,idiv,cdq,incl,decl,
negl,andl,orl,xorl,notl,shrl,shll,sarl,sall,ret,leave,
call,setg,setl,setge,setle,setne,sete,movzbl,
eax,ebx,ecx,edx,edi,esi,ebp,esp,al,bl,cl,dl,ah,bh,ch,dh,
mov, add, sub, nop, or, tst, shl, sub, jmp, cmp, pop, push, mul,
NOP,MOVL,PUSHL,POPL,CMPL,TESTL,LEAL,CMOVL,JMP,JE,JNE,
JZ,JNZ,JG,JGE,JL,JLE,ADDL,SUBL,IMUL,IDIV,CDQ,INCL,DECL,
NEGL,ANDL,ORL,XORL,NOTL,SHRL,SHLL,SARL,SALL,RET,LEAVE,
CALL,SETG,SETL,SETGE,SETLE,SETNE,SETE,MOVZBL,
EAX,EBX,ECX,EDX,EDI,ESI,EBP,ESP,AL,BL,CL,DL,AH,BH,CH,DH,
MOV,ADD,SUB,NOP,OR,TST,SHL,SUB,JMP,CMP, POP, PUSH, MUL,
ADD, TEST, INT, MOVZX, RETN, ALIGN, XOR, AND
},
sensitive=true,
morecomment=[s]{/*}{*/},
morecomment=[l]{;},
morestring=[b]",
literate= %
{°}{\textdegree{}}1%
}
\lstdefinelanguage{UbuntuSC}{
sensitive=true
}
\lstset{
language=UbuntuSC,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
tabsize=3,
literate={\$}{{\textcolor{blue}{\$}}}1
}
% Python style for highlighting
\lstset{
language=Python,
aboveskip=1mm,
belowskip=1mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{maroon},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
\lstset{frame=tb,
language=JavaScript,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
numberstyle=\tiny\color{gray},
keywordstyle=\color{maroon},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
\lstdefinestyle{BashInputStyle}{
language=bash,
basicstyle=\small\sffamily\singlespace,
numbers=left,
numberstyle=\tiny,
numbersep=3pt,
frame=tb,
columns=fullflexible,
backgroundcolor=\color{yellow!20},
linewidth=1.0\linewidth,
xleftmargin=0.1\linewidth,
breakatwhitespace=false,
tabsize=3
}
\newcommand*{\Package}[1]{\texttt{#1}}%
\lstset{language=myasm,frame=tb,
aboveskip=3mm,
belowskip=3mm,
columns=flexible,
keywordstyle=\color{maroon},
commentstyle=\color{dkgreen}, breaklines=true,
breakatwhitespace=true,
tabsize=3}
% Top=1.25 inches - 0.05 inches for the header.
%
%\usepackage[total={6.0in, 8.5in},
% top=1.25in, left=1.5in]{geometry}
\usepackage[vmargin={1.25in, 1.25in}, hmargin={1.5in, 1in},
textwidth=6in,
textheight=5.25in]{geometry}
% no limit on percentage of floats per page
\renewcommand{\floatpagefraction}{1.0}
\renewcommand{\topfraction}{1.0}
\renewcommand{\textfraction}{0.0}
% eref puts parenthesis around reference, like "equation (1)"
\def\eref#1{(\ref{#1})}
%
% ***** project type: For CS 298 use "\projectType{Project}" and for CS 299 use "\projectType{Thesis}"
%
\def\projectType{Thesis}
%\def\projectType{Project}
%
% ***** graduation month
%
\def\graduationMonth{May}
%
% ***** advisor's name
%
\def\advisorName{Dr. Thomas Austin}
\def\advisorAffiliation{Department of Computer Science}
%
% ***** first committee member's name
%
\def\firstCommitteeMember{Dr. Chris Pollett}
\def\firstCommitteeMemberAffiliation{Department of Computer Science}
%
% ***** second committee member's name
%
\def\secondCommitteeMember{Mr. Fabio Di Troia}
\def\secondCommitteeMemberAffiliation{University of Sannio}
\setcounter{secnumdepth}{3}
\begin{document}
%
% ***** title
%
\title{Firefox Add-on for Metamorphic JavaScript Malware Detection}
%
% ***** author's name
%
\author{Sravan Kumar Reddy Javaji}
%
% ***** graduation year
%
\copyrightyear{2015}
%
% Do not change this...
%
\ifthenelse{\equal{\projectType}{Thesis}}
{\raggedright \parindent=30pt}
{}
\pagestyle{empty}
%
% ***** abstract is file abs.tex
%
\abstract{abs}
%
% ***** acknowledgements in file ack.tex
%
\acknowledgements{ack}
\setlength{\parskip}{.1 in}
%uncomment the following for single space drafts
%\singlespace
\doublespace
\pagenumbering{arabic}
\setcounter{page}{0}
%
% ***** chapters in files chap1.tex, chap2.tex, and so on
%
\newchapter{chap1}
\newchapter{chap2}
\newchapter{chap3}
\newchapter{chap4}
\newchapter{chap5}
\newchapter{chap6}
%
% ***** bibliography/references in file bib.tex
%
\input bib.tex
%
% ***** appendices in appA.tex, appB.tex, ...
%
\newappendix{appA}
\end{document}