From be4fee5aee1ad48d6a9ee4b41353f384579b834a Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Tue, 5 Aug 2025 04:14:19 -0600 Subject: [PATCH] added stuff playing with org-mode --- .#book_assessment.md | 1 - book_assessment.html | 512 +++++++++++++++++++++++++++++++++++++++++++ book_assessment.ics | 8 + book_assessment.md | 74 +++++++ book_assessment.org | 149 +++++++++++++ book_assessment.tex | 143 ++++++++++++ 6 files changed, 886 insertions(+), 1 deletion(-) delete mode 120000 .#book_assessment.md create mode 100644 book_assessment.html create mode 100644 book_assessment.ics create mode 100644 book_assessment.org create mode 100644 book_assessment.tex diff --git a/.#book_assessment.md b/.#book_assessment.md deleted file mode 120000 index 4eadc76..0000000 --- a/.#book_assessment.md +++ /dev/null @@ -1 +0,0 @@ -doge@darkrai.122256:1754354351 \ No newline at end of file diff --git a/book_assessment.html b/book_assessment.html new file mode 100644 index 0000000..5e61589 --- /dev/null +++ b/book_assessment.html @@ -0,0 +1,512 @@ + + + + + + + +CEH Self Assessment Report + + + + + +
+

CEH Self Assessment Report

+ +
+

1. Book Assessment Test 1

+
+
+
+

1.1. Assessment blind answers.

+
+

+1.2.2 +

+ +
    +
  1. B, the IP ID is an arbitrary integer that is incremented for each packet. This is how the source and destination keep track of the order of packets to recombine them at the end.
  2. +
  3. C, SQL Injection tries to trick the server into executing SQL code by appending it somewhere. The "OR 1=1" is a common string used for SQL injection because it can be appended to almost anything and return true in SQL.
  4. +
  5. Could be A, B, C, or D. +
      +
    • A would be unlikely due to the rigorous verification process of the stores. But sometimes you can find a way.
    • +
    • B could certainly be an attack path, if you can get a victim to insert an SD card or USB stick, convince them to run an APK file or something else.
    • +
    • C could also be used, there are third party app stores such as F-droid, you could create an insecure app store as long as you can convince the user to trust and install it.
    • +
    • D jailbreaking is a common practice, you could disguise the malware as a jailbreaking tool or state that it requires the user's device to be rooted in order to use it. A rooted device can do so much more than an OEM device.
    • +
  6. +
  7. B, the ARP protocol is used to maintain a table of IP addresses (unsure)
  8. +
  9. C, a buffer overflow is when a program writes into memory beyond the allocated buffer which can impact the values of other variables and thus other functions of the app insecurely.
  10. +
  11. No idea, I understand the fundamental concept here but I do not know how they map to ip ranges.
  12. +
  13. D, I don't actually know, but based on the etymology here I am making a guess. Needs to be studied
  14. +
  15. A, this makes most intuitive sense to me. C doesn't make sense, if probability is higher it should increase risk not decrease.
  16. +
  17. B, This is just an intuitive guess based on word meaning. I'm not sure what a four-way handshake is. Worth studying.
  18. +
  19. D, Stateful firewalls, iirc will actively inspect packets before they reach the endpoints to find malware signatures. Worth reviewing even if right.
  20. +
  21. D, The other answers can be true sometimes but this is the primary purpose afaik. When configuring new applications we make sure they are aligned with our policies.
  22. +
  23. B, this looks like URL encoding because it uses url codes with percent characters.
  24. +
  25. B, dig is a DNS tracing tool, we can specify a Name Server record (ns) before or after the domain. Its worth learning the fundamental DNS record types.
  26. +
  27. A, I believe a DNS Query is sufficient to get this information, may need specific record types. However it is worth learning what a zone transfer is.
  28. +
  29. C, this is just an intuitive guess, this is a topic worth looking into.
  30. +
  31. D, The only one im uncertain of is if this is considered light on network traffic. You do need to ping a lot of addresses sometimes in a short period of time. But otherwise yeah, pings are very commonly allowed and they don't need a port scan. The downside is that plenty of places like to ignore pings (ICMP)
  32. +
  33. No idea, time to read up.
  34. +
  35. B, it's common for secure systems to either not have python installed unless absolutely necessary, or they will only allow a specific user to run the python interpreter. A could also be true in some cases.
  36. +
  37. B, I don't remember the exact syntax, but I believe you can specify source and destination, host would include both.
  38. +
  39. No clue, need to read on this.
  40. +
  41. D, although imitation sounds right, I don't remember it being a core principle of social engineering, authority refers to the authority that a help desk demands which induces trust in the victim.
  42. +
  43. No clue, need to read up
  44. +
  45. No clue, need to read up
  46. +
  47. C, just an intuitive guess, needs review
  48. +
  49. D, i kind of know this, and all the other ones are bullshit lmao
  50. +
  51. C, this is an intuitive guess, privilege escalation would be something you need to exploit the local system for. Which would lead to the others in this list. However, its worth reviewing what they really mean by "local" vulnerability.
  52. +
  53. D, authority is using an "authority" to determine if someone is who they say they are. However this is a bit fuzzy for me. Worth reviewing.
  54. +
  55. D, tailgating is closely following an authorized person to get through a door, man-traps are those rotating contraptions that make sure only one person can enter at a time.
  56. +
  57. A, I have no idea what each of these are other than they are bluetooth attacks. I assume "snarfing" is listening while "jacking" is sending something. So guessing A, but need to review these.
  58. +
  59. No idea, gotta look up Biba
  60. +
+
+
+
+

1.2. Scorin

+
+
+
+

1.2.1. Correctness (did I get the answer right)

+
+ + + +++ ++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Correctness
11
21
31
41
51
60
70
81
91
100
110
121
131
140
150
161
170
181
191
200
211
220
230
241
251
261
270
281
290
300
+
+
+
+

1.2.2. TODO: Do something

+
+
+
print("WHAT")
+def sus(huh):
+    return huh**2
+return sus(2+2+2)
+
+
+ + +
+
def fact(n):
+    return n**2
+fact(2)
+print(fact(2), "HUH")
+return fact(2)
+
+
+ + +
+
print("wow")
+return "wow"
+
+
+ + +
+
def foo(x):
+  if x>0:
+    return x+1
+
+  else:
+    return x-1
+
+return foo(5)
+
+
+ + + + +
+
import random
+if random.randint(0,10) % 2 == 0:
+    return "even"
+else:
+    return "odd"
+
+
+ + + +

+Link to a cool video on org-mode +

+
+
+
+
+
+
+

Created: 2025-08-05 Tue 03:06

+

Validate

+
+ + diff --git a/book_assessment.ics b/book_assessment.ics new file mode 100644 index 0000000..26c7016 --- /dev/null +++ b/book_assessment.ics @@ -0,0 +1,8 @@ +BEGIN:VCALENDAR +VERSION:2.0 +X-WR-CALNAME:book_assessment +PRODID:-////Emacs with Org mode//EN +X-WR-TIMEZONE:MDT +X-WR-CALDESC: +CALSCALE:GREGORIAN +END:VCALENDAR diff --git a/book_assessment.md b/book_assessment.md index e69de29..c38cd63 100644 --- a/book_assessment.md +++ b/book_assessment.md @@ -0,0 +1,74 @@ +* Book Assessment Test 1 +1. B, the IP ID is an arbitrary integer that is incremented for each packet. This is how the source and destination keep track of the order of packets to recombine them at the end. +2. C, SQL Injection tries to trick the server into executing SQL code by appending it somewhere. The "OR 1=1" is a common string used for SQL injection because it can be appended to almost anything and return true in SQL. +3. Could be A, B, C, or D. + - A would be unlikely due to the rigorous verification process of the stores. But sometimes you can find a way. + - B could certainly be an attack path, if you can get a victim to insert an SD card or USB stick, convince them to run an APK file or something else. + - C could also be used, there are third party app stores such as F-droid, you could create an insecure app store as long as you can convince the user to trust and install it. + - D jailbreaking is a common practice, you could disguise the malware as a jailbreaking tool or state that it requires the user's device to be rooted in order to use it. A rooted device can do so much more than an OEM device. +4. B, the ARP protocol is used to maintain a table of IP addresses (unsure) +5. C, a buffer overflow is when a program writes into memory beyond the allocated buffer which can impact the values of other variables and thus other functions of the app insecurely. +6. No idea, I understand the fundamental concept here but I do not know how they map to ip ranges. +7. D, I don't actually know, but based on the etymology here I am making a guess. Needs to be studied +8. A, this makes most intuitive sense to me. C doesn't make sense, if probability is higher it should increase risk not decrease. +9. B, This is just an intuitive guess based on word meaning. I'm not sure what a four-way handshake is. Worth studying. +10. D, Stateful firewalls, iirc will actively inspect packets before they reach the endpoints to find malware signatures. Worth reviewing even if right. +11. D, The other answers can be true sometimes but this is the primary purpose afaik. When configuring new applications we make sure they are aligned with our policies. +12. B, this looks like URL encoding because it uses url codes with percent characters. +13. B, dig is a DNS tracing tool, we can specify a Name Server record (ns) before or after the domain. Its worth learning the fundamental DNS record types. +14. A, I believe a DNS Query is sufficient to get this information, may need specific record types. However it is worth learning what a zone transfer is. +15. C, this is just an intuitive guess, this is a topic worth looking into. +16. D, The only one im uncertain of is if this is considered light on network traffic. You do need to ping a lot of addresses sometimes in a short period of time. But otherwise yeah, pings are very commonly allowed and they don't need a port scan. The downside is that plenty of places like to ignore pings (ICMP) +17. No idea, time to read up. +18. B, it's common for secure systems to either not have python installed unless absolutely necessary, or they will only allow a specific user to run the python interpreter. A could also be true in some cases. +19. B, I don't remember the exact syntax, but I believe you can specify source and destination, host would include both. +20. No clue, need to read on this. +21. D, although imitation sounds right, I don't remember it being a core principle of social engineering, authority refers to the authority that a help desk demands which induces trust in the victim. +22. No clue, need to read up +23. No clue, need to read up +24. C, just an intuitive guess, needs review +25. D, i kind of know this, and all the other ones are bullshit lmao +26. C, this is an intuitive guess, privilege escalation would be something you need to exploit the local system for. Which would lead to the others in this list. However, its worth reviewing what they really mean by "local" vulnerability. +27. D, authority is using an "authority" to determine if someone is who they say they are. However this is a bit fuzzy for me. Worth reviewing. +28. D, tailgating is closely following an authorized person to get through a door, man-traps are those rotating contraptions that make sure only one person can enter at a time. +29. A, I have no idea what each of these are other than they are bluetooth attacks. I assume "snarfing" is listening while "jacking" is sending something. So guessing A, but need to review these. +30. No idea, gotta look up Biba + +* Scoring + +* Correctness (did I get the answer right) +1. 1 +2. 1 +3. 1 +4. 1 +5. 1 +6. 0 +7. 0 +8. 1 +9. 1 +10. 0 +11. 0 +12. 1 +13. 1 +14. 0 +15. 0 +16. 1 +17. 0 +18. 1 +19. 1 +20. 0 +21. 1 +22. 0 +23. 0 +24. 1 +25. 1 +26. 1 +27. 0 +28. 1 +29. 0 +30. 0 + +*** TODO Evaluate understanding + SCHEDULED: <2025-08-06 Tue> + + diff --git a/book_assessment.org b/book_assessment.org new file mode 100644 index 0000000..72af5cd --- /dev/null +++ b/book_assessment.org @@ -0,0 +1,149 @@ +* Book Assessment Test 1 +** Assessment blind answers. + +[[TODO: Do something]] + +1. B, the IP ID is an arbitrary integer that is incremented for each packet. This is how the source and destination keep track of the order of packets to recombine them at the end. +2. C, SQL Injection tries to trick the server into executing SQL code by appending it somewhere. The "OR 1=1" is a common string used for SQL injection because it can be appended to almost anything and return true in SQL. +3. Could be A, B, C, or D. + - A would be unlikely due to the rigorous verification process of the stores. But sometimes you can find a way. + - B could certainly be an attack path, if you can get a victim to insert an SD card or USB stick, convince them to run an APK file or something else. + - C could also be used, there are third party app stores such as F-droid, you could create an insecure app store as long as you can convince the user to trust and install it. + - D jailbreaking is a common practice, you could disguise the malware as a jailbreaking tool or state that it requires the user's device to be rooted in order to use it. A rooted device can do so much more than an OEM device. +4. B, the ARP protocol is used to maintain a table of IP addresses (unsure) +5. C, a buffer overflow is when a program writes into memory beyond the allocated buffer which can impact the values of other variables and thus other functions of the app insecurely. +6. No idea, I understand the fundamental concept here but I do not know how they map to ip ranges. +7. D, I don't actually know, but based on the etymology here I am making a guess. Needs to be studied +8. A, this makes most intuitive sense to me. C doesn't make sense, if probability is higher it should increase risk not decrease. +9. B, This is just an intuitive guess based on word meaning. I'm not sure what a four-way handshake is. Worth studying. +10. D, Stateful firewalls, iirc will actively inspect packets before they reach the endpoints to find malware signatures. Worth reviewing even if right. +11. D, The other answers can be true sometimes but this is the primary purpose afaik. When configuring new applications we make sure they are aligned with our policies. +12. B, this looks like URL encoding because it uses url codes with percent characters. +13. B, dig is a DNS tracing tool, we can specify a Name Server record (ns) before or after the domain. Its worth learning the fundamental DNS record types. +14. A, I believe a DNS Query is sufficient to get this information, may need specific record types. However it is worth learning what a zone transfer is. +15. C, this is just an intuitive guess, this is a topic worth looking into. +16. D, The only one im uncertain of is if this is considered light on network traffic. You do need to ping a lot of addresses sometimes in a short period of time. But otherwise yeah, pings are very commonly allowed and they don't need a port scan. The downside is that plenty of places like to ignore pings (ICMP) +17. No idea, time to read up. +18. B, it's common for secure systems to either not have python installed unless absolutely necessary, or they will only allow a specific user to run the python interpreter. A could also be true in some cases. +19. B, I don't remember the exact syntax, but I believe you can specify source and destination, host would include both. +20. No clue, need to read on this. +21. D, although imitation sounds right, I don't remember it being a core principle of social engineering, authority refers to the authority that a help desk demands which induces trust in the victim. +22. No clue, need to read up +23. No clue, need to read up +24. C, just an intuitive guess, needs review +25. D, i kind of know this, and all the other ones are bullshit lmao +26. C, this is an intuitive guess, privilege escalation would be something you need to exploit the local system for. Which would lead to the others in this list. However, its worth reviewing what they really mean by "local" vulnerability. +27. D, authority is using an "authority" to determine if someone is who they say they are. However this is a bit fuzzy for me. Worth reviewing. +28. D, tailgating is closely following an authorized person to get through a door, man-traps are those rotating contraptions that make sure only one person can enter at a time. +29. A, I have no idea what each of these are other than they are bluetooth attacks. I assume "snarfing" is listening while "jacking" is sending something. So guessing A, but need to review these. +30. No idea, gotta look up Biba + +** Scorin + +*** Correctness (did I get the answer right) + +| # | Correctness | +|----|-------------| +| 1 | 1 | +| 2 | 1 | +| 3 | 1 | +| 4 | 1 | +| 5 | 1 | +| 6 | 0 | +| 7 | 0 | +| 8 | 1 | +| 9 | 1 | +| 10 | 0 | +| 11 | 0 | +| 12 | 1 | +| 13 | 1 | +| 14 | 0 | +| 15 | 0 | +| 16 | 1 | +| 17 | 0 | +| 18 | 1 | +| 19 | 1 | +| 20 | 0 | +| 21 | 1 | +| 22 | 0 | +| 23 | 0 | +| 24 | 1 | +| 25 | 1 | +| 26 | 1 | +| 27 | 0 | +| 28 | 1 | +| 29 | 0 | +| 30 | 0 | + +*** TODO Do something + DEADLINE:<2025-08-06 Wed> + +#+BEGIN_SRC python + print("WHAT") + def sus(huh): + return huh**2 + return sus(2+2+2) +#+END_SRC + +#+RESULTS: +: 36 + + +#+BEGIN_SRC python + def fact(n): + return n**2 + fact(2) + print(fact(2), "HUH") + return fact(2) +#+END_SRC + +#+RESULTS: +: 4 + + +#+begin_src python :session + print("wow") + return "wow" +#+end_src + + +#+TITLE: CEH Self Assessment Report +#+DESCRIPTION: Assessment of current CEH Knowlege based on book assessment on online official self-assessment + + + + +# use return statement +# Entire source block will get indented and used as the body of main() + +#+begin_src python +def foo(x): + if x>0: + return x+1 + + else: + return x-1 + +return foo(5) +#+end_src + +#+RESULTS: +: 6 + + + + +#+begin_src python +import random +if random.randint(0,10) % 2 == 0: + return "even" +else: + return "odd" +#+end_src + +#+RESULTS: +: odd + + + +[[https://www.youtube.com/watch?v=SzA2YODtgK4][Link to a cool video on org-mode]] diff --git a/book_assessment.tex b/book_assessment.tex new file mode 100644 index 0000000..e44c51c --- /dev/null +++ b/book_assessment.tex @@ -0,0 +1,143 @@ +% Created 2025-08-05 Tue 02:55 +% Intended LaTeX compiler: pdflatex +\documentclass[11pt]{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{graphicx} +\usepackage{longtable} +\usepackage{wrapfig} +\usepackage{rotating} +\usepackage[normalem]{ulem} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{capt-of} +\usepackage{hyperref} +\date{\today} +\title{CEH Self Assessment Report} +\hypersetup{ + pdfauthor={}, + pdftitle={CEH Self Assessment Report}, + pdfkeywords={}, + pdfsubject={Assessment of current CEH Knowlege based on book assessment on online official self-assessment}, + pdfcreator={Emacs 30.1 (Org mode 9.7.11)}, + pdflang={English}} +\begin{document} + +\maketitle +\tableofcontents + +\section{Book Assessment Test 1} +\label{sec:org2f48c3d} +\subsection{Assessment blind answers.} +\label{sec:org553115e} + +\ref{sec:org71ca0b7} + +\begin{enumerate} +\item B, the IP ID is an arbitrary integer that is incremented for each packet. This is how the source and destination keep track of the order of packets to recombine them at the end. +\item C, SQL Injection tries to trick the server into executing SQL code by appending it somewhere. The "OR 1=1" is a common string used for SQL injection because it can be appended to almost anything and return true in SQL. +\item Could be A, B, C, or D. +\begin{itemize} +\item A would be unlikely due to the rigorous verification process of the stores. But sometimes you can find a way. +\item B could certainly be an attack path, if you can get a victim to insert an SD card or USB stick, convince them to run an APK file or something else. +\item C could also be used, there are third party app stores such as F-droid, you could create an insecure app store as long as you can convince the user to trust and install it. +\item D jailbreaking is a common practice, you could disguise the malware as a jailbreaking tool or state that it requires the user's device to be rooted in order to use it. A rooted device can do so much more than an OEM device. +\end{itemize} +\item B, the ARP protocol is used to maintain a table of IP addresses (unsure) +\item C, a buffer overflow is when a program writes into memory beyond the allocated buffer which can impact the values of other variables and thus other functions of the app insecurely. +\item No idea, I understand the fundamental concept here but I do not know how they map to ip ranges. +\item D, I don't actually know, but based on the etymology here I am making a guess. Needs to be studied +\item A, this makes most intuitive sense to me. C doesn't make sense, if probability is higher it should increase risk not decrease. +\item B, This is just an intuitive guess based on word meaning. I'm not sure what a four-way handshake is. Worth studying. +\item D, Stateful firewalls, iirc will actively inspect packets before they reach the endpoints to find malware signatures. Worth reviewing even if right. +\item D, The other answers can be true sometimes but this is the primary purpose afaik. When configuring new applications we make sure they are aligned with our policies. +\item B, this looks like URL encoding because it uses url codes with percent characters. +\item B, dig is a DNS tracing tool, we can specify a Name Server record (ns) before or after the domain. Its worth learning the fundamental DNS record types. +\item A, I believe a DNS Query is sufficient to get this information, may need specific record types. However it is worth learning what a zone transfer is. +\item C, this is just an intuitive guess, this is a topic worth looking into. +\item D, The only one im uncertain of is if this is considered light on network traffic. You do need to ping a lot of addresses sometimes in a short period of time. But otherwise yeah, pings are very commonly allowed and they don't need a port scan. The downside is that plenty of places like to ignore pings (ICMP) +\item No idea, time to read up. +\item B, it's common for secure systems to either not have python installed unless absolutely necessary, or they will only allow a specific user to run the python interpreter. A could also be true in some cases. +\item B, I don't remember the exact syntax, but I believe you can specify source and destination, host would include both. +\item No clue, need to read on this. +\item D, although imitation sounds right, I don't remember it being a core principle of social engineering, authority refers to the authority that a help desk demands which induces trust in the victim. +\item No clue, need to read up +\item No clue, need to read up +\item C, just an intuitive guess, needs review +\item D, i kind of know this, and all the other ones are bullshit lmao +\item C, this is an intuitive guess, privilege escalation would be something you need to exploit the local system for. Which would lead to the others in this list. However, its worth reviewing what they really mean by "local" vulnerability. +\item D, authority is using an "authority" to determine if someone is who they say they are. However this is a bit fuzzy for me. Worth reviewing. +\item D, tailgating is closely following an authorized person to get through a door, man-traps are those rotating contraptions that make sure only one person can enter at a time. +\item A, I have no idea what each of these are other than they are bluetooth attacks. I assume "snarfing" is listening while "jacking" is sending something. So guessing A, but need to review these. +\item No idea, gotta look up Biba +\end{enumerate} +\subsection{Scorin} +\label{sec:orgc82a734} + +\subsubsection{Correctness (did I get the answer right)} +\label{sec:orgdfc0e48} + +\begin{center} +\begin{tabular}{rr} +\# & Correctness\\ +\hline +1 & 1\\ +2 & 1\\ +3 & 1\\ +4 & 1\\ +5 & 1\\ +6 & 0\\ +7 & 0\\ +8 & 1\\ +9 & 1\\ +10 & 0\\ +11 & 0\\ +12 & 1\\ +13 & 1\\ +14 & 0\\ +15 & 0\\ +16 & 1\\ +17 & 0\\ +18 & 1\\ +19 & 1\\ +20 & 0\\ +21 & 1\\ +22 & 0\\ +23 & 0\\ +24 & 1\\ +25 & 1\\ +26 & 1\\ +27 & 0\\ +28 & 1\\ +29 & 0\\ +30 & 0\\ +\end{tabular} +\end{center} +\subsubsection{TODO: Do something} +\label{sec:org71ca0b7} +\begin{verbatim} +print("wow") +return "wow" +\end{verbatim} + +\begin{verbatim} +def foo(x): + if x>0: + return x+1 + + else: + return x-1 + +return foo(5) +\end{verbatim} + +\begin{verbatim} +import random +if random.randint(0,10) % 2 == 0: + "even" +else: + "odd" +\end{verbatim} + +\href{https://www.youtube.com/watch?v=SzA2YODtgK4}{Link to a cool video on org-mode} +\end{document}