• WolfDJ 4.0 - In-Game MP3 Streaming
    436 replies, posted
  • [QUOTE=mr.wolf;32739470]Here's the download link for the first song on the list, Needed Change by 12th Planet featuring Skrillex. The song is 3:12 and is apparently the leaked version. Took me more time to write this post than it did to grab the link. [url]http://music.theminiserver.com/media/music/75.mp3?r=6714[/url][/QUOTE] Did you get the directory? or just type a random number Did you get it off of the songlist?
  • Grab the list of available songs [url]http://music.theminiserver.com/songlist.php[/url] ( You can find this in your lua cache if you don't have someone hand it to you like you did ) Grab a hash from the songlist for the song you want and plug it in here [url]http://music.theminiserver.com/song.php?id=hash[/url] ( Again, you can see the specific URL and parameters from the cache ) If you're running chrome, then just fire up the network console when the song starts playing and see exactly where the mp3 file lives. Copy paste the url and download the mp3. Done. Even if you were to implement restrictions on the useragent and referer, all of these can be spoofed. With a little CURL, you can easily send whatever headers you want, and have the server think you're a gmod client requesting something for the DJ, being referred by the DJ. It's stupidly simple. ( Check my code posted on the last page for an example ) The only way to lock someone out is if the gameserver issues a command to the webserver to allow access to the URL for a specific amount of time, and the mp3 is protected by a forwarding script file. I'm not going to bother to implement that for a free open source project. If you want to do it, I've told you how, feel free.
  • [QUOTE=camcole1;32773554]Wow, how do you get it from sass though? or even breakpoint[/QUOTE] For sass I went into their server and used wireshark to analyze my packet flow, filtered down to port 80, since you pretty much HAVE to do it using http protocol with source, unless you're using an external module. Anyway, narrowed it down to the request it was getting and entered the URL in my browser. However, as you'll find out if you try it, the URL works fine if you've issued a request from the gameserver to play music, and while the request is valid, you can open it in your external browser and download it if you want. However, after the gameserver request expires, the link will 404, even if you just refresh the page. Therefore, logic dictates that they have a forwarding script set up to only allow access if the gameserver has auth'd it, and 404 it otherwise. The actual music files probably live in a non web-accessible directory and get pulling in through readfile or something. I haven't looked into breakpoint, and I don't care that much. If you're trying to steal music from other people, learn how networks work and find out these things for yourself. I tire of having to do things for you and explain them. [editline]14th October 2011[/editline] TL;DR You can't.
  • That error happened again. This time I got: [code] 22:42:03 > PrintTable(WolfDJ.ServerQueue)... 1<TAB>=<TAB><TAB>Stack trace: 2<TAB>=<TAB>Aha|Take On Me|3|51|pop|54dba3980a28b401b75159bffe992b87 [/code] Seems like it failed to get info about one song, and dumped part of the stack trace into the table?
  • [QUOTE=jimbodude;32784731]That error happened again. This time I got: [code] 22:42:03 > PrintTable(WolfDJ.ServerQueue)... 1<TAB>=<TAB><TAB>Stack trace: 2<TAB>=<TAB>Aha|Take On Me|3|51|pop|54dba3980a28b401b75159bffe992b87 [/code][/QUOTE] &#9834; &#9834; &#9834; &#9834; &#9834; &#9834; &#9834; &#9834; Take on me, take me on I'll be gone In a day or two &#9834; &#9834; &#9834; &#9834; &#9834;
  • [QUOTE=camcole1;32773554]Wow, how do you get it from sass though? or even breakpoint[/QUOTE] Why are you so persistent on finding out. It's nothing special. Here, I'll make it easy for you. [url]http://radio.breakpointservers.com/[/url] Provides a list of all the songs [url]http://radio.breakpointservers.com/song.php[/url] Plays the song using a flash player [url]http://radio.breakpointservers.com/getfile.php[/url] Is used by song.php to provide access to a mp3 in an inaccessible directory which also has some restrictions and precautions from limiting your access. There, now leave me alone and stop asking people to "[url=http://www.facepunch.com/threads/1130665]crack[/url]" it.
  • this is not easy!!! first of all, you disabled direct viewing of the directory, and second, you never gave the variables to play the song
  • [QUOTE=camcole1;32815363]this is not easy!!![/QUOTE] Yes, it really is. [QUOTE=camcole1;32815363]first of all, you disabled direct viewing of the directory[/QUOTE] There is no directory to view, you need to read. [QUOTE=BlackAwps;32815048] [url]http://radio.breakpointservers.com/getfile.php[/url] Is used by song.php [B]to provide access to a mp3 in an inaccessible directory[/B] which also has some restrictions and precautions from limiting your access.[/QUOTE] [QUOTE=camcole1;32815363]you never gave the variables to play the song[/QUOTE] You could easily find out.
  • Camcole1, the trolling is over, stop trying to get into our server. It isn't going to happen, nor is anyone going to help you.
  • Out of curiosity, are you guys even actually using WolfDJ, or a derivative, or is yours your own?
  • Its our own, but he has been posting/making threads all over FP to find someone to help him get into our server. This is just one of many said posts.
  • [QUOTE=Jetsurf;32843494]Its our own, but he has been posting/making threads all over FP to find someone to help him get into our server. This is just one of many said posts.[/QUOTE] Cool stuff. Great work on it.
  • no one ever helped me!!!!!!! i am superadmin but the latest update broke it registering me as admin on wolfdj
  • [QUOTE=camcole1;32854053]no one ever helped me!!!!!!! i am superadmin but the latest update broke it registering me as admin on wolfdj[/QUOTE] Let me get this straight. You're running around trying to illegally download other people's music for your own server, asking people to help you crack into other people's servers in order to illegally obtain said music, and you're expecting people to help you with a problem you're having. *sigh* First, how is your admin status being set? Second, copy paste your ply:HasDJRights() function from the config Third, make sure the IsAdmin() function returns true for you.
  • [QUOTE=camcole1;32914727]That new update broke the get admin status thing,,,,, can you fix it wolf?[/QUOTE] can you actually provide useful information
  • you try yourself?? Tell me based off of many maps and/or gamemodes played that add to queue will always show instead of Nominate
  • [QUOTE=camcole1;32914812]you try yourself?? Tell me based off of many maps and/or gamemodes played that add to queue will always show instead of Nominate[/QUOTE] you want it fixed, you do it yourself. I'm not installing this addon so I can get the error you're experiencing fixed
  • [QUOTE=camcole1;32914915]so..... i am just suggesting.... Coders always want users to submit bugs[/QUOTE] if you want it fixed, do a little work and actually tell us what's wrong and provide the error I am not going to go count, but I doubt Wolf wants to go through a few hundred lines of code because you can't simply provide the error you get.
  • [QUOTE=camcole1;32914915]so..... i am just suggesting.... Coders always want users to submit bugs[/QUOTE] You never gave me the information I asked you about.... [quote]First, how is your admin status being set? Second, copy paste your ply:HasDJRights() function from the config Third, make sure the IsAdmin() function returns true for you.[/quote]
  • [QUOTE=camcole1;32915950]i am a retard,,,,, you have to tell me what to do[/QUOTE] [img]http://bananatree.im/i/320379142011222210.png[/img]
  • i set my admin through the users.txt before the update that friday and i received 0 errors..... I do not know what error you want me to receive
  • I will spell this out for you. You gave one answer out of the three things he asked/suggested. That being how you are defining admin. He also asked you to paste a couple lines of code from the config file that comes with the dj. Navigate to lua/wolfdj/config.lua and paste this function (at least I think he means this since I don't ever remember seeing ply:HasDJRights() and this has to do with the admin being able to add to server queue.): [code]function WolfDJ:CanAddSongs( pl ) // By default, only admins and superadmins can add songs to the server queue if ( pl:IsAdmin() ) then return true end // You can specify custom settings here -- if ( pl:IsUserGroup( 'Donor' ) ) then return true end -- if ( pl:GetPData( 'DJ', '') == 'Yes' ) then return true end // Always default to false return false end[/code] He wants you to paste that so he can see if you modified it or something. Also wolf this is a great plugin and I can't thank you enough. Been using it for awhile now and its had no issues and ran smooth. :D In reality I am supposedly on a derp version according to your svn log and I still really don't see any issues. Though I am going to update soon! :D
  • [lua]function WolfDJ:CanAddSongs( pl ) // By default, only admins and superadmins can add songs to the server queue if ( pl:IsAdmin() ) then return true end // You can specify custom settings here -- if ( pl:IsUserGroup( 'Donor' ) ) then return true end -- if ( pl:GetPData( 'DJ', '') == 'Yes' ) then return true end // Always default to false return false end[/lua]
  • Alright, now for the last thing. Show me proof that other things recognize you as an admin.