Skip to content

Fails to compile on Amazon Linux AMI #1

@dstaley

Description

@dstaley

I spun up an EC2 instance since I don't have access to a machine with 16GB of RAM (and I had difficultly installing libavl on OS X), cloned the repo, installed a libavl RPM (since it's not part of the package manager), and then ran make. This was the result:

[rulesfinder]$ make
cat john.conf.skel rules/d0s3.rule > conf/d0s3.conf
gcc -Wall -g2 -O2 -o rf rf.c -lavl
gcc -Wall -g2 -O2 -o removeknown removeknown.c
removeknown.c: In function ‘main’:
removeknown.c:145:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(r = readwords(wordmap, dstats.st_size, hashmap))
  ^
./removeknown ~/dict_dup < ~/password.lst > cleanpass
~/JohnTheRipper/run/john -w:~/dict_dup -sess:d0s3 -rules:xxx --config:conf/d0s3.conf -stdout | ./rf - cleanpass "`cat rules/d0s3.rule`" 4 | gzip -1 > output/d0s3.out
/bin/sh: output/d0s3.out: No such file or directory
./rf: error while loading shared libraries: libavl.so.1: cannot open shared object file: No such file or directory
fopen: ~/dict_dup: No such file or directory
make: *** [output/d0s3.out] Error 1

This is the output of ldd when run on the rf binary:

[rulesfinder]$ ldd rf
    linux-vdso.so.1 =>  (0x00007fff0ebfe000)
    libavl.so.1 => not found
    libc.so.6 => /lib64/libc.so.6 (0x00007f841d685000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f841da34000)
[rulesfinder]$ sudo find / -name "libavl*"
/usr/lib64/libavl.so.1.5
/usr/lib64/libavl.so

Alright, I feel really dirty about this, but I simply copied libavl.so.1.5 to libavl.so.1, which fixed that error.

There were several nonexistant files that it complained about, but simply creating the directory and touching the files seemed to fix that.

Currently it's running John with different configurations. Hopefully that means it's working!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions