Rev - Hubbub
by DarkMasket - Friday March 21, 2025 at 08:43 PM
#11
(Mar 23, 2025, 07:05 PM)TechArtificer Wrote: For those who want to actually "see" what's going on, I can recommend this site:
https://wokwi.com/

Create an Arduino Nano project, add a logic analyzer.
Connect GND pins and pin 10 of the Arduino with channel 0 of the logic analyzer.
Then select the code section, press F1 to open a menu, scroll down to "Upload Firmware and start simulation" and upload the compiled file.
You'll see that the data is being collected by the logic analyzer (this takes about 2min).
Once that is done, stop the simulation to download the output of the logic analyzer.
The file can then be visualized by e.g. PulseView.

Thank I have not heard or that site - I will have to try that out! Thank I appreciate it!
Reply
#12
(Mar 23, 2025, 07:05 PM)TechArtificer Wrote: For those who want to actually "see" what's going on, I can recommend this site:
https://wokwi.com/

Create an Arduino Nano project, add a logic analyzer.
Connect GND pins and pin 10 of the Arduino with channel 0 of the logic analyzer.
Then select the code section, press F1 to open a menu, scroll down to "Upload Firmware and start simulation" and upload the compiled file.
You'll see that the data is being collected by the logic analyzer (this takes about 2min).
Once that is done, stop the simulation to download the output of the logic analyzer.
The file can then be visualized by e.g. PulseView.

Seems pretty cool! Thanks!
Reply
#13
(Mar 23, 2025, 06:44 PM)noter Wrote:
(Mar 23, 2025, 05:55 PM)StingEm Wrote:
(Mar 23, 2025, 05:43 PM)noter Wrote: ANOISYBUZZER ... words do not repeat ... it is just going through main step by step.
Okay so I have an error in my script or and error in the morse decoder -- Dang it! I need to figure out where I went wrong

(Mar 23, 2025, 05:43 PM)noter Wrote: ANOISYBUZZER ... words do not repeat ... it is just going through main step by step.
Okay so I have an error in my script or and error in the morse decoder -- Dang it! I need to figure out where I went wrong

CyberChef = Best Morse Decoder

100 % agree with you
Reply
#14
(Mar 23, 2025, 12:43 PM)Steward Wrote:
(Mar 23, 2025, 12:13 PM)therepairer Wrote: We just need to add the curly braces, HTB{...}, and also we need to add spaces between each word of the output.

So, all capital letters, with spaces between words.

Why dont we just parse main function and decode the flag from the main function that send tones?


this is the working code to reveal the morse from decompiled main function
def morse_from_file(file_name):

    with open(file_name, 'r') as file:
        lines = file.readlines()

    morse_code = []
    delay_count = 0

    for line in lines:
        line = line.strip() 

        if '600' in line:
            morse_code.append('-') 
            delay_count = 0 
        elif '300' in line:
            morse_code.append('.') 
            delay_count = 0 
        elif 'delay' in line:
            delay_count += 1
            if delay_count == 3:
                morse_code.append(' ') 
                delay_count = 0 
        else:
            delay_count = 0 

    return ''.join(morse_code)


if __name__ == '__main__':
    file_name = 'main.c' 
    morse_result = morse_from_file(file_name)
    print(morse_result)

The morse code is not valid , am I doing something wrong ?


uv run solve.py

........----........----..------..........--..------..........------....----........--..--..--..--------------..----..--............------..--..--....--------..
Reply
#15
(Mar 26, 2025, 06:45 PM)x1rx Wrote:
(Mar 23, 2025, 12:43 PM)Steward Wrote:
(Mar 23, 2025, 12:13 PM)therepairer Wrote: We just need to add the curly braces, HTB{...}, and also we need to add spaces between each word of the output.

So, all capital letters, with spaces between words.

Why dont we just parse main function and decode the flag from the main function that send tones?


this is the working code to reveal the morse from decompiled main function
def morse_from_file(file_name):

    with open(file_name, 'r') as file:
        lines = file.readlines()

    morse_code = []
    delay_count = 0

    for line in lines:
        line = line.strip() 

        if '600' in line:
            morse_code.append('-') 
            delay_count = 0 
        elif '300' in line:
            morse_code.append('.') 
            delay_count = 0 
        elif 'delay' in line:
            delay_count += 1
            if delay_count == 3:
                morse_code.append(' ') 
                delay_count = 0 
        else:
            delay_count = 0 

    return ''.join(morse_code)


if __name__ == '__main__':
    file_name = 'main.c' 
    morse_result = morse_from_file(file_name)
    print(morse_result)

The morse code is not valid , am I doing something wrong ?


uv run solve.py

........----........----..------..........--..------..........------....----........--..--..--..--------------..----..--............------..--..--....--------..


Hey! I think the problem is in the code you decompiled. what is decoded code you have?
Reply
#16
(Mar 26, 2025, 06:45 PM)x1rx Wrote:
(Mar 23, 2025, 12:43 PM)Steward Wrote:
(Mar 23, 2025, 12:13 PM)therepairer Wrote: We just need to add the curly braces, HTB{...}, and also we need to add spaces between each word of the output.

So, all capital letters, with spaces between words.

Why dont we just parse main function and decode the flag from the main function that send tones?


this is the working code to reveal the morse from decompiled main function
def morse_from_file(file_name):

    with open(file_name, 'r') as file:
        lines = file.readlines()

    morse_code = []
    delay_count = 0

    for line in lines:
        line = line.strip() 

        if '600' in line:
            morse_code.append('-') 
            delay_count = 0 
        elif '300' in line:
            morse_code.append('.') 
            delay_count = 0 
        elif 'delay' in line:
            delay_count += 1
            if delay_count == 3:
                morse_code.append(' ') 
                delay_count = 0 
        else:
            delay_count = 0 

    return ''.join(morse_code)


if __name__ == '__main__':
    file_name = 'main.c' 
    morse_result = morse_from_file(file_name)
    print(morse_result)

The morse code is not valid , am I doing something wrong ?


uv run solve.py

........----........----..------..........--..------..........------....----........--..--..--..--------------..----..--............------..--..--....--------..

.-
-. --- .. ... -.--
-... ..- --.. --.. . .-.
-.-. --- -- -- .- -. -.. ...
.- - - . -. - .. --- -.
Reply
#17
(Apr 05, 2025, 02:05 AM)fr34cker Wrote:
(Mar 26, 2025, 06:45 PM)x1rx Wrote:
(Mar 23, 2025, 12:43 PM)Steward Wrote:
(Mar 23, 2025, 12:13 PM)therepairer Wrote: We just need to add the curly braces, HTB{...}, and also we need to add spaces between each word of the output.

So, all capital letters, with spaces between words.

Why dont we just parse main function and decode the flag from the main function that send tones?


this is the working code to reveal the morse from decompiled main function
def morse_from_file(file_name):

    with open(file_name, 'r') as file:
        lines = file.readlines()

    morse_code = []
    delay_count = 0

    for line in lines:
        line = line.strip() 

        if '600' in line:
            morse_code.append('-') 
            delay_count = 0 
        elif '300' in line:
            morse_code.append('.') 
            delay_count = 0 
        elif 'delay' in line:
            delay_count += 1
            if delay_count == 3:
                morse_code.append(' ') 
                delay_count = 0 
        else:
            delay_count = 0 

    return ''.join(morse_code)


if __name__ == '__main__':
    file_name = 'main.c' 
    morse_result = morse_from_file(file_name)
    print(morse_result)

The morse code is not valid , am I doing something wrong ?


uv run solve.py

........----........----..------..........--..------..........------....----........--..--..--..--------------..----..--............------..--..--....--------..

.-
-. --- .. ... -.--
-... ..- --.. --.. . .-.
-.-. --- -- -- .- -. -.. ...
.- - - . -. - .. --- -.

that  morse means 
A NOISY BUZZER COMMANDS ATTENTION
Reply
#18
morse translater

https://mattfedder.com/blog/ham/MorseTranslater
Reply
#19
(Apr 05, 2025, 07:28 AM)Phoka Wrote:
(Apr 05, 2025, 02:05 AM)fr34cker Wrote:
(Mar 26, 2025, 06:45 PM)x1rx Wrote:
(Mar 23, 2025, 12:43 PM)Steward Wrote:
(Mar 23, 2025, 12:13 PM)therepairer Wrote: We just need to add the curly braces, HTB{...}, and also we need to add spaces between each word of the output.

So, all capital letters, with spaces between words.

Why dont we just parse main function and decode the flag from the main function that send tones?


this is the working code to reveal the morse from decompiled main function
def morse_from_file(file_name):

    with open(file_name, 'r') as file:
        lines = file.readlines()

    morse_code = []
    delay_count = 0

    for line in lines:
        line = line.strip() 

        if '600' in line:
            morse_code.append('-') 
            delay_count = 0 
        elif '300' in line:
            morse_code.append('.') 
            delay_count = 0 
        elif 'delay' in line:
            delay_count += 1
            if delay_count == 3:
                morse_code.append(' ') 
                delay_count = 0 
        else:
            delay_count = 0 

    return ''.join(morse_code)


if __name__ == '__main__':
    file_name = 'main.c' 
    morse_result = morse_from_file(file_name)
    print(morse_result)

The morse code is not valid , am I doing something wrong ?


uv run solve.py

........----........----..------..........--..------..........------....----........--..--..--..--------------..----..--............------..--..--....--------..

.-
-. --- .. ... -.--
-... ..- --.. --.. . .-.
-.-. --- -- -- .- -. -.. ...
.- - - . -. - .. --- -.

that  morse means 
A NOISY BUZZER COMMANDS ATTENTION

put it inside HTB{here} maintaining spaces and u got the flag...
Reply
#20
[/quote]

that  morse means 
A NOISY BUZZER COMMANDS ATTENTION
[/quote]

put it inside HTB{here} maintaining spaces and u got the flag...
[/quote]

i already solved that tho
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,187 2 hours ago
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,495 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 398 Yesterday, 10:36 PM
Last Post: op334
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 369 92,015 Yesterday, 04:10 PM
Last Post: sabbyahmed
  CBBH Write Ups hiddenhacker 22 6,229 Yesterday, 06:39 AM
Last Post: Usercomplex

Forum Jump:


 Users browsing this forum: 1 Guest(s)