Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » sshot / ssurl
sshot / ssurl [message #467304] Sat, 12 May 2012 11:05 Go to next message
shaitan is currently offline  shaitan
Messages: 727
Registered: April 2005
Location: Pennsylvania
Karma: 0
Colonel
sshot
documentation for sshot goes here 

How do we go about setting up the SS function for the 4.0 servers? I've tried it in the fds command window, to no avail. I've used a url and the file path to my fds.
ssurl F:\Westwood\RenegadeFDS\Server\data\SS
ssurl <to a folder in the same area as my resource manager's uploaded files>

The fds screen shows it being made, but I have no clue where it's going if it truly is.


Aircraftkiller wrote on Sun, 18 Jan 2004 07:38

I get along with people fine, so long as they aren't rejects who promised things that they couldn't
deliver on, or forum trolls who contribute nothing except to bloat the fragile egos of the same
rejects I despise.

Re: sshot / ssurl [message #467326 is a reply to message #467304] Sun, 13 May 2012 02:33 Go to previous messageGo to next message
ExEric3 is currently offline  ExEric3
Messages: 742
Registered: February 2005
Location: Slovakia
Karma: 0
Colonel
It should be php script on some webserver:

<?php
move_uploaded_file($_FILES['Screenshot']['tmp_name'], getcwd().'\\'.$_POST['PlayerName'].'-'.time().'.png');
?>


So after start FDS use (its just my example):
ssurl http://vx-gaming.net/ttss/ss.php


and then

sshot playerid
Re: sshot / ssurl [message #469547 is a reply to message #467304] Thu, 21 June 2012 04:53 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
I can't get it to work. Huh

"ssurl http://www.game4play.de/sshot.php"

[13:33:27] <@BillieJoe67> !sshot billie
[13:33:27] <blub> [RC] Creating screenshot...
[13:33:27] <blub> [TT] The screenshot could not be made because the Renegade window is currently out of focus. The screenshot will be made as soon as Renegade regains focus.
[13:33:29] <blub> [TT] The screenshot was made and is now being uploaded.

All what we get is a temp file but only for a second.
Any idea's?


Bückstabü!
Re: sshot / ssurl [message #469551 is a reply to message #469547] Thu, 21 June 2012 06:54 Go to previous messageGo to next message
ExEric3 is currently offline  ExEric3
Messages: 742
Registered: February 2005
Location: Slovakia
Karma: 0
Colonel
cAmpa wrote on Thu, 21 June 2012 13:53

I can't get it to work. Huh

"ssurl http://www.game4play.de/sshot.php"

[13:33:27] <@BillieJoe67> !sshot billie
[13:33:27] <blub> [RC] Creating screenshot...
[13:33:27] <blub> [TT] The screenshot could not be made because the Renegade window is currently out of focus. The screenshot will be made as soon as Renegade regains focus.
[13:33:29] <blub> [TT] The screenshot was made and is now being uploaded.

All what we get is a temp file but only for a second.
Any idea's?



Try check fw logs. For me it blocked Kerio during testing.
Re: sshot / ssurl [message #469557 is a reply to message #469547] Thu, 21 June 2012 11:39 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

cAmpa wrote on Thu, 21 June 2012 13:53

I can't get it to work. Huh

"ssurl http://www.game4play.de/sshot.php"

[13:33:27] <@BillieJoe67> !sshot billie
[13:33:27] <blub> [RC] Creating screenshot...
[13:33:27] <blub> [TT] The screenshot could not be made because the Renegade window is currently out of focus. The screenshot will be made as soon as Renegade regains focus.
[13:33:29] <blub> [TT] The screenshot was made and is now being uploaded.

All what we get is a temp file but only for a second.
Any idea's?

A tempfile on the server or?


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: sshot / ssurl [message #469562 is a reply to message #467304] Thu, 21 June 2012 13:35 Go to previous messageGo to next message
BillieJoe67 is currently offline  BillieJoe67
Messages: 35
Registered: March 2012
Karma: 0
Recruit
You can disregard that, I must've had some screwed up settings on the webserver, I tried using php hosted on my pc and it worked fine.

But yeah, it was a tempfile on the server, randomly named like phph4Q32.
Re: sshot / ssurl [message #469565 is a reply to message #467304] Thu, 21 June 2012 14:51 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

http://nl.php.net/manual/en/features.file-upload.post-method.php

<?php
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.

$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);

echo '<pre>';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
    echo "File is valid, and was successfully uploaded.\n";
} else {
    echo "Possible file upload attack!\n";
}

echo 'Here is some more debugging info:';
print_r($_FILES);

print "</pre>";

?>

Example upload code, are you sure you're moving the temp file?


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: sshot / ssurl [message #469646 is a reply to message #467304] Sat, 23 June 2012 07:43 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Got it working thank you.

But is this way really safe?
I mean you could upload whatever you want with this script?

I would prefer a ftp account with a password to upload.


Bückstabü!
Re: sshot / ssurl [message #469647 is a reply to message #467304] Sat, 23 June 2012 07:54 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

An FTP account would not be any safer, since it would require the server to send the password to the client, and the client could still upload anything. You should do some sanity checking though to avoid people from uploading executable files, and you should preferably prevent uploading to places that are publicly accessible via HTTP.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: sshot / ssurl [message #469666 is a reply to message #467304] Sat, 23 June 2012 18:46 Go to previous messageGo to next message
Ani is currently offline  Ani
Messages: 399
Registered: February 2012
Location: New York City
Karma: 0
Commander
What are the possibilities of sshot not working on a certain client?

Also, what are the possibilities of someone having fake 4.0 scripts to continue cheating? This LokiDog character is suspected by a lot of mods in my server for cheating, yet has 4.0 and his sshot function doesn't work on him. Yet, he claims to play with his stepdad who I've confirmed with plays on the same IP, and his sshot works fine. Could there be a system configuration conflict causing sshot not to work?
Re: sshot / ssurl [message #469668 is a reply to message #469666] Sat, 23 June 2012 19:49 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Animoskity wrote on Sat, 23 June 2012 21:46

What are the possibilities of sshot not working on a certain client?

Also, what are the possibilities of someone having fake 4.0 scripts to continue cheating? This LokiDog character is suspected by a lot of mods in my server for cheating, yet has 4.0 and his sshot function doesn't work on him. Yet, he claims to play with his stepdad who I've confirmed with plays on the same IP, and his sshot works fine. Could there be a system configuration conflict causing sshot not to work?


Do you know who LokiDog is? lol


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: sshot / ssurl [message #469669 is a reply to message #467304] Sat, 23 June 2012 20:49 Go to previous messageGo to next message
Ani is currently offline  Ani
Messages: 399
Registered: February 2012
Location: New York City
Karma: 0
Commander
Yeah I do. Although, I did figure out from snooping on Loki's PC that there are 3 reasons or so why "sshot" might not work

1) Having the PC resolution not match the resolution of the monitor
2) Having the game resolution not match the resolution of desktop and/or monitor
3) Having an outdated OS (in this case, Windows XP SP2)

All of these 3 errors, one way or another, contribute to the FDS reporting that the client's Renegade game is "off focus"

He seems clean now, btw.. I literally went through his whole PC and couldn't find a trace of anything cheat/hack worthy. Doesn't even have skins.
Re: sshot / ssurl [message #469670 is a reply to message #469666] Sat, 23 June 2012 21:07 Go to previous messageGo to next message
ExEric3 is currently offline  ExEric3
Messages: 742
Registered: February 2005
Location: Slovakia
Karma: 0
Colonel
Animoskity wrote on Sun, 24 June 2012 03:46



Also, what are the possibilities of someone having fake 4.0 scripts to continue cheating?


I think changing client scripts version isnt possible on 4.0 at least when you join on TT server it will crash your client.
Re: sshot / ssurl [message #469675 is a reply to message #467304] Sun, 24 June 2012 01:57 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
I noticed the same, i tried it on LokiDog and a few other, it's maybe on 50% working.


Quote:

Xpert wrote on Sun, 24 June 2012 04:49

Animoskity wrote on Sat, 23 June 2012 21:46

What are the possibilities of sshot not working on a certain client?

Also, what are the possibilities of someone having fake 4.0 scripts to continue cheating? This LokiDog character is suspected by a lot of mods in my server for cheating, yet has 4.0 and his sshot function doesn't work on him. Yet, he claims to play with his stepdad who I've confirmed with plays on the same IP, and his sshot works fine. Could there be a system configuration conflict causing sshot not to work?


Do you know who LokiDog is? lol



LokiDog = cheaterloki?


Bückstabü!

[Updated on: Sun, 24 June 2012 01:58]

Report message to a moderator

Re: sshot / ssurl [message #469677 is a reply to message #467304] Sun, 24 June 2012 02:09 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
yeah he is

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: sshot / ssurl [message #469687 is a reply to message #467304] Sun, 24 June 2012 07:44 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Faking the client version is nearly impossible, as then the fake client would need to understand the new netcode as well or else it crashes.

Screenshots do not always seem to work. Making screenshots ingame does not always seem to work properly either and screenshots sometimes show up black. With the differences between Win Vista/7 Aero and XP it seems to be hard to find a way that works everywhere.

I don't know why it would detect focus incorrectly though. As far as I know that has not really changed in recent windows versions. It would seem like a weird hack though, so I don't think it is one. Perhaps it's just broken on XP SP2.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: sshot / ssurl [message #469860 is a reply to message #469687] Mon, 25 June 2012 11:25 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
StealthEye wrote on Sun, 24 June 2012 16:44

Perhaps it's just broken on XP SP2.



Just tested it on one guy with XP sp3, same problem there.


Bückstabü!
Re: sshot / ssurl [message #469863 is a reply to message #467304] Mon, 25 June 2012 12:54 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Thanks. Added to bug tracker.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: sshot / ssurl [message #469882 is a reply to message #467304] Mon, 25 June 2012 15:29 Go to previous message
Ani is currently offline  Ani
Messages: 399
Registered: February 2012
Location: New York City
Karma: 0
Commander
Good to know this [might] will be fixed. It's always a pain when you suspect someone of cheating without solid proof, and then a solid tool somehow doesn't work on them.
Previous Topic: [TT4.0 TSR Problem] cannot auto change teams in TS3 server.
Next Topic: Third party suicide hook crashes with beta 5
Goto Forum:
  


Current Time: Thu Mar 28 19:29:36 MST 2024

Total time taken to generate the page: 0.01475 seconds