binarygolf / BGGP

Binary Golf Grand Prix
39 stars 9 forks source link

Updated Perl Dingus #16

Open airencracken opened 1 week ago

airencracken commented 1 week ago

Please fill out the following:

---BEGIN BGGPx---
Submit Date: 6/21/2024
BGGP Challenge Number: 5
Author: me
Contact Info (Optional): nothx
Online Presence (Website/Social Media): nah
Target File Type: perl
File Size: 17 (according to stat)
SHA256 Hash: d82c423906f3d6c89a8a8d06539d11842bf56b0c51ced685fef0d8a709255aa1
Target Environment (How do we run the file?): perl -Mojo script.pl "http://binary.golf/5/5"
Any additional info?: Needs mojolicious which is chonkers
Link to PoC video, screenshot, or console output, if any: nah
Link to writeup, if any: no bleh
File contents (base64 encoded please): ZGllIGcocG9wKS0+Ym9keQ==
---END BGGPx---

If this is an update to an existing entry, please include a link to your entry below this text. Reminder that authors can only update an entry once during BGGP.

https://github.com/binarygolf/BGGP/issues/15

netspooky commented 1 week ago

Hi there! I installed mojolicious, but I am not able to get this file to run

When I run per your instructions, this is the output:

$ perl -Mojo script.pl "http://binary.golf/5/5"
Can't locate ojo.pm in @INC (you may need to install the ojo module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/aarch64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl).
BEGIN failed--compilation aborted.
airencracken commented 1 week ago

Hrm. My apologies. I just installed it from portage, perhaps other distros break up the package? I just tested with having installed it via cpanm Mojolicious and it does work. Looks like at least for Ubuntu 24.04 it is included. Sorry for the trouble. https://packages.ubuntu.com/noble/all/libmojolicious-perl/filelist