Jump to content
Old threads will finally start getting archived ×

sree4u

New Members
  • Posts

    2
  • Joined

  • Last visited

sree4u's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Dear All, I have a log file by the name of 192.168.229.128.log which has a particular pattern available like /opt/lampp/htdocs/enroll/192.168.229.128/. I want to check this pattern from this file and do some activities. the pattern matching i am giving is :- preg_match("/opt\/lampp\/htdocs\/enroll\/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\\\/", "$theData", $matches) Attached herewith is the log file and the source code. Please help to resolve this issue. Regards, Sreejith a.php 1.txt
  2. Dear all, I have a php file which calls the hashdeep command. The problem which i am encountering is, it is executing the script partially. The code is given below:- <?php $output = shell_exec('nohup /usr/local/bin/hashdeep -c md5,sha1 -r /opt/lampp/htdocs/enroll/192.168.229.128/ > /opt/lampp/htdocs/enroll/192.168.229.128/192.168.229.128.log'); echo "<pre>$output</pre>"; ?> It is creating the log file within the directory, but with zero bytes. Please help in this regards. Regards, Sreejith
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.