Join us at IRC!
Things are more like they are now than they have ever been before. - Dwight D. Eisenhower
Friday, May 25, 2012
Navigation
Members Online
Total Online: 29
Web Spiders: 11
Guests Online: 27
Members Online: 2

Registered Members: 70208
Newest Member: andresuran
Latest Articles
View Thread

HellBound Hackers | Events | General

Author

PhP Question

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 16:10
Whats the problem to this scblockedript?


<?
if ($_SERVER['HTTP_XID'] != 0){
header("Location: http://example.com");}
?>

<?
echo $_SERVER['HTTP_XID'];
?>


For some reason it isnt redirecting people that have an XID header. The bottom part was there just so I could see if I was using HTTP_XID right.
Author

RE: PhP Question

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 08-09-09 16:24
Are you sure your server allows short tags?




ynori7 http://halls-of-valhalla.org
Author

RE: Yes

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 16:41
Because with the same scblockedript I can redirect others


<?
if($_SERVER['HTTP_CLIENTID'] != 0) {
header("Location: http://google.com")}
?>



For some reason the problem is just HTTP_XID. Not HTTP_CLIENTID or any others. Also for some reason when users from verizon come onto my webpage they dont send an HTTP_XID header anymore. Is this a problem with verizon or just me?

to get ALL headers I use this scblockedript...


<?
foreach($_SERVER as $key_name => $key_value) {
$Header = ($key_name . " = " . $key_value . "\n");
echo $Header;
?>


Should this not send ever Header?

Edited by Froger on 08-09-09 16:43
Author

RE: PhP Question

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 21:03
MoshBat wrote:
Run this:
<?
echo "test";
?>

And next:
<?php
echo "test2";
?>

If those both work, begin to echo parts of the code, such as the header.


Those will both work. Its not the short tagg that is the problem. Its the HTTP_XID not sending the information thats the problem. I can even go as far as this

<?
echo $_SERVER['HTTP_CLIENTID'];
?>

if I was a sprint phone and went to my page with that it would print out my clientid. Verizon on the other hand did work at one time and now it does. Verizon has the XID. I originally could use this scblockedript

<?
echo $_SERVER['HTTP_XID'];
?>

and now its just a blank page meaning there isnt an HTTP_XID. No errors just a blank page.

Edited by Froger on 08-09-09 21:06
Author

RE: PhP Question

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 21:16
MoshBat wrote:
Error reporting on?


Yes Display_erorro_message in my php.ini is on. Is there a way you can try this out yourself? See if I made lets say this


if ($_SERVER['HTTP_CLIENTID'] != 0) {
header("Location: http://google.com")
} elseif ($_SERVER['HTTP_X_UP_SUBNO'] != 0) {
header("Location: http://hellboundhackers.org")
} elseif ($_SERVER['HTTP_XID'] != 0) {
header("Location: http://yahoo.com")
} else {
header("Location: http://hackthissite.org")
}



It would redirect me to google if I had a ClientID. It would redirect me to Hellboundhackers if I had a X_UP_SUBNO. I would redirect me to hackthissite.org if I had a XID. It would STILL redirect me to Hackthissite even if I had none of the above. For some reason XID isnt registering or something.
Author

RE: PhP Question

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 21:39
<?
if ( $_SERVER["HTTP_XID"] != NULL)
header("Location: http://google.com";)
?>

Works.

<?
if ( $_SERVER["HTTP_XID"] == NULL)
header("Location: http://google.com";)
?>

Works if I dont modify header XID.

<?
if ( $_SERVER["HTTP_XID"] != 0)
header("Location: http://google.com";)
?>

doesnt.

<?
if ( $_SERVER["HTTP_XID"] != NULL)
header("Location: http://google.com";)
?>

Works IF I modify my header. Other than that I need to try it out to see if it redirects my phone.

EDIT::: Doesnt redirect my phone :'(

Edited by Froger on 08-09-09 21:42
Author

RE: PhP Question

Froger
Member

Posts: 76
Location:
Joined: 21.09.08
Rank:
Wiseman
Posted on 08-09-09 23:46
MoshBat wrote:
Get something other than PHP to give you the value of HTTP_XID...
See what it says, post back.


Just tried to request header in ASP. It does not send in the HTTP_XID request. So what does that mean? Its not a problem with PHP? But HTTP_XID itself?
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.