Did you get it off of the songlist?
Grab the list of available songs
( 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
( 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.
Wow, how do you get it from sass though? or even breakpoint
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.
TL;DR You can't.
That error happened again. This time I got:
Seems like it failed to get info about one song, and dumped part of the stack trace into the table?Code:22:42:03 > PrintTable(WolfDJ.ServerQueue)... 1<TAB>=<TAB><TAB>Stack trace: 2<TAB>=<TAB>Aha|Take On Me|3|51|pop|54dba3980a28b401b75159bffe992b87
I am unable to press add to queue on my server, i am superadmin too.
Here, I'll make it easy for you.
http://radio.breakpointservers.com/ Provides a list of all the songs
http://radio.breakpointservers.com/song.php Plays the song using a flash player
http://radio.breakpointservers.com/getfile.php 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 "crack" 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
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.
no one ever helped me!!!!!!! i am superadmin but the latest update broke it registering me as admin on wolfdj
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.
That new update broke the get admin status thing,,,,, can you fix it wolf?
you try yourself??
Tell me based off of many maps and/or gamemodes played that add to queue will always show instead of Nominate
so..... i am just suggesting....
Coders always want users to submit bugs
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.
i am a retard,,,,, you have to tell me what to do
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.):
He wants you to paste that so he can see if you modified it or something.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
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
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
Alright, now for the last thing.
Show me proof that other things recognize you as an admin.
my voting script noticed me
have you tried wolfdj on different game modes and maps?
then why is mine fucked up