PHP File hacked [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Recently one of the files that did payment processing was modified by a hacker. He added a line of code to get a copy of the card info. Site is safe from XSS/SQL Injection attacks.
The file is under /var/www/html and the folder has 777 permissions
File too has 777 permissions, I suspect this was changed by the hacker as well.
Although the file was modified in April'2014 timestamp said it was modified only in december 2012
So, does this mean someone gained access via ssh/ftp and modified it without affecting file stats? Or is this via something like HTTP PUT? What are the possibilities? Any insights?

Related

How do I block unknown calls to my sites? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have some security issue with my website. It started by creating wp-admin directory on my FTP server with malicioust .txt file. index.php was also changed (some code at the beginning was added)
I changed all passwords and completely deleted the CMS folder from the server. I removed also wp-admin directory and malicious code from index.php
Lots of unauthorized connections to my website started with this change.
Detalis here:
database log
All calls to .shtml files were blocked by .htaccess file.
Unfortunately there are still attempts to access other resources
for example:
/wp-load.php?daksldlkdsadas&
/ajax-index.php?url=http://domainnamespace.top/lf.jpeg
/aindex.php?daksldlkdsadas&
/wp-load.php?WordPress=newzealandpolicy.wang/popn.txt&Database=1index.php
/sitemapimages79.xml
/sitemapimages5.xml
How can i prevent this calls?
What kind of attack is it and what is its purpose?
It's not wordpress based website

File Protection in PHPExcel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Can I create a password protected excel file (not workbook/worksheet password protection) using PHPExcel?
I have a linux server and 'COM' class doesn't support linux server. I have no idea how to password protect my excel file.
You can't password protect a file in PHPExcel, that feature simply isn't available. You can only protect cells from being written to, or their style changed.

Upload file using PHP to FTP and get url [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I would like to create a PHP form that is going to run on a local machine(WAMP).
This form is going to upload a file to a web server and echo the url of the uploaded file.
My skills in php are low, I can understand a code but I have difficulties writing one.
Your help will be appreciated.
Here's a start. Have a look at these tutorials
http://www.tizag.com/phpT/fileupload.php
http://www.dzone.com/snippets/very-simple-php-file-upload
http://www.htmlgoodies.com/beyond/php/article.php/3472551
http://www.sitepoint.com/file-uploads-with-php/
UPDATE:
If you want to use a local version and FTP the file to another remote location have a look here
http://nirvaat.com/blog/web-development/uploading-files-ftp-server-php-script/

PDO Class Caching Issue [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
For a few days now one of my class files doesn't seem to be recognizing the updates I'm making to it, and I can't figure out why. I've verified the server has the most current copy and also tried deleting the file off the server and uploading a clean copy. I've even removed functions entirely from the class and then successfully ran those functions from another file even though I'm positive it was no longer in the class file.
I don't know what the issue is, but I'm guessing it may be some type of cache issue? Tried rebooting the server too, same issue. I've also poured through the code and can't find any errors. Here's a link to the file http://pastebin.com/eiki93GM.
What are some of the possible issues?
There are two
opcode cache with disabled filemtime check.
you are uploading to the wrong server.

Removing the (www) for subdomains [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I created a new subdomain for my site.
http://www.catalog.modifit9plus1.com. But i can only access the site using this form. How do i make it accessible via http://catalog.modifit9plus1.com?
#Theolodis #Lawrence
I can also access using either link. Could this not be a browser problem?
EDIT:
I am pretty sure I have seen some old browsers not being able to load URLs lacking the 'www' prefix. An old version of Epiphany maybe. I can't find anything backing this up on the Internet though.

Categories