News for hackers. Stuff that matters.
Re:Code Search API by JosephRedfern on Friday July 19, 2013 @10:47AM (#6070479)
Looks good. Hopefully someone will write something to automagically search for unintentionally exposed sensitive files and notify the repo owner - when the "human" version of Code Search came out, a lot of private keys and other such things were discovered.
Re:Code Search API by beaumartinez on Friday July 19, 2013 @11:02AM (#6070577)
The other possibility is that someone creates a malicious service that harvests and tries connecting using those keys. Scary indeed.
Re:Code Search API by bfish510 on Friday July 19, 2013 @12:03PM (#6070998)
People leave private keys in repos all the time. I'm pretty sure this talk goes over it pretty well. https://www.youtube.com/watch?v=AwUJ9vpR7Vg
Re:Code Search API by eli on Friday July 19, 2013 @11:26AM (#6070762)
I'm not sure I want automated bots contacting me through github.
Re:Code Search API by JosephRedfern on Friday July 19, 2013 @11:44AM (#6070886)
Even if it's letting you know your id_rsa file and ~/.ssh/config is exposed? I know I'd want to know...
Re:Code Search API by extempo on Friday July 19, 2013 @01:39PM (#6071652)
Malicious bots don't care if there is an API. They can screen scrape easily.
Re:Code Search API by eli on Sunday July 21, 2013 @02:32PM (#6079719)
I'm sure malicious bots do try to mass message repository owners through Github. It's called spam and every platform over a certain size experiences it. I expect Github already has measures in place to block it.
Re:Code Search API by ihsw on Friday July 19, 2013 @11:33AM (#6070813)
Why not? Serious question.
Re:Code Search API by eli on Friday July 19, 2013 @01:44PM (#6071691)
When I searched Github it seemed like most of the supposedly leaked passwords were actually examples or placeholders and not a problem.

It would be one thing if Github ran (or at least sanctioned) a feature that warned you of possible security problems, but I don't think I'd like potentially multiple, poorly-coded bots going around messaging repo owners.

Re:Code Search API by negrit on Friday July 19, 2013 @10:49AM (#6070492)
Please someone code it.
Re:Code Search API by bowmessage on Friday July 19, 2013 @11:14AM (#6070680)
Can't wait for a code completion editor plugin based off of this API.. 20 requests per minute isn't too bad.
Re:Code Search API by jlarocco on Friday July 19, 2013 @12:07PM (#6071020)
What do you have in mind? I'm not seeing a good use case.

There are already really good ways to do that which don't involve making connections to remote servers.

Re:Code Search API by bowmessage on Friday July 19, 2013 @12:53PM (#6071319)
I suppose there are already templating abilities written into the popular code editors, but something that maybe takes the first two or three lines of what you've written (maybe a common JDBC connection style block) and identifies it as such. I'm not sure if it would be incredibly useful but it would be interesting to see what came of it.
Re:Code Search API by benwr on Friday July 19, 2013 @11:52AM (#6070933)
What I want to know is, when will it support regular expressions?
Re:Code Search API by archivator on Friday July 19, 2013 @01:57PM (#6071767)
To me, Github search is kinda useless. When I search for anything Android related (i.e. usage search for some framework type), I get a billion copies of the main Android source. The signal to noise ratio is almost 0..
Re:Code Search API by arikrak on Friday July 19, 2013 @04:30PM (#6072777)
You can filter the repo results by their number of stars and forks.
Re:Code Search API by boyter on Friday July 19, 2013 @06:19PM (#6073339)
Interesting. Will have to look into integrating this with searchcode.com

My biggest issue with github search is it still has issues with searches like $i++ as it will not match something like for(i=0;i++;i<100) which is occasionally frustrating. For reference a comparison http://searchcode.com/?q=i%2B%2B vs https://github.com/search?q=i%2B%2B&type=Code&ref=searchresu...

Re:Code Search API by cscheid on Friday July 19, 2013 @12:07PM (#6071019)
I've been waiting for this for so long! Any word on when it will be available for Github Enterprise?
Re:Code Search API by mcantrell on Friday July 19, 2013 @11:03AM (#6070592)
One great use for this would be to search for known vulnerable code and then get people to patch it.
Re:Code Search API by arafalov on Friday July 19, 2013 @07:28PM (#6073604)
I want to search by filename but also limit by repository's stars or similar.
Re:Code Search API by kylekyle on Friday July 19, 2013 @11:28AM (#6070778)
What's wrong with command line git grep?
Re:Code Search API by ihsw on Friday July 19, 2013 @11:34AM (#6070816)
It doesn't search though every repository on github.
Re:Code Search API by aeontech on Friday July 19, 2013 @11:36AM (#6070831)
... it doesn't allow you to search repositories that you don't have checked out?