Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter stratocaster

    (@stratocaster)

    I have a shared hosting account. All of my websites are in sub-directories one level below my own website.
    I found that the dm2.php and radio.php that were overwriting/creating if not exists index.php & htaccess on main site, were in a wordpress theme folder in one of my other sites, one level below my main site, so they are cross contaminating.

    If you are on a shared server, it’s possible that some other site is infecting yours.
    If you have other websites on your account, then check through them all, even if they are not themselves suffering this infection. The site where I found these last 2 files was not itself being infected, it’s just where the files were placed.

    So you’re looking for:
    * A folder called alfacgiapi – in root directory
    * alfa.php (or similar named unfarmiliar file) – in root directory
    * dm2.php & radio.php – in themes/[check all installed themes]/classes

    Failing that, download everything from your root directory to your local computer and scan the folder with AVG. It will find the malicious files.

    Thread Starter stratocaster

    (@stratocaster)

    Yep, that did it!

    Thread Starter stratocaster

    (@stratocaster)

    Just a quick update. I may have found the culprit, or rather AVG found it after a scan on my laptop. It found 2 files in one of my WP backups in themes/bbtheme/classes:
    dm2.php and radio.php
    I did a search on my server and that site has an outdated beaver builder theme and these 2 files were present in that location. They shouldn’t be there. Updated the theme and now they’re gone.
    Also, my admin password for that site had been changed, so I changed it in phpmyadmin, updated everything and ran a scan. It’s all clean now.

    I guess I’ll just wait & see now..

    Thread Starter stratocaster

    (@stratocaster)

    Well, it has been back during the night and planted its index.php file on my empty website.
    Nothing on the other site yet though, it would normally have done both within an hour or so.

    It must be checking to see if index.php exists and if so, inject the code and if not, create it and chmod 0644. Also, if htaccess exists, then overwrite it with a standard htaccess and chmod 0444, but if not, it is not creating one.

    I’ve created a blank index.php and set permissions to 0000, if that works, I know it’s only a patch for now. As my name suggests, I am a musician by trade, so I can’t really afford to do much about it right now, whilst our industry is in a coma, other than use my time and whatever tools I already have.

    Seems like I’m making some small progress at least.

    Thread Starter stratocaster

    (@stratocaster)

    I don’t know if its linux to be honest. Its a shared server with Cpanel.
    I tried a search there in file manager, but I think that only searches for file names, not strings inside files.
    I have a backup of the db before I dropped those tables. I’ll open it up local and see if I find anything in there.

    There was a folder of files as listed in the OP, but after removing them, they never returned. They were dumped in the site root folders.

    Thread Starter stratocaster

    (@stratocaster)

    Ah yes, but these tables were actually in addition to WP tables, all those with wp_ prefix are there aswell.
    These wdsrj_ tables looked like they were for some other script, they had a completely different structure to the WP tables. There were a lot of them, like 2 websites running off the same database. After dropping them, the website continues to work as it should.
    Over 4 hours now since the last hack, it normally happens after about an hour or so.

    Fingers crossed, hopefully the culprit was in there somewhere. I guess I’ll know for sure by morning.

    Thread Starter stratocaster

    (@stratocaster)

    Thanks Logan,
    I hope I didn’t sound like I had any problem about Sitelock, of course I don’t at all. It was really just the casual way my host provider said to me “So it’ll be $299 for each website, I can bill it to the card you have on file, would you like me to do that for you now?”

    I’m gonna move to a new host for now, because I have a feeling this was not an attack on wordpress. If there is a bot in my root folder, surely all my sites should be vulnerable, but only those 2 are being attacked.

    I have since found bunch of tables in one of the databases with wdsrj_ prefix. No idea what they are, or how they got there, so I dropped them. So far, no attack for a few hours.

    Thank you all so much for your help and advice here.

    Thread Starter stratocaster

    (@stratocaster)

    I even went to the extreme of copying my entire root folder into one of my sites and called it aa, then ran scans on that site and it came up clean.

    Ok, so new host it is then. Thanks for your help. Much appreciated 🙂

    Thread Starter stratocaster

    (@stratocaster)

    Yes, I have installed Wordfence and Anti-Malware Security and Brute-Force Firewall by Eli Scheetz. Both scans say the sites are clean after I replace index.php and htaccess with the original files. Also scanned with securi site check, it says all clean, but a few hours later, index.php and htaccess get overwritten.

    The htaccess file doesn’t contain any bad code, but index.php does.

    Thread Starter stratocaster

    (@stratocaster)

    Thanks James,

    I’ve done pretty much most of that already. None of these folders seem to appear anymore, only index.php and htaccess.

    One domain I have purged the entire website, it has nothing but an index.html file, yet still getting hacked, so am I right to think that means it can’t be wordpress that was hacked?

    Thread Starter stratocaster

    (@stratocaster)

    Yes, I just re-loaded the products. The only thing I can think of was maybe something happened to the backup db. All seems to be working as it should, so I’m happy now.

    Thakns for your attention 🙂

    Thread Starter stratocaster

    (@stratocaster)

    Hi Hannah, thanks for the message.

    Well, I have built a new site on a temporary domain for testing and developing.
    I’ve decided just to import only my customers, I will re-build the products from scratch, since there are not too many and I’ll be replacing a lot of images etc anyway, as the company is making new promo material.

    I guess I should just make a new thread to ask how best to import from one database to the other.

    Thanks 🙂

    Thread Starter stratocaster

    (@stratocaster)

    Hmm, I set “In the file list” in Song Content settings (Display video link, choose to display video link and where).
    Then I set to enable “Allow adding video link” in Songbook Settings.

    Still doesn’t show up tho. The video link url is still there in the video tab, so at least the backend is calling it ok! :p

    Cheers

    Thread Starter stratocaster

    (@stratocaster)

    Ah ok, no worries. Thanks for making the plugin, it’ll be ideal once it’s functioning with the videos!

    My php is quite basic level and I’m new to WP plugins, but I’ll have a look and see if I can figure out how to call the url from the db.

    Cheers 🙂

    Thread Starter stratocaster

    (@stratocaster)

    Ah ok, I found how to edit the published date, so just the video links not working.

    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)