Point: 200
Cryptography
Theres tapping coming in from the wires. What's it saying nc jupiter.challenges.picoctf.org 48247.
What kind of encoding uses dashes and dots?
First a netcat command given in the challenge description is ran in the terminal.
% nc jupiter.challenges.picoctf.org 48247
.--. .. -.-. --- -.-. - ..-. { -- ----- .-. ... ...-- -.-. ----- -.. ...-- .---- ... ..-. ..- -. .---- ..--- -.... .---- ....- ...-- ---.. .---- ---.. .---- }A morse code is returned from the server. A python library called morse-talk is used to convert the dots and dashes to convert the encrypted message. The steps done are as below.
Install morse-talk using below command.
% pip install morse-talkThe following python code is used to programmatically convert the morse code into plain text.
import morse_talk as mdecode
code = ".--. .. -.-. --- -.-. - ..-. { -- ----- .-. ... ...-- -.-. ----- -.. ...-- .---- ... ..-. ..- -. .---- ..--- -.... .---- ....- ...-- ---.. .---- ---.. .---- }"
## Special character braces are taken out from the morse code as the decoder doesn't handle the braces.
code=code.replace('{','')
code=code.replace('}','')
mdecode.decode(code)
'PICOCTFSOLUTIONHERE'none