diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..c139e44
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+*.png filter=lfs diff=lfs merge=lfs -text
+*.jpg filter=lfs diff=lfs merge=lfs -text
+*.jpeg filter=lfs diff=lfs merge=lfs -text
diff --git a/posts/xfactor2/images/HOLD UP, SOMETHING AINT RIGHT.png b/posts/xfactor2/images/HOLD UP, SOMETHING AINT RIGHT.png
new file mode 100644
index 0000000..dd4d628
--- /dev/null
+++ b/posts/xfactor2/images/HOLD UP, SOMETHING AINT RIGHT.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a39afdebd550306344ce218464e1a6b0901d8ad0d074d272451a3901561394d6
+size 136517
diff --git a/posts/xfactor2/images/Me when I absolutely HACK my way into the Hypersecret company.png b/posts/xfactor2/images/Me when I absolutely HACK my way into the Hypersecret company.png
new file mode 100644
index 0000000..3679e28
--- /dev/null
+++ b/posts/xfactor2/images/Me when I absolutely HACK my way into the Hypersecret company.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21a5b2c8c290387d72b545f02794e5f82797dda285fdc69c7cb49927bb85eaf8
+size 131706
diff --git a/posts/xfactor2/images/Rare picture of Cesar the GOAT making this first blood possible.png b/posts/xfactor2/images/Rare picture of Cesar the GOAT making this first blood possible.png
new file mode 100644
index 0000000..9d4c030
--- /dev/null
+++ b/posts/xfactor2/images/Rare picture of Cesar the GOAT making this first blood possible.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a85869a8d3168fb98dfa84834927faca647988ef38838a7e50de00a6e0db1d8d
+size 1082307
diff --git a/posts/xfactor2/images/fail.png b/posts/xfactor2/images/fail.png
new file mode 100644
index 0000000..78f8ebe
--- /dev/null
+++ b/posts/xfactor2/images/fail.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3154026b334d1f5cc8786764fd5e126bfdfb5933a760d1cbff5d0acaac728593
+size 67201
diff --git a/posts/xfactor2/images/hahayes.png b/posts/xfactor2/images/hahayes.png
new file mode 100644
index 0000000..1a89379
--- /dev/null
+++ b/posts/xfactor2/images/hahayes.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f0e4091410415c1176e57fb0aeecc195e52e90d59b4ffdee45be82543b28f9ff
+size 667691
diff --git a/posts/xfactor2/images/itsalive.png b/posts/xfactor2/images/itsalive.png
new file mode 100644
index 0000000..9b0c609
--- /dev/null
+++ b/posts/xfactor2/images/itsalive.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0dfe15f57e7b07a40f729dd5ea51ff2ccc16e5697c800af95ecc825e82f75846
+size 55616
diff --git a/posts/xfactor2/images/packet-building.png b/posts/xfactor2/images/packet-building.png
new file mode 100644
index 0000000..982b357
--- /dev/null
+++ b/posts/xfactor2/images/packet-building.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9dd691bfba2a01fb6d43b78c5cfaf5472337b077bcd296a8eebfd5717f79957e
+size 267531
diff --git a/posts/xfactor2/images/requests.png b/posts/xfactor2/images/requests.png
new file mode 100644
index 0000000..42ed875
--- /dev/null
+++ b/posts/xfactor2/images/requests.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b281c101fa6daca499038900c7164107a4b2516948f7386fa4d430e56a5ec94f
+size 43267
diff --git a/posts/xfactor2/images/responses.png b/posts/xfactor2/images/responses.png
new file mode 100644
index 0000000..1c272c2
--- /dev/null
+++ b/posts/xfactor2/images/responses.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4239d1e7b8248059bcbbc10414b0505f718a9c5d8a588e99df64ec8d10579e24
+size 32379
diff --git a/posts/xfactor2/images/thatsallfolks.png b/posts/xfactor2/images/thatsallfolks.png
new file mode 100644
index 0000000..ae86eb5
--- /dev/null
+++ b/posts/xfactor2/images/thatsallfolks.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:17929be292f5117e5532dc30f0175a8d25bf78a014c36116357ae9e3cc3a01bb
+size 347514
diff --git a/posts/xfactor2/images/win.png b/posts/xfactor2/images/win.png
new file mode 100644
index 0000000..fc66c6f
--- /dev/null
+++ b/posts/xfactor2/images/win.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4519386d86a9a1fd7a0ded157c92d04dff15324f261a5ad0ed28fcfa1386ba55
+size 96085
diff --git a/posts/xfactor2/images/wireshark-1.png b/posts/xfactor2/images/wireshark-1.png
new file mode 100644
index 0000000..bdf3e8a
--- /dev/null
+++ b/posts/xfactor2/images/wireshark-1.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3e05321b28186d01fc27d0fcc1ad804cf4f062b532edb8933000615a4b2a8645
+size 197597
diff --git a/posts/xfactor2/images/wireshark-2.png b/posts/xfactor2/images/wireshark-2.png
new file mode 100644
index 0000000..7d36cfe
--- /dev/null
+++ b/posts/xfactor2/images/wireshark-2.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93d6f933989dd5962528fddfa69fe4e81485f54c84462a127273c5d9c0d43320
+size 264424
diff --git a/posts/xfactor2/index.md b/posts/xfactor2/index.md
index b65867d..2222241 100644
--- a/posts/xfactor2/index.md
+++ b/posts/xfactor2/index.md
@@ -6,20 +6,20 @@ tags: ["writeup", "FCSC2022", "hardware"]
---
## Quick recap
-Great ! We've finally HACKED the first part of the user logon in Xfactor1/2 and we're now facing a 2FA form.
+Great! We've finally HACKED the first part of the user logon in Xfactor1/2 and we're now facing a 2FA form.
+
+
-
+
+
I present to you, U2F-Emulated.
+
+
Bruh moment
@@ -373,13 +373,13 @@ Woopsie, sorry but this solution needs you to repeat these instructions until yo I know I know, this isn't very fancy, but it works. I think that it might be able to optimise this solution even further by inspecting the requests and responding with the correct answer (that actually was the next step if this didn't work). Anyway, after a few tries, the screen looks a bit different: - + -YAY ! Now onto the next challenge ! (Oh and don't forget to kill the frankenmulator if you don't want it to eat all your U2F challenges :wink:) +YAY! Now onto the next challenge! (Oh and don't forget to kill the frankenmulator if you don't want it to eat all your U2F challenges :wink:) ## Useful links -- Structures paquets CTAP1/U2F : https://doc.riot-os.org/structctap__hid__pkt__t.html -- Infos sur FIDO : https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-client-to-authenticator-protocol-v2.0-id-20180227.html -- MSG command : https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-client-to-authenticator-protocol-v2.0-id-20180227.html#usb-hid-msg +- CTAP1/U2F packets structure: https://doc.riot-os.org/structctap__hid__pkt__t.html +- FIDO infos: https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-client-to-authenticator-protocol-v2.0-id-20180227.html +- MSG command: https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-client-to-authenticator-protocol-v2.0-id-20180227.html#usb-hid-msg - WINK command (blinks the LED): https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-client-to-authenticator-protocol-v2.0-id-20180227.html -- AUTHENTICATE MSG : https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html#introduction +- AUTHENTICATE MSG: https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html#introduction