Search code examples
phpsocketscurlencode

PHP Curl get all action in log file


I have a PHP ENCODED script that use CURL to connect to other servers. so I want to get all URL that this script access via CURL.

Is it possible to LOG all CURL action in text file ? How could this possible ?

Should I change any thing in error_reporting in PHP ?

Is it possible to use Firewall or anything else to monitor PHP sockets ?

Thank you


Solution

  • I found a way, you can use TCPDUMP to dump all tcp connection and you can filter the host destination on it.

    Thank you