./gameserver details-share
./gameserver ds
Or
/gameserver details-support
./gameserver ds
Or
./gameserver post-details
./gameserver pd
Or
./gameserver details-post
./gameserver dp
How to upload
https://gist.github.com/yevgenko/1803605
details-share could use the same function as detailsbut with an ifstatement for sensitive info.
What else should be sanitized?
I think you pretty much nailed it :o))
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.
You've coded it ?
On my fork.
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 ?
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?
... and yes, I've worked the curl to pastebin in.
What would you like to see for the scenario where the rustserver has default CHANGE_ME password?
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. :)
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
I would like to roll logs in to this output as well. See an email alert for an example
Pastebin branch created, populated, and provisionally tested (with csgoserver and rustserver).
A couple of development/debugging tips:
@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
Upvote for hastebin :)
Maybe you can pr so that we can easily see modified files ?
[ 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 :)
Well, this is merged, we can close !
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.
Most helpful comment
@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