AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   [Help] sv_pure and mod VPK files (https://forums.alliedmods.net/showthread.php?t=332762)

HooLIGUN 05-31-2021 08:58

[Help] sv_pure and mod VPK files
 
2 Attachment(s)
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

Bacardi 05-31-2021 10:43

Re: [Help] sv_pure and mod VPK files
 
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.

HooLIGUN 05-31-2021 11:04

Re: [Help] sv_pure and mod VPK files
 
sv_pure 2 in start params..
also in the screenshot you can see this value in console

Bacardi 05-31-2021 13:20

Re: [Help] sv_pure and mod VPK files
 
Is it source dedicated server ?
And when you join into server, type in your game console: sv_pure

What you get ?

HooLIGUN 05-31-2021 13:25

Re: [Help] sv_pure and mod VPK files
 
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

Bacardi 06-01-2021 00:03

Re: [Help] sv_pure and mod VPK files
 
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.

HooLIGUN 06-01-2021 13:57

Re: [Help] sv_pure and mod VPK files
 
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?

Bacardi 06-02-2021 12:15

Re: [Help] sv_pure and mod VPK files
 
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 :(


All times are GMT -4. The time now is 23:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.