Git Product home page Git Product logo

clarity's People

Contributors

coosh avatar edouard avatar fcanache avatar incase avatar jivey avatar johntajima avatar kastner avatar lookfirst avatar pc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clarity's Issues

can't convert String into Array (TypeError)

after installing clarity i was trying run it
by

clarity --username=admin --password=secret --port=8989 --include="httpd/.log" /var/log

i got following error

/usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in +': can't convert String into Array (TypeError) from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:inexecute'
from /usr/lib/ruby/1.8/optparse.rb:1267:in call' from /usr/lib/ruby/1.8/optparse.rb:1267:inparse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in catch' from /usr/lib/ruby/1.8/optparse.rb:1254:inparse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in order!' from /usr/lib/ruby/1.8/optparse.rb:1339:inpermute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in parse!' from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:76:inexecute'
from /usr/lib/ruby/1.8/optparse.rb:1724:in options' from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:20:inexecute'
from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/bin/clarity:10
from /usr/bin/clarity:19:in `load'
from /usr/bin/clarity:19

Screenshot

The screenshot in the readme is offline

form submits to blank page on enter

If I submit the search form by pressing enter instead of clicking the button I am sent to a blank page.

To fix this, you could do

 $("#" + search_form).bind("submit", function (event) {
     event.preventDefault();
     Search.submit();
 });

Or something like that instead of putting the onclick handler inline on the button.

clarity is not avaliable

i just installed clarity (gem install clarity json eventmachine eventmachine_httpserver) but the command clarity is not avaliable in my shell.

should i add something to $PATH variable?

i'm using debian 6 / ruby 1.8.7

Can I install this on Ubuntu?

Hi,
Not a issue, but couldn't find any better place to address.
I liked the idea.
But can I install it on Ubuntu?

Problem with install Clarity

Sorry for the inconvenience, I can not install clarity. Any idea how solve it?

vagrant@quantal64:$ sudo clarity /var/log --include '/*'
/var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in block (2 levels) in execute': can't convert String into Array (TypeError) from /usr/lib/ruby/1.9.1/optparse.rb:1360:incall'
from /usr/lib/ruby/1.9.1/optparse.rb:1360:in block in parse_in_order' from /usr/lib/ruby/1.9.1/optparse.rb:1347:incatch'
from /usr/lib/ruby/1.9.1/optparse.rb:1347:in parse_in_order' from /usr/lib/ruby/1.9.1/optparse.rb:1341:inorder!'
from /usr/lib/ruby/1.9.1/optparse.rb:1432:in permute!' from /usr/lib/ruby/1.9.1/optparse.rb:1453:inparse!'
from /var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:76:in block in execute' from /usr/lib/ruby/1.9.1/optparse.rb:1865:inoptions'
from /var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:20:in execute' from /var/lib/gems/1.9.1/gems/clarity-0.9.8/bin/clarity:10:in<top (required)>'
from /usr/local/bin/clarity:23:in load' from /usr/local/bin/clarity:23:in

'
vagrant@quantal64:$

Thanks!

Filenames that don't end in .log are explicitly not supported

There are a few things hardcoded in that seem to prevent log files with extensions other than .log. I changed line 7 of /usr/lib/ruby/gems/1.8/gems/clarity-0.9.2/lib/clarity/commands/tail_command_builder.rb and set the default value of log_files in /usr/lib/ruby/gems/1.8/gems/clarity-0.9.2/lib/clarity/cli.rb to "['/']" which makes things work here for our web logs where are formatted like access_log.1 . These changes probably make sense for a lot of situations, and in cases where .log does matter, it could be specified in the command line when starting clarity. Thanks!

Got an error on clarity /var/log --include '/*'

I am pretty naive to clarity. For trial I installed clarity at my mac. And when I try to run clarity /var/log --include '/*'
It gives me error like
/Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in +': can't convert String into Array (TypeError) from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:inexecute'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:in call' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:inparse_in_order'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in catch' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:inparse_in_order'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1241:in order!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1332:inpermute!'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1353:in parse!' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:76:inexecute'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1717:in options' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:20:inexecute'
from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/bin/clarity:10
from /usr/bin/clarity:19:in `load'
from /usr/bin/clarity:19

Can somebody help me in this?

Directory traversal security vulnerability

Howdy,

Clarity is vulnerable to a simple directory traversal vulnerability that allows access to any file on the server that's readable by the user clarity is running as - take for example /etc/passwd which is a+r.

This occurs because of how Clarity forwards any unknown request in to public_file. The public path and the request path are then concatenated, but there's no sanity check to make sure that the file being accessed actually lives inside Clarity::Public.

The exploit is reproducible simply byas simple as curl http://localhost:8989/../../../../../../../../../etc/passwd

I've got a fix in my fork of coosh's fork over at chrisboulton/clarity@c35751e - I just can't submit a pull request without including the rest of coosh's changes.

Props of course should be given to Yendor picking up the vulnerability in one of our security scans.

Unknown command clarity

user@ubuntu:~$ sudo gem install clarity
PostInstall.txt
Successfully installed clarity-0.9.8
1 gem installed
Installing ri documentation for clarity-0.9.8...
Installing RDoc documentation for clarity-0.9.8...
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
Could not find main page README.rdoc
user@ubuntu:~$ clarity --username=admin --password=secret --port=8989 /var/log
clarity: command not found
user@ubuntu:~$ 

Can you please help to resolve this?
Thank yiou.

No auto-scrolling

Hi everybody,
I can't understand why the auto-scrolling doesn't work. Tried with Firefox and also Explorer (!?) but it doesn't work, not in Search nor in Tail mode. Any suggestions?

Thank you, Stefano.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.