[CODE] postdemo 0.0.9.12, post demos w/o browser

Everything technical and nerdy stuff here plz !

[CODE] postdemo 0.0.9.12, post demos w/o browser

Postby Pirat » 10.23.10

(This page will be continuously edited upon each release)

If you don't have Linux, you can just post the demo of the suspected cheater on


Otherwise, this script can do that for you.

Since using a web interface makes me mad, I wrote this little
shell script that makes it possible to report cheaters (incl.
sending demos) without using a browser.

As with many programs, it's an evolved hack, so don't
expect a cleanly structured, robust and formally correct
script. But -- at least for me -- it works. I hope it does so
for you, too.

ADVANTAGES:
  • If you have access to in-game commands "!id" and "!lt" and use this
    script, you're making it easier for admins to prolong the ban.
  • It's much faster than posting a demo via web browser.
  • You can use the editor of your choice for creating the message.

NEEDS: GNU/Linux incl. bash and php (Debian pkg: php5-cli).

KNOWN LIMITATIONS: See list "TODOs" in the script.

DOWNLOAD: See attachment. Send PM for older versions.

INSTALLATION and INVOCATION
  • download and save as "postdemo.gz"
  • gunzip postdemo.gz
  • chmod a+rx postdemo
  • ./postdemo -h

SUPPORT: There is no guaranteed support of any kind, but if you have
problems, questions or suggestions, you can reply to this
post and hope for someone answering -- after reading the following:
  • postdemo -h
  • $HOME/.postdemo/config (created after first run)


ChangeLog:
0.0.9.12
- FIX: !lt syntax parsing now compatible with B3 1.50

0.0.9.11
- FIX: Replaced groups of "Cookie:" header lines with a single
"Cookie:" header line, as those groups made problems
with "map_voting.php" in the script "dswpmapvote".
- add: Made config file selectable per --config option.
- FIX: Anchor (#p1234) at end of URL led to problems in printing
final post/edit/quote/... URLs.

0.0.9.10
- FIX: Don't treat unknown options as URL.
- FIX: Improve detection of failed subnet retrieval.
- FIX: Didn't overwrite postfix file for each demo attached, but append
to it instead. A miracle that this script ever worked. %-}
- FIX: Could not get topic id and/or posting id when posting in
"Internal Stuffs" and in a few other places.
- FIX: When re-selecting demos, the selection got added, not edited.

0.0.9.9
- chg: Sped up posting page analyzation a lot.
- chg: Print tmpdir before aborting program (in cases where it makes sense)
- add: Added automatic detection of local charset.
- FIX: Hopefully, all possible local/remote charset combinations work now,
at least with the HTML fallback.
- chg: For "Too few characters" server message, added hint about
possibly incorrect local charset configuration.
- chg: (Use of) URL shortener configurable (URL_SHORTENER). Default: none.
- chg: Will also accept shortened URLs as parameter (except for preview links).
- FIX: Added 'recode' to list of required programs.

0.0.9.8
- FIX: If traditional netcat was installed (instead of OpenBSD-netcat),
it took at least 15 seconds to send data to the server. Fixed
with "-q" parameter of netcat.

0.0.9.7
- FIX: Classical off-by-1-error: Last message line wasn't quoted.
- add: Editing (at least your own) posts is now supported, incl.
adding demos, but w/o ability to delete demos.
- chg: Documentation fix: It must read: ioUrbanTerror.i386 2> uterror.log
Thanks, Draik!

0.0.9.6
- chg: on.to/postdemo replaced with dswp.de/postdemo because on.to
inserted an advertisement frame. Also using different font size
for the signature to make it more distinguishable.
- chg: Subject and message will not show at the beginning, except if
that makes sense.
- chg: Small doc changes.

0.0.9.5
- FIX: Not accepting "deflate" anymore when sending server requests, as
they don't get handled.
- add: Creation of short URLs via is.gd.

0.0.9.4
- FIX: Converts charsets for subject and message, if necessary.
New variable 'local_charset' for that purpose. Add that to
your config. See source for comment.

0.0.9.3
- FIX: Checking for vital programs was done too late.
- Add: Result of login process is now evaluated.
- Add: Prompt for username/password if one of them is not set in config file.

0.0.9.2
- FIX: when !id line was not available, subject wasn't set properly

0.0.9.1
- go.to/postdemo replaced with on.to/postdemo, as I have trouble with go.to.
Attachments
postdemo-0.0.9.12.gz
****** LATEST VERSION ******
(17.11 KiB) Downloaded 1516 times
Last edited by Pirat on 06.10.11, edited 30 times in total.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] postdemo, script for posting demos w/o browser

Postby eXtr33m » 10.23.10

WoW :shock:

Now just hope with UrT 4.2 you could link it together and post demos from ingame :):)
User avatar
eXtr33m
Ingame Mod
 
Posts: 806
Joined: 12.19.09
Location: @Gauss:
-----tdm:  
nick: [dswp]Jan
skill: 330.877
kills: 220
deaths: 210
ratio: 1.04
-----bomb:  
nick: [dswp]Jan
skill: 664.203

Re: [CODE] postdemo, script for posting demos w/o browser

Postby Rylius » 10.23.10

/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o
wursti wrote:Anime? wow thats that movies where 100 dicks come out of a monster?
User avatar
Rylius
posted some :)
 
Posts: 312
Joined: 01.24.09
Location: Germany

Re: [CODE] postdemo, script for posting demos w/o browser

Postby Pirat » 10.23.10

Rylius wrote:
/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o

Hm, works perfectly here. I'd say: "Contact the server administrator". :-)
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] postdemo, script for posting demos w/o browser

Postby Pirat » 10.23.10

Pirat wrote:
Rylius wrote:
/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o

Hm, works perfectly here. I'd say: "Contact the server administrator". :-)

Or use this:

http://pastebin.com/Zez5WWPD

Click on "DOWNLOAD" and save it as "postdemo.gz", then
run "gunzip postdemo.gz" on it.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] postdemo, script for posting demos w/o browser

Postby Rylius » 10.23.10

Didn't restart Firefox after update, that borked downloads :?

Woah, that script is awesome, just looked through it real quick.
Guess I even learned quite a bit from it :P

function dont___damn_does_not_help() {
:D :D
wursti wrote:Anime? wow thats that movies where 100 dicks come out of a monster?
User avatar
Rylius
posted some :)
 
Posts: 312
Joined: 01.24.09
Location: Germany

Re: [CODE] postdemo, script for posting demos w/o browser

Postby Pirat » 10.23.10

Rylius wrote:Woah, that script is awesome, just looked through it real quick.
Guess I even learned quite a bit from it :P

<ZOIDBERG>Hooray, I am useful! I'm having a wonderful time!</ZOIDBERG> :-)

Rylius wrote:
function dont___damn_does_not_help() {
:D :D

|-) Yeah, those session timeouts are hard to come by ... thought
that re-login just before posting the actual data would help, but
no, it didn't. As I didn't want to further delay the release of this
script, and as this limitation is in most cases irrelevant, I posted
it in this state. :-}
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] postdemo 0.0.9.1, posts demos w/o browser

Postby SKracht » 10.25.10

Chapeau!
User avatar
SKracht
Ingame Mod
 
Posts: 437
Joined: 05.08.09
Location: Germany

Re: [CODE] postdemo 0.0.9.5, post demos w/o browser

Postby Ana » 11.01.10

so:
Cant u make "Posted using postdemo 0.0.9.6wip" in other(bit darker color or smaller, dunno if it would be unreadable then, but je maybe other color than standard) since now it looks like the part of the post and it in fact isnt :). confuses me a bit. :P i dunno if such is possible at all. just an idea

and what kind of link is that with google adds? cant u let normal link there?
Life is about the people you meet.
User avatar
Ana
Godlike
 
Posts: 1049
Joined: 07.21.08
-----tdm:  
nick: Ana
skill: 1097.59
kills: 2163
deaths: 2016
ratio: 1.07
-----bomb:  
nick: Ana
skill: 797.802
kills: 160
deaths: 221
ratio: 0.72

Re: [CODE] postdemo 0.0.9.5, post demos w/o browser

Postby Pirat » 11.01.10

Ana wrote:so:
Cant u make "Posted using postdemo 0.0.9.6wip" in other(bit darker color or smaller, dunno if it would be unreadable then, but je maybe other color than standard) since now it looks like the part of the post and it in fact isnt :). confuses me a bit. :P i dunno if such is possible at all. just an idea

and what kind of link is that with google adds? cant u let normal link there?

Issues fixed/improved in version 0.0.9.6 as discussed on mumble.
See dswp.de/postdemo.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Next

Who is online

Users browsing this forum: No registered users and 63 guests

Misc