Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 8th, 2002, 03:41 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
Alls fair in love and WAR!

I just had a truely unscrupulous, very lawyer like thought. In this contest you can store any data you like in your own personal data file, so I was thinking, what if I could figure out how to get access to somebody elses move.txt? (and the others?) Now as interesting as this would make strategy, especially if both scripts were doing it, it screams sick and wrong to me. That said if I do get a working script once the contest is over I might see if I can figure out a way for kicks. What do you think, is it do-able?

I've said it before and I'll say it again.

Reply With Quote
  #2  
Old August 8th, 2002, 04:25 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
RE: Alls fair in love and WAR!

You post way too much, all the animated blobs are making me dizzy!

if($dizzy == "TRUE"){
vomit();
}//end of if

function vomit(){
while(1 == 1){
echo "HHHHUUUURGH!!!";
}//end of while
}//end of function vomit

Sorry you all had to see that.

Reply With Quote
  #3  
Old August 8th, 2002, 07:19 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Alls fair in love and WAR!

the simplest thing u can do with his data.txt is delete it!

or in any other way temper with it's content. that way u can confuse the other script.

and i asume that it would be easy to find that data.txt...

i would expect testing dir structure smth like this:

ctf/ (spots for indent)
....judge.php
....script01/
........capture.php
........data.txt
....script02/
........capture.php
........data.txt
....script03/
...
....script57/
...

and ur script would just have to go back one dir (..) and then search all sub-dirs for the data.txt files, and delete them (excep ur own ;))

but i think that matt already had some thought of this...

that is why the name of that file is fixed to data.txt, so that matt could ie save it after each step, and reproduce it before the next step.

(at least i hope this is true)

if he didn't think of that, the rules could go just "you can write any data to any file in the dir where your script is.."

greetz.

Reply With Quote
  #4  
Old August 9th, 2002, 10:23 AM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Alls fair in love and WAR!

Your are also able to edit the script of your opponent...
Search for his script, open it, and then replace "data.txt" for "".
That would be fun...

Reply With Quote
  #5  
Old August 9th, 2002, 12:27 PM
ygreg ygreg is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Warsaw, Poland
Posts: 21 ygreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Alls fair in love and WAR!

Better: replace the opponent with a script that will not move, then go and shoot it ;)

Reply With Quote
  #6  
Old August 9th, 2002, 08:22 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Alls fair in love and WAR!

Well, I think Matt isn't stupid!
I think he'll open every capture.php and check whether or not the file contains illegal functions. I.E. dir(), a common robot won't need the function dir();
so you may assume that the file is corrupt...

Reply With Quote
  #7  
Old August 9th, 2002, 09:43 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Alls fair in love and WAR!

well... i don't think that would do it...

in php, there is a sweet litle function eval() that u pass a string to, and it evaluates it as it was typed in a file source...

now, u may wonder how that can be used to cheat, when all that function can do is:

php Code:
Original - php Code
  1. $str="dir('..')";
  2. eval($str);


but, u can also scramle in some way the text u pass to the eval() function. u can do one at home:
php Code:
Original - php Code
  1.  
  2. $str="dir('..');";
  3. $scrabmled=base64_encode($str);
  4. echo $scramled;

and that would print smth like: "A0E1838D8FA0E1838D8F"

after that u can put in ur robot script:
php Code:
Original - php Code
  1.  
  2. $scramled="A0E1838D8FA0E1838D8F";
  3. $str=base64_decode($str);
  4. eval($str);


and there u have it.. this script executes dir(), but it doesn't show in the source...

i know that this can also be detected, but there could be some other way of doing it!

and if matt would have to look at every line of every submission to see some bad code, that could take days.

50 submisions * 300 lines average = 15,000 lines of code!

Reply With Quote
  #8  
Old August 10th, 2002, 01:18 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Alls fair in love and WAR!

lmao.. there is a section in the rules specifically titled: "What your script can do on its turn"

Maybe it's just me but.. I don't see where it says you can try and hack the other players script in there

Reply With Quote
  #9  
Old August 10th, 2002, 01:50 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Alls fair in love and WAR!

well, it also doesn't say that u can use for(..) loops, if() statements, functions or classes! ;)

and i just asume that u can do all that stuff..

i think that smth has to be forbiden for us not to use it!

Reply With Quote
  #10  
Old August 12th, 2002, 12:27 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
RE: Alls fair in love and WAR!

Well it is a curious dilema is it not? I personally am a big fan of gaming in general, not so much computer games but thats besides the point. I feel that modifying anybody elses files in anyway should be against the rules and is definitly not in the spirit of the contest. I haven't and I wouldn't because I'm not sure, but to me the idea of looking at other files is a bit of a grey area. On the one hand you're not being damaging on the other it doesn't "feel" like an honest thing to be doing.

I'm very pleased this is being discussed because I think it raises some interesting points that may well be of interest in future competitions. Thanks for your thoughts peoples!

Reply With Quote
  #11  
Old August 12th, 2002, 02:41 PM
cjrobs cjrobs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Southampton, England
Posts: 121 cjrobs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to cjrobs
RE: Alls fair in love and WAR!

this topic reminds me of the episode of the Simpsons, where a company take over the school and use it to do Market Research and make the toy called "Funzo". that toy is programmed to destroy all other toys. - The comment after that makes me crack up every time
"It must be programmed to destroy the competition"
"What? Like Microsoft"

hmm... its more funny when u see it on the TV...

hmm... what a waste of 2 minutes

Reply With Quote
  #12  
Old August 12th, 2002, 04:12 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
RE: Alls fair in love and WAR!

its open source, microsoft would be at their freedom to develop a solution, and then an infinite number of patches! they'd love it. Of course some users may object but since when did that stop them.

Reply With Quote
  #13  
Old August 12th, 2002, 07:23 PM
cjrobs cjrobs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Southampton, England
Posts: 121 cjrobs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to cjrobs
RE: Alls fair in love and WAR!

i just met someone who said
"I dont ever plan on using linux. Microsoft is what I know and LOVE"

Anyone got a shotgun?

also... ShaneO: What the hell is that darn green blob doing?

Reply With Quote
  #14  
Old August 12th, 2002, 11:04 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Alls fair in love and WAR!

actualy, i have thought of that...

but then this is possible: we all agree that considering the randomity of teleports, and other stuff, there could be a situation wher robot A beets B, B beets C and C beets A.

then, if for some reason, a cheating script doesn't win, but takes 2nd (or 3rd, 4th...) place, it wouldn't get checked.

but if it didn't participate at all, a robot that have lost to it, could win...

then, a result could be diferent...

Reply With Quote
  #15  
Old August 13th, 2002, 02:17 AM
lefty lefty is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 lefty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Alls fair in love and WAR!

OK, one more example of going way too far...

1. Analyze ALL data.txt files that can be found(or scripts)

2. Record analysis in own data.txt

3. Determine current opponent's strategy based on past analysis

4. Act accordingly.

A true AI.

Any takers?

Reply With Quote
Reply

Viewing: Codewalkers Forums