Write the content into the batch file [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 7 years ago.
Improve this question
I want to create a log file in my local system after running a batch file by setting a cronjob on my Windows machine.
As of now I'm displaying the contents in the console when the cronjob is executed - the same content I want to save in the form of log.
Note: I've tried syslog but it's not working. I have imported the index.php in the batch file.

Check dbenham implementation of tee command here.
You can output to the console like:
call batfile.bat | batchTee log.txt

Related

What is B4TM4N SH3LL PHP WEBSHELL in linux server [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 3 years ago.
Improve this question
I recently noticed that in server a files is created by name bat.php, I downloaded the file and checked in local, it has some codes which i didnt understand and wondered what is this file and how it got generated in my server.
Can anyone tell me what is this? and why it is generated?
Looks like someone has compromised your security and installed a Web Shell script on your server. Here's the actual code! https://github.com/k4mpr3t/b4tm4n
Remove it NOW! This will allow the user to run CLI commands on your system!

Need to run cron job for my php file on hosting server [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 2 years ago.
Improve this question
I have php file on my linux hosting server and i want to execute it 2 times a day. Below is my link of my php file. Kindly tell me command line code for my php file.
http://viewpackages.com/prices/generator/footer.php
See attached image which is my hosting cron job form. Tell me what i have to write in command line text field
click here to see image of my hosting cron job form
Try pasting this on the command option:
wget -O /dev/null http://viewpackages.com/prices/generator/footer.php
Test it and tell me if there's anything wrong

Access files on server [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 6 years ago.
Improve this question
I have a private server on which I have placed a .php file in the root folder.
I want to run the .php file script by accessing it from the URL.
SO how can this be achieved.
Did you installed apache yet? to run a php page you need a web server like apache, nginx.
If installed, place your php file in public_html folder.
then, you can execute your php file by visiting http://yourdomain.com/yourpage.php

Mac OS app which runs php script [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 6 years ago.
Improve this question
I have a php script which runs using terminal and then it keeps running. It dumps data from a remote server into local directory by creating .txt files. Now I want to create a Mac app which once open will run this script.
I dont want to use terminal I just want to create an app which when starts runs the script and as long as the app is running the script would be running.
My question is is there any way we can run a php script in a Mac application.
Create a YOURNAME.command file, put what you want to execute inside and make it executable with chmod +x YOURNAME.command
The file when you double click will execute what you put inside.

Decrypt Synology PHP files [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 8 years ago.
Improve this question
I just downloaded a file of my Synology Diskstation but the content looks like this:
http://pastebin.com/eLLM8UZR
Is there a way to decrypt it?
The file is the youtube.php file for the Downloadstation.
Looking at the first bytes of the file, it looks like it is a .bz2 (bzip) file. Popular "unzippers" like 7zip should be able to unzip it to a usable file. If you have a more recent Synology DS, you might even have a "bzip2" on the command line (check bzip2 --help how to work with this command).

Categories