mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-26 06:35:54 +03:00
[GH-ISSUE #1001] [FEATURE] Upload to pastebin with hidden sensitive info #795
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @UltimateByte on GitHub (Aug 13, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1001
Originally assigned to: @cedarlug on GitHub.
Or
Or
Or
How to upload
https://gist.github.com/yevgenko/1803605
details-sharecould use the same function asdetailsbut with anifstatement for sensitive info.@UltimateByte commented on GitHub (Aug 21, 2016):
0:41 - CedarLUG: http://steamcommunity.com/groups/linuxgsm/discussions/0/412448792353031314/#c412448792353224827
@cedarlug commented on GitHub (Aug 21, 2016):
What else should be sanitized?
@UltimateByte commented on GitHub (Aug 22, 2016):
I think you pretty much nailed it :o))
@cedarlug commented on GitHub (Aug 25, 2016):
Teaser
I believe I have all of the items enumerated above, except IP addresses, able to be stripped.
Edit: IP addresses aren't difficult, I just personally want to keep them in.
@UltimateByte commented on GitHub (Aug 25, 2016):
You've coded it ?
@cedarlug commented on GitHub (Aug 25, 2016):
On my fork.
@UltimateByte commented on GitHub (Aug 25, 2016):
Lol, "pd", is a french word for pédéraste, which means basically, "gay".
I'm already laughing thinking about asking people to run ./gameserver pd :o))
Good job btw..
Something cool would be to mask off the steam user only if it's something different than anonymous. That way we'd know if the user tries to login to steam while it's unnecessary.
Also, mask off passwords only if not empty. That way we'd know if a password is not set.
Does it mask off info from fn_parms already ?
Did you try pastebin upload ?
@cedarlug commented on GitHub (Aug 28, 2016):
Good progress on this - need some input though.
I have it so that steamuser=anonymous and steampass empty are reported rather than stripped.
What would you like to see for the scenario where the rustserver has default CHANGE_ME password?
Currently there's a warning output in the details output. Should that be reported in the details that we ask users to post, or stripped because it's a default password used for rcon on someone's server?
@cedarlug commented on GitHub (Aug 28, 2016):
... and yes, I've worked the curl to pastebin in.
@UltimateByte commented on GitHub (Aug 28, 2016):
You're going really deep into it :o))
I wouldn't worry about checking this, just mask off the password in any case. There is already a warning for it. :)
@cedarlug commented on GitHub (Aug 28, 2016):
I've only tested the pull request on Rust and several hl2 games. If you get a chance, could you roll #1037 into your local codebase and see if it works as expected?
I'm just using one fn_print_warn, as the output from postdetails is mainly just the link.
Example output: http://pastebin.com/vq2Q8eZL
@dgibbs64 commented on GitHub (Aug 28, 2016):
I would like to roll logs in to this output as well. See an email alert for an example
@cedarlug commented on GitHub (Aug 29, 2016):
Pastebin branch created, populated, and provisionally tested (with csgoserver and rustserver).
A couple of development/debugging tips:
@cedarlug commented on GitHub (Sep 12, 2016):
@dgibbs64 & @UltimateByte - I'd like you to put eyes on the pastebin branch if you have a moment.
I've rolled in hastebin posting (the default), and everything should be reasonably up to date with origin.
The modifications do not effect e-mail notices, but are easily adapted to do so.
hastebin example
pastebin example
To change from one to the other, change the definition of POSTTARGET in command_postdetails.sh
@UltimateByte commented on GitHub (Sep 12, 2016):
Upvote for hastebin :)
Maybe you can pr so that we can easily see modified files ?
@UltimateByte commented on GitHub (Sep 25, 2016):
[ OK ] Update LGSM gmod-server: Updating functions
gmodprobuild@game:~$ ./gmodserver pd
fetching command_postdetails.sh...OK
[ OK ] Postdetails gmod-server: Posting details to hastbin.com for 1W
"hastbin.com", fail :p
Otherwise it's great !
Fixed typo :)
@UltimateByte commented on GitHub (Nov 9, 2016):
Well, this is merged, we can close !
@lock[bot] commented on GitHub (Jul 19, 2018):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.