By applying a corrective timing difference of 0.05 we can fully decode the message: \emph{\textbf{Starting transmission from Ministry of Cyber affairs. (Agent Scott)Startin}}\\
Final py-code
-\begin{scriptsize}\begin{verbatim}
-#!/usr/bin/env python
-
-import csv
-import binascii
-
-def somedecode(filename):
- with open(filename, 'rb') as csvfile:
- spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
- header = last = None
- ln = 0
- v = ""
-
- for row in spamreader:
- if header is None:
- header = row
- continue
- if last is None:
- last = row
- continue
-
- va = str(int((float(row[1])-float(last[1])-0.05)*10))
- if va not in ["0","1"]:
- va = "1"
-
- v = v+va
- ln += 1
- if ln == 8:
- print binascii.unhexlify('%x' % int(v, 2)),
- v = ""
- ln = 0
- last = row
-
-if __name__ == "__main__":
- somedecode("filtered.dehexed.csv")
-\end{verbatim}\end{scriptsize}
+\begin{redframe}\begin{scriptsize}\begin{verbatim}
+#!/usr/bin/env python
+
+import csv
+import binascii
+
+def somedecode(filename):
+ with open(filename, 'rb') as csvfile:
+ spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
+ header = last = None
+ ln = 0
+ v = ""
+
+ for row in spamreader:
+ if header is None:
+ header = row
+ continue
+ if last is None:
+ last = row
+ continue
+
+ va = str(int((float(row[1])-float(last[1])-0.05)*10))
+ if va not in ["0","1"]:
+ va = "1"
+
+ v = v+va
+ ln += 1
+ if ln == 8:
+ print binascii.unhexlify('%x' % int(v, 2)),
+ v = ""
+ ln = 0
+ last = row
+
+if __name__ == "__main__":
+ somedecode("filtered.dehexed.csv")
+\end{verbatim}\end{scriptsize}\end{redframe}
\subsection{Rep:1.i}
\emph{\textbf{Agent South already successfully infiltrated The minister's office. In the next step, we try to acquire data from the Ministry of Cyber Affair's office network. Stay tuned, I will keep you updated on the progress. (This message was sent by agent Scott)Agent South already successfully infiltrated The minister's office. In the next step, we try to acquire data from the Ministry of Cyber Affair's office network. Stay tuned, I will keep you updated on t}}\\
-code\\
-\begin{verbatim}
-#!/usr/bin/env python
-
-import csv
-import binascii
-
-def somedecode(filename):
- with open(filename, 'rb') as csvfile:
- spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
- header = None
- bits = ""
-
- for row in spamreader:
- if header is None:
- header = row
- continue
-
- if row[2] == '192.168.67.81':
- bits += "{0:06b}".format(int(row[7]))
-
- print binascii.unhexlify('%x' % int(bits, 2))
-
-if __name__ == "__main__":
- somedecode("transmission.csv")
-\end{verbatim}
+Final py-code
+\begin{redframe}\begin{scriptsize}\begin{verbatim}
+#!/usr/bin/env python
+
+import csv
+import binascii
+
+def somedecode(filename):
+ with open(filename, 'rb') as csvfile:
+ spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
+ header = None
+ bits = ""
+
+ for row in spamreader:
+ if header is None:
+ header = row
+ continue
+
+ if row[2] == '192.168.67.81':
+ bits += "{0:06b}".format(int(row[7]))
+
+ print binascii.unhexlify('%x' % int(bits, 2))
+
+if __name__ == "__main__":
+ somedecode("transmission.csv")
+\end{verbatim}\end{scriptsize}\end{redframe}
\subsection{Rep:1.p}