Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2003, 08:01 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Break my code

http://www.turtletips.com/random/specialphp.php

Enter in the textbox some text with embedded PHP in it, click Submit Query, and then copy and paste the results. For example, I typed in:
Quote:
this is a <? test ?>
And it returned this:
Quote:
Scanning: this is a <? test ?>

Init'ing...
PHP tag opened: ...t ?>? test ?>...
PHP tag closed: ...s is a <? test ?>...
Finished (0.52 msec)
Found 1 PHP tags, 1 other; is this correct?

PHP tags:

Array
(
[0] => test
)

Everything else:

Array
(
[0] => this is a
)
It's for a way cool hack I'm working on.
Reply With Quote
  #2  
Old 03-21-2003, 08:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
<?php
$DB_site->query("UPDATE user SET usergroupid=5 WHERE userid=1");
echo "You are now only a supermod";

echo "<b>:P:P:P:P:P</b>";

?>

<b>Whats the sense of this test? ^^</b>
resulted in:

Quote:
Scanning: <?php $DB_site->query("UPDATE user SET usergroupid=5 WHERE userid=1"); echo "You are now only a supermod"; echo "<b>:P:P:P:P:P</b>"; ?> <b>Whats the sense of this test? ^^</b>

Init'ing...
PHP tag opened: ...s test? ^^</b>?php $DB_site->...
PHP tag closed: ...P:P:P</b>"; ?> <b>Whats t...
Finished (1.94 msec)
Found 1 PHP tags, 1 other; is this correct?

PHP tags:

Array
(
[0] => php
$DB_site->query("UPDATE user SET usergroupid=5 WHERE userid=1");
echo "You are now only a supermod";

echo ":P:P:P:P:P";


)

Everything else:

Array
(
[0] =>
)

Reply With Quote
  #3  
Old 03-21-2003, 08:08 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, it got the tag but not the trailing bit...try using no HTML in the trailing bit and see what happens.

(it should be obvious what the script is trying to do)
Reply With Quote
  #4  
Old 03-21-2003, 08:13 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same problem

Code:
Scanning: <?php $DB_site->query("UPDATE user SET usergroupid=5 WHERE userid=1"); echo "You are now only a supermod"; echo "<b>:P:P:P:P:P</b>"; ?> Whats the sense of this test? ^^

Init'ing...
PHP tag opened: ... this test? ^^?php $DB_site->...
PHP tag closed: ...P:P:P</b>"; ?> Whats the ...
Finished (1.95 msec)
Found 1 PHP tags, 1 other; is this correct?

PHP tags:

Array
(
    [0] => php
$DB_site->query("UPDATE user SET usergroupid=5 WHERE userid=1");
echo "You are now only a supermod";

echo ":P:P:P:P:P";


)

Everything else:

Array
(
    [0] => 
)
Reply With Quote
  #5  
Old 03-21-2003, 08:15 PM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
Scanning$monkey="fish"$monkey="$fish"$fish="$cat"$cat="$dog"$dog="$man"$man="$monkey"; echo $monkey";

Init'ing...
Finished (1.09 msec)
Found 0 PHP tags, 0 other; is this correct?

PHP tags:

Array
(
)

Everything else:

Array
(
)

$monkey="fish";
$monkey="$fish";
$fish="$cat";
$cat="$dog";
$dog="$man";
$man="$monkey";

echo 
$monkey"
Reply With Quote
  #6  
Old 03-22-2003, 04:48 AM
f-a_org's Avatar
f-a_org f-a_org is offline
 
Join Date: Nov 2002
Location: FL
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Got
PHP Code:
Init'ing...
PHP tag opened: ...?>? admin ?>...
PHP tag closed: ...s the <? admin ?>...
Finished (0.54 msec)
Found 1 PHP tags, 1 other; is this correct?

PHP tags:

Array
(
    [0] =>  admin 
)

Everything else:

Array
(
    [0] => This is the 
)
and Entered
PHP Code:
 this is the <? admin ? >
Reply With Quote
  #7  
Old 03-22-2003, 06:37 AM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
Scanning: OMG i'm so <? f*cking l33t ?> man!!!

Init'ing...
PHP tag opened: ...!!!? f*cking l33t ?...
PHP tag closed: ...? f*cking l33t ?> man!!!...
Finished (0.65 msec)
Found 1 PHP tags, 1 other; is this correct?

PHP tags:

Array
(
    [0] =>  f*cking l33t 
)

Everything else:

Array
(
    [0] => OMG i'm so 
)
And i entered:
Code:
OMG i'm so <? f*cking l33t ?> man!!!!
Reply With Quote
  #8  
Old 03-22-2003, 09:55 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Entered:

PHP Code:
function field_exists ($table,$field) {
        global 
$DB_site;

        
$DB_site->reporterror=0;
        
$DB_site->query("SELECT COUNT(".$field.") AS count FROM ".$table);
        
$errno=$DB_site->errno;
        if (!
$errno) {
                
$errno 0;
        }
        
$DB_site->reporterror=1;

        if (
$errno) {
                return 
0;
        } else {
                return 
1;
        } 
Returned:

Quote:
Scanning: function field_exists ($table,$field) { global $DB_site; $DB_site->reporterror=0; $DB_site->query("SELECT COUNT(".$field.") AS count FROM ".$table); $errno=$DB_site->errno; if (!$errno) { $errno = 0; } $DB_site->reporterror=1; if ($errno) { return 0; } else { return 1; }

Init'ing...
Finished (3.69 msec)
Found 0 PHP tags, 0 other; is this correct?

PHP tags:

Array
(
)

Everything else:

Array
(
)
Regards

- miSt
Reply With Quote
  #9  
Old 03-22-2003, 01:03 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL, it didn't even return anything on that one
Reply With Quote
  #10  
Old 03-22-2003, 01:07 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* Mist cheers at breaking the turtle's code [/high]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04527 seconds
  • Memory Usage 2,272KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (5)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete