From 488b8162060e68a01d2521398f6587337dc75e04 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 7 Feb 2017 11:03:40 +0100 Subject: pwn stock-ish clients with cl_allowDownload 1 and alike --- src/server/sv_init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server') diff --git a/src/server/sv_init.c b/src/server/sv_init.c index b661284a..c14b4f59 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -149,6 +149,11 @@ void SV_SetConfigstring (int index, const char *val) { Info_SetValueForKey_Big( info, "sv_pakNames", Cvar_VariableString( "sv_alternatePakNames" ) ); Info_SetValueForKey_Big( info, "sv_referencedPaks", Cvar_VariableString( "sv_referencedAlternatePaks" ) ); Info_SetValueForKey_Big( info, "sv_referencedPakNames", Cvar_VariableString( "sv_referencedAlternatePakNames" ) ); + Info_SetValueForKey_Big( info, "cl_allowDownload", "1, you should set it yourself" ); + if ( !( sv_allowDownload->integer & DLF_NO_REDIRECT ) ) { + Info_SetValueForKey_Big( info, "sv_wwwBaseURL", Cvar_VariableString( "sv_dlUrl" ) ); + Info_SetValueForKey_Big( info, "sv_wwwDownload", "1, you should set it yourself" ); + } } } -- cgit