Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Weird file appeared in hosting. Anyone know what it is?

matmat is verified member.

Nominet Registrar
Joined
Apr 18, 2007
Posts
3,847
Reaction score
190
Hi,

Hoping that some of you can confirm if this is a normal file or anything malicious? I don't want to take any chances. The website is Wordpress based.

In public_html a file appeared just over a week ago.

Name: ftpd0pFi5.cgi

Code inside:

#!/usr/bin/perl
use strict;
use warnings;

print "Content-Type: text/html\n\n";

unlink $0;
my $root = $ENV{DOCUMENT_ROOT_REAL};

chdir $root;
exec 'tar', 'c', '../.';


Thanks.
 
Don't know what that is.

tar is a file archive utility ...so has a backup plugin been installed recently or failed??
 
I'd say that was malicious, the `exec 'tar', 'c', '../.'` is effectively "drop down a directory, zip everything up and send that as the response to the web request".

The `unlink $0` will remove the file(ftpd0pFi5.cgi) as soon as it has been run.
 
Thanks for the help,

Regarding what you said TallBloke and the description of what is being run from Dave, this sounds like it could be my hosts full site backup utility. I do actualy remember it failing around the time as I was trying to get a backup to my desktop.

I will keep the file deleted.

Thanks,

Mat
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Helmuts @ HelmutsHelmuts is verified member.: Good morning all
      Top Bottom