Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 28 Feb 2013 21:23:19 +0100
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: Fuzzing with regular expressions

On 28 Feb, 2013, at 20:59 , magnum <john.magnum@...hmail.com> wrote:
> Anway this just lead to the next obstacle :-)
> 
> $ rexgen 'abc[0-9]'
> lua: /usr/local/bin/rexgen:3: module 'rexgen' not found:
> 	no field package.preload['rexgen']
> 	no file '/usr/local/share/lua/5.2/rexgen.lua'
> 	no file '/usr/local/share/lua/5.2/rexgen/init.lua'
> 	no file '/usr/local/lib/lua/5.2/rexgen.lua'
> 	no file '/usr/local/lib/lua/5.2/rexgen/init.lua'
> 	no file './rexgen.lua'
> 	no file '/usr/local/lib/librexgen.so'
> stack traceback:
> 	[C]: in function 'require'
> 	/usr/local/bin/rexgen:3: in main chunk
> 	[C]: in ?
> 
> $ find /usr/local -name "rexgen*"
> /usr/local/bin/rexgen
> /usr/local/bin/rexgen.lua
> 
> Now I'm not quite sure what to do. Did it try to find itself and failed? I must be close now :-P

Nailed this too. In two places, library ending ".so" is hardcoded, whereas it's ".dylib" on OSX. After changing that, it finally works:

$ rexgen 'abcd{0,3}'
abc
abcd
abcdd
abcddd

I have no idea how you would do it canonically in cmake, that's for you to find out :-)

magnum

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.