Jump to content

DarkStar851

Active Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by DarkStar851

  1. If they released a patch, someone would hack around the patch and do it again. Nothing is unhackable! ;)

    Suppose you could packet sniff the network and see if there's anything unique to these "hacked" rooms, then filter them out with a sort of planned Man-in-the-Middle.

  2. The Adafruit store sells them for a fair price, but according to Phillip Torrone they're fresh out. He said they expect to get a few more in soon... so if you don't mind the wait. It'll be ported to LITERALLY EVERYTHING in a few days anyways. They've already got it running on a few Android phones. PSP and Computer's are next I think. ;)

  3. SHAMELESS BUMP

    I ported my Java-version of Groovesnipe over to my Tomcat server (a simple rewrite using JSP) to see how it'd work out.

    Short answer: pretty well. I've got it deployed here: http://freedom.it.cx:8080/groovesnipeTheWorld/

    And all the music is streamed (or downloadable) from a basic edna python server (thanks for the shoutout Darren, great script!) here: http://freedom.it.cx:8180/groovesnipe/

    I've sorted all the tracks in this format: <artist name>/<song name> for ease of use, and I'm working on a template for both the JSPs and edna as well.

    If anyone want's the source, PM me, it's a little messy and it's not really something I'd like to publish.

    Also; if anyone knows how to make an Apache rule that forwards /groovesnipe to the :8080 server, and /music to the :8180 server, let me know, it'd be extremely helpful.

  4. Very slick, painless death. Has anyone worked around the cut-off that stream.php seems to be causing? Songs seem to be dropping off with 10-15 seconds left. No idea what's causing it. :(

    Also: My site's down due to a conflict of interest with my Internet Service Provider, I can run my server, but it's on a bandwidth restriction. I'm upgrading the home plan pretty soon, and it should be up in a week or two.

  5. OnStar can do that now if it is activated on the car.

    I wouldn't be surprised if Onstar worked wether you're paying for it or not.

    The OnStar system uses a proprietary protocol that communicates to their satellites from an antenna integrated into the veichel's over-all design. The antennas are typically quite subtle.

    Anyways, if you had a way to intercept and modify these signals, (possibly with a jammer that also emits whatever signal you desire), you could likely attack ALL cars within a certain radius that use the OnStar protocol.

    To my knowledge, this data is NOT encrypted, at all, in older models. Could be a massive security flaw that could seriously wreak some havoc!

    About the active subscription comment;

    OnStar doesn't accept signals from cars without an active subscription to their service. The packets simply drop, they don't even bother returning a signal to tell the user that the service is not active.

    You can tap into this through the Comm port as well, getting GPS data, car diagnostic details, and the like.

  6. RewriteEngine On
    RewriteRule ^(.*)/(.*).mp3 /stream.php?songid=$1

    Should work, not sure. Haven't tested, and my Regex isn't the best.

    Works.

    Google Chrome 5.0.375.70 beta, for reference. They probably broke something. You under Linux as well?

    Anyways, I'm off to sleep for the night. Let me know if you come up with something a tad more elegant for streaming.. I have an idea, I'll do it up when I wake up, sometime around 3pm likely. :P

    Edit:

    It seems Grooveshark has changed their servers a bit. Updated stream.php code:

    http://pastebin.com/TWwJRSF9

  7. Hmm, fair enough. Granted streaming isn't working at all in Chrome for me, for some strange reason. If you'll note I'm already using a rewrite rule redirecting /*.mp3 to /stream.php?songid=$1, which is satisfactory for personal use.

    Might whip up a quick "Preview" (Flash-player for streaming from the Search or Popular page) later on, it's like 4am here.

  8. Duely noted Brandon. Pro-tip; eliminate ANY whitespace before or after <?php ?>, as if said file/class is included before headers are defined, the whitespace is picked up as unparseable HTML and therefore PHP automatically defines headers. (which for this purpose is highly undesired!)

    If anyone on the project is looking for hosting, I have a box here doing pretty much nothing that could be put to good use. Hosting groovesnipe.it.cx on it at the moment if anyone has any questions about speed.

    EDIT:

    Useful update to stream.php to aid in track downloading (header trick)

    Replace the first part of stream.php (before "if(!...") with:

    &lt;?php
    session_start();
    include "newexec.php";
    $songInfo = json_decode(getSongInfo($_GET["songid"]), true);
    header('Content-Disposition: audio/mpeg; filename=' . $songInfo["result"]["song"]["artistName"]. " - " . $songInfo["result"]["song"]["songName"] . '.mp3');
    header('Content-Type: audio/mpeg');

    NOTE: For this to work, you must go into newexec.php and remove the whitespace line at the very end of the file. Otherwise the script will error with that same annoying headers issue.

    This edit causes the file to be automatically downloaded (in modern browsers) with the filename automatically set as {artistName} - {songName}.mp3, very useful for song cataloging! :D

  9. Haha, good ol' unreliable header();, you're problem is that in stream.php, you're including the functions class before defining the headers. Now, I couldn't be bothered to pick through everything in newexec.php to see what explicitly it was echoing, but here's all you need to do to fix the error.

    Open stream.php

    (optional, but good practice) uncomment "session_start();"

    Move "header('Content-Type: audio/mpeg');" one line before "include "newexec.php";"

    That's it. If anyone would like to see this in practice, or simply would like to get back to downloading, http://groovesnipe.it.cx/

    Enjoy!

    -Scott

×
×
  • Create New...