misc/bytemancy_2

This commit is contained in:
2026-07-03 01:16:16 +09:00
parent e851d7fff1
commit f63eb99e40
2 changed files with 29 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import sys
while(True):
try:
print('⊹──────[ BYTEMANCY-2 ]──────⊹')
print("☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐")
print()
print('Send me the HEX BYTE 0xFF 3 times, side-by-side, no space.')
print()
print("☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐")
print('⊹─────────────⟡─────────────⊹')
print('==> ', end='', flush=True)
user_input = sys.stdin.buffer.readline().rstrip(b"\n")
if user_input == b"\xff\xff\xff":
print(open("./flag.txt", "r").read())
break
else:
print("That wasn't it. I got: " + str(user_input))
print()
print()
print()
except Exception as e:
print(e)
break
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
result="$(echo "FFFFFF" | xxd -r -p)"
nc lonely-island.picoctf.net 60405 <<<"$result"