Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 BGGP 4 (2023), Result has been announced on 31th Oct

views
     
TSMatQuasar
post Oct 31 2023, 03:59 PM

Casual
***
Validating
329 posts

Joined: Jun 2023
user posted image

I ranked last in ELF64....

CianLR is a Google software developer, according to his/her GitHub profile.
TSMatQuasar
post Dec 9 2023, 05:46 PM

Casual
***
Validating
329 posts

Joined: Jun 2023
I plan to reverse ic3queen's UEFI App in the next few weeks, I will then publish my finding on here.

But then I haven't even try to create "Hello,world " UEFI App..... Stay tuned.

https://haunted.computer/@ic3qu33n@infosec....044987010309755

QUOTE
Yo @binarygolf, here’s my entry 0 for BGGP4 —  a self-replicating UEFI app.

This is the first submission of the collab entry that I’m working on w @netspooky
We’ll be golfing this lil self-rep app so expect smaller and smaller entries to follow.

Entry 0 is a UEFI self-rep app I wrote in nasm-syntax x86 asm (1480 bytes) 
xoxo:

***

TVoAAVBFAABkhgMAAAAAAAAAAAAAAAAAoAAGAgsCAAD7AgAAzAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAyAUAAAACAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAudGV4dAAAAPsCAAAAAgAA+wIAAAACAAAAAAAAAAAAAAAAAAAgAFBgLmRhdGEAAADMAAAA/AQAAMwAAAD8BAAAAAAAAAAAAAAAAAAAQAAA0C5yZWxvYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ip////TTHtTIstRwAAAOia////SIHEwAAAAF3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABcAHMAZQBsAGYALQByAGUAcAAtAGcAbwBsAGYALgBlAGYAaQAAADQAAAB1AGgAIABvAGgAaABoACAARQBGAEkAIABlAHIAcgBvAHIAIAANAAoAAAA0AA0ACgAAAA==



This post has been edited by MatQuasar: Dec 9 2023, 05:47 PM
TSMatQuasar
post Dec 10 2023, 02:35 AM

Casual
***
Validating
329 posts

Joined: Jun 2023
This is an update to the ic3queen UEFI app, I try to run it from EFI Shell within QEMU.

Looks like it is not successful. No new file created.
user posted image

This is the command line I used:
CODE
"C:\Program Files\qemu\qemu-system-x86_64" -bios OVMF.fd -hda fat:rw:LYN/


I downloaded OVMF.fd from the Internet, it is an emulated UEFI firmware for virtual machine.

A fast hexdump to the ic3queen.EFI executable found that there is no DOS Stub, just MZ signature followed by PE header. Wow.

Is there anything wrong with my settings?

This post has been edited by MatQuasar: Dec 10 2023, 03:23 AM
TSMatQuasar
post Dec 10 2023, 01:02 PM

Casual
***
Validating
329 posts

Joined: Jun 2023
Ah, finally I solved the ic3queen's problem. I know why it didn't work previously.

From disassembler by IDA Free, I found a path name called "\\self-rep-golf.efi", which means the EFI app must be named exactly that.

user posted image

Now it works as expected:

user posted image

And from hexdump again, I can see 3 sections: code, data and reloc(ation).

Puzzle solved!
TSMatQuasar
post Dec 11 2023, 10:00 PM

Casual
***
Validating
329 posts

Joined: Jun 2023
Another UEFI app entry for BGGP4 is by a German, written in Rust, reduced to 7KB in size from 40KB. But he/she didn't win the smallest UEFI category, because ic3queen's is only 1,480 bytes (written in NASM).

https://www.ytvwld.de/blog/bggp23.html

user posted image

3 Pages < 1 2 3Top
 

Change to:
| Lo-Fi Version
0.0147sec    1.18    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 01:14 PM