Raised This Month: $18 Target: $400
 4% 

[Help] sv_pure and mod VPK files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HooLIGUN
Junior Member
Join Date: Apr 2012
Old 05-31-2021 , 09:58   [Help] sv_pure and mod VPK files
Reply With Quote #1

Hello.
Players began to use modified *.vpk files that make textures transparent.
How can fix this problem?
sv_pure 2 doesn't fix it.
Screens in attach files
Game CS:S Steam
Attached Images
File Type: jpg de_dust20002.jpg (97.3 KB, 41 views)
File Type: jpg de_dust20001.jpg (95.1 KB, 41 views)
HooLIGUN is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-31-2021 , 11:43   Re: [Help] sv_pure and mod VPK files
Reply With Quote #2

in ...cfg/autoexec.cfg
add
sv_pure 2

Make sure you not have sv_pure command else where.
Restart server.

This make sure, sv_pure affect before map start.
Changing sv_pure mode require always map change and player should not be in server in that time or they get glitch.

Last edited by Bacardi; 05-31-2021 at 11:46.
Bacardi is offline
HooLIGUN
Junior Member
Join Date: Apr 2012
Old 05-31-2021 , 12:04   Re: [Help] sv_pure and mod VPK files
Reply With Quote #3

sv_pure 2 in start params..
also in the screenshot you can see this value in console
HooLIGUN is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-31-2021 , 14:20   Re: [Help] sv_pure and mod VPK files
Reply With Quote #4

Is it source dedicated server ?
And when you join into server, type in your game console: sv_pure

What you get ?
Bacardi is offline
HooLIGUN
Junior Member
Join Date: Apr 2012
Old 05-31-2021 , 14:25   Re: [Help] sv_pure and mod VPK files
Reply With Quote #5

yes, source dedicated server

without RCON

Code:
The server is using sv_pure 2.  (Fully pure)
sound\...                                   	trusted_source
models\...                                  	trusted_source
materials\...                               	trusted_source
particles\...                               	trusted_source
scripts\game_sounds.txt                  	trusted_source
scripts\game_sounds_manifest.txt         	trusted_source
scripts\game_sounds_player.txt           	trusted_source
scripts\game_sounds_vo.txt               	trusted_source
scripts\game_sounds_vo_handmade.txt      	trusted_source
scripts\game_sounds_weapons.txt          	trusted_source
scripts\soundmixers.txt                  	trusted_source
sound\ui\hitsound.wav                    	any
--------------------------------------------------------
with RCON
Code:
] rcon sv_pure
--------------------------------------------------------
sv_pure: Only allow client to use certain files.

  -1 - Do not apply any rules or restrict which files the client may load.
   0 - Apply rules in cfg/pure_server_minimal.txt only.
   1 - Apply rules in cfg/pure_server_full.txt and then cfg/pure_server_whitelist.txt.
   2 - Apply rules in cfg/pure_server_full.txt.

   See cfg/pure_server_whitelist_example.txt for more details.

Current sv_pure value is 2.
--------------------------------------------------------
screenshot https://ibb.co/5swWJJt

Last edited by HooLIGUN; 05-31-2021 at 14:28.
HooLIGUN is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-01-2021 , 01:03   Re: [Help] sv_pure and mod VPK files
Reply With Quote #6

Could you check public key of that "edited" VPK file.

- In your game. You go ...counter-strike source\bin\ directory, open CMD window.
- Type vpk, if you see "No command specified. Try 'vpk -?' for info." you are in right path.

- Then you try:
Code:
vpk dumpsig ../cstrike/cstrike_pak
You should get public_key and signature of cstrike_pak_dir.vpk files. Post those keys in here.

- Then try again, what is your custom vpk, I don't know:
Code:
vpk dumpsig ../cstrike/custom/abc.vpk

*edit
This is another guess,
you have edited txt file pure_server_full.txt, maybe that txt file format got wrong while saving.

Last edited by Bacardi; 06-01-2021 at 13:38.
Bacardi is offline
HooLIGUN
Junior Member
Join Date: Apr 2012
Old 06-01-2021 , 14:57   Re: [Help] sv_pure and mod VPK files
Reply With Quote #7

this is key and sig for modified files
Code:
E:\Steam\steamapps\common\Counter-Strike Source\bin>vpk dumpsig ../cstrike/cstrike_pak
Public key:
  30819D300D06092A864886F70D010101050003818B0030818702818100B1C0F1
  1CB2982F29259507A774D4834377C5B7A38D9A4B3892B598009F16AA109565CB
  09AD25DE0D3D1A089C3CB68E491921CC142F383383201DE98262A76ED8A6CC78
  BC51685A0A64A6172C67127AF23E78731F4A82C201D64C9AB80937322184B642
  727FE142D15CC045F3583E19E3E3E1A9C50C0FC84113573A520A8F7323020111
Signature:
  3BAD3E88ECDE9E4D803F50C55110955C20807042C7C541FE35B8D1ABD67A502B
  5B6744A690609138A6CE74C5C1EAF6910833C073CC601ED7F0CFC01E9CC6F2B6
  A5CF369400CD755036C3F8A6A54BE4A2769364B1620D1A821575C8B5FE70671A
  4D08CC66E74A2205C2F1CD6258F5765403B3391ACEBB5ADB07D99C26F249FFE5
this is key and sig for original files
Code:
E:\Steam\steamapps\common\Counter-Strike Source\bin>vpk dumpsig ../cstrike/cstrike_pak
Public key:
  30819D300D06092A864886F70D010101050003818B0030818702818100B1C0F1
  1CB2982F29259507A774D4834377C5B7A38D9A4B3892B598009F16AA109565CB
  09AD25DE0D3D1A089C3CB68E491921CC142F383383201DE98262A76ED8A6CC78
  BC51685A0A64A6172C67127AF23E78731F4A82C201D64C9AB80937322184B642
  727FE142D15CC045F3583E19E3E3E1A9C50C0FC84113573A520A8F7323020111
Signature:
  5649FBB96CDD96663AD679914EDB91859B41C144B35A5C5BE6EAB3AD1A9CA15E
  CB930B05FB817CFE80C64D12C832F053ADA3CDDAEBE279F7FA9D356B85519E13
  CFFA46D051172C1A495DE81DCAB7F46BC0DFEE679AE18FC578697BE8A923F3D4
  F2BA1DDCED495EEB6D69A3CBE33DEB0E2A7618273EEC919CEAE10E95557A3FE7
the public key is no different
sig is different

in trusted_keys_base.txt this public key
Code:
"trusted_key_list"
{

	//
	// This file lists public keys that are trusted by the server.
	// It should usually only contain official Valve public keys,
	// so don't modify it.
	//
	// See trusted_key_example.txt for how you can add keys issues
	// by third parties, in order to add their content to the list
	// of trusted content.
	//

	// Official Valve content.  Key generated 2013/03/01
	public_key
	{
		type "rsa"
		rsa_public_key "30819D300D06092A864886F70D010101050003818B0030818702818100B1C0F11CB2982F29259507A774D4834377C5B7A38D9A4B3892B598009F16AA109565CB09AD25DE0D3D1A089C3CB68E491921CC142F383383201DE98262A76ED8A6CC78BC51685A0A64A6172C67127AF23E78731F4A82C201D64C9AB80937322184B642727FE142D15CC045F3583E19E3E3E1A9C50C0FC84113573A520A8F7323020111"
	}
}
how to add signature verification? Maybe this should fix it?

Last edited by HooLIGUN; 06-01-2021 at 15:14.
HooLIGUN is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-02-2021 , 13:15   Re: [Help] sv_pure and mod VPK files
Reply With Quote #8

I'm afraid that sv_pure skip checking VPK files which have compiled with correct public_key (and private_key), and server use this same public_key.

And because these are Valve base files, they need re-compile VPK files with new keys.
- But, how easily people can edit VPK file again and have correct public key, I don't know.

About signature... maybe game not look those at all
Bacardi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:11.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode