sighook / pixload

Image Payload Creating/Injecting tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSX | Solution

iosdec opened this issue · comments

I had a few issues with getting this working on OSX, here is my solution:

Download GD, String-CRC32 and Image-ExifTool from here (download link on the left):
https://metacpan.org/pod/GD
https://metacpan.org/pod/distribution/String-CRC32/CRC32.pod
https://metacpan.org/pod/Image::ExifTool

Unzip:

tar -zxf GD-2.71.tar.gz
tar -zxf String-CRC32-1.7.tar.gz
tar -zxf Image-ExifTool-11.50.tar.gz

Install GD:

cd GD-2.71
perl Makefile.PL
make
make test
sudo make install

Install String-CRC32:

cd String-CRC32-1.7
perl Makefile.PL
make
make test
sudo make install

Install Image-ExifTool:

cd Image-ExifTool-11.50
perl Makefile.PL
make
make test
sudo make install

@iosdec Cool, thanks.

What about Image::ExifTool? It needs for jpg payloading.

@chinarulezzz dear can you please explain does it work with executable(binary file) . What is the purpose of this tool , will it execute the payload and display the image.

@chinarulezzz Added Image-ExifTool installation instructions too

@iosdec Huge thanks, for your help.

I remembered that there is cpanminus. It probably is able to ease the routine.

@tehseensagar Please refer to #2 and #4.

@chinarulezzz you’re welcome! yes that’s correct, but this was the first thing I tried but gave up with it. must be something to do with where cpan stores the modules compared to ‘sudo make install’

commented

@iosdec hey, while installing String-CRC32 have an issue on step 3 - make test -
could you please take a look? i'm using Mac OS 10.15 -
` String-CRC32-1.7 ᐅ make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/crc.t .. Can't load './blib/arch/auto/String/CRC32/CRC32.bundle' for module String::CRC32: dlopen(./blib/arch/auto/String/CRC32/CRC32.bundle, 2): Symbol not found: _Perl_xs_apiversion_bootcheck
Referenced from: ./blib/arch/auto/String/CRC32/CRC32.bundle
Expected in: flat namespace
in ./blib/arch/auto/String/CRC32/CRC32.bundle at /usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
at t/crc.t line 3.
Compilation failed in require at t/crc.t line 3.
BEGIN failed--compilation aborted at t/crc.t line 3.
t/crc.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Test Summary Report

t/crc.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=1, Tests=0, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.01 cusr 0.00 csys = 0.03 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 255
`

@bugrymenko

I added a Dockerfile (see README for instructions). Maybe that helps you.

Regards.

heh, there is a perl way to install modules with all their dependencies properly.
run from command line sudo perl -MCPAN -e shell
and afterwards in perl command line you can make
install GD and install String::CRC32 and install Image::ExifTool

Screenshot 2020-06-18 08:22:57
PLZ HELP ME IN THIS ERROR