Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • There is also an infected file index.php that keeps being re-infected no matter I rename, delete file/parent folders.

    I had this issue as there was a script running that reached out once the file was changed or removed. I watched traffic and when I cleaned it, where traffic was coming from as the file reverted.

    I can’t remember if it was when someone viewed the site it called the script to check for the corruption and if it was cleaned, re-download the bad file.

    Once I removed the connectivity to that country ip range, I had time to learn and harden my wp installation.

    not that it helps after but I long ago had an issue and had to restore.

    I got a bad login try notice from wordfence recently.

    Top 10 Failed Logins = wordcamp

    added to my .htaccess

    <Files wp-login.php>
    Order Deny,Allow
    Deny from All

    Allow From (ip ranges I use)

    </Files>
    <Files wp-admin$>
    Order Deny,Allow
    Deny from All

    Allow From (ip ranges I use)

    </Files>
    <FilesMatch “^php5?\.(ini|cgi)$”>
    Order Deny,Allow
    Deny from All

    allow from (ip ranges I use)
    ending this with
    Allow from env=REDIRECT_STATUS=200

    finally I added in the file

    <Files xmlrpc.php>
    Order Deny,Allow
    Deny from all

    added a specific IP

    to complement this in I believe wordfence, I added username that does not exist being used, locks the IP for a set period.

    If I messed up I can go into cpanel and fix the lockout or wait the period or deactivate wordfence and unlock and activate again.

    automated attacks once they are IP banned tend to move on down the line.

    I was also getting attacked at one point from a small country, so i blacklisted the entire country and monitored traffic.

    The hardest thing, especially with posting/comment areas is sanitizing your database.

    if something happens with a bad update I can roll back with backups.

    I have wordfence and other security plugins on automatic update, as I want them instantly applied. As long as you have a backup or a host side backup to restore from, then it is better to apply with the ability to roll back then be exploited.

    Forum: Fixing WordPress
    In reply to: Hacked website?

    also remember the machine you are using to fix the site also may have been compromised.

    I recommend running a full AV scan and I also use as a on demand both malwarebytes and superantispyware.

    Forum: Fixing WordPress
    In reply to: Hacked website?

    I am not at all an expert but you may start securing php and I removed comment form on my site.

    I started by setting .htaccess to specific IP ranges. if I have to edit because I am away I can always cpanel and edit the file remotely.

    code I used in my .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    also added <Files wp-login.php>
    Order Deny,Allow
    Deny from All
    Allow from ##.##.##
    Allow from ##.##.##
    Allow from ##.##.##
    Allow from ##.##.##
    Deny from ##.##.##

    used same IP list for

    <Files wp-admin$>
    Order Deny,Allow
    Deny from All

    again same IP list

    </Files>
    <FilesMatch “^php5?\.(ini|cgi)$”>
    Order Deny,Allow
    Deny from All

    (ended above with)
    Allow from env=REDIRECT_STATUS=200

    last was

    </FilesMatch>
    Options -Indexes
    <Files xmlrpc.php>
    Order Deny,Allow
    Deny from all
    </Files>

    with my new host the first section broke the site due to updates, it worked with my old host.

    wordfence has helped a lot but it’s not the cure all.
    if you have not added this to your .htaccess or restricted it.. it will most likely continue. I believe the code was tossed at the contact form and pulled via PHP commands.

    if you have done this.. thats about it for me. if not do so and clean the site again.

    Forum: Fixing WordPress
    In reply to: Got hacked

    tried the prvention vs php injection I posted and it locked my site.

    undid it.. and I am back in.. so that code failed and caused a error 500 🙂

    Forum: Fixing WordPress
    In reply to: Got hacked

    I have no idea if the server application is running on has a web browser installed, but if it does.. and that is beyond my knowledge, all that would need to be done is a single install of the browser homepage as the virus site and it opening and closing the browser. on a built in trigger/time/cookie.

    again block .tk and clear the code. see what happens.

    Forum: Fixing WordPress
    In reply to: Got hacked

    from other reports on this issue, it spawns a web page call that opens to the infected site.

    Forum: Fixing WordPress
    In reply to: Got hacked

    I assume the codes target has changed.

    did you check if the prior code is still the same code as before?
    The delay tells me it was trying but was hitting the wall you put up by blocking the sites and IP’s.

    If the code has not changed and it got replaced, something is still reaching out.
    FTP or RDP maybe after a set time.

    check the code and see if it changed.

    I learn every time I Dig.
    roi 777.com seems to kick to kuhjgtfreda(dot)tk

    block ht tp:/ /front steps(dot)tk”
    I would install ip2location or similar and block the .tk country.

    you can try in htaccess adding this where you had the IP strings.

    Order Deny,Allow
    Deny from .tk

    You may just have to buy wordfence premium, use the country blocking and then maybe hire them to clean the site.

    I am learning as I go with this and a few other places have had the same issue as you.

    Forum: Fixing WordPress
    In reply to: Got hacked

    “this means that they are not really logging in to insert the code?”

    from what I can see, no.

    a code is hidden on your box somewhere are is being called at specific times.
    it seems to look at the index and if the timestamp changed it calls out and pulls the changes from another machine.

    i effect they are not breaking in, your machine is calling out to grant them access again.

    since it is so common several times per 24 hours, I would clear and log all external IP calls.

    wordfence is not telling you the admin has been accessed or the index is changed because when the machine pulls the info no login happened. and it disables WF before changing the index so you don’t get an alert.

    Forum: Fixing WordPress
    In reply to: Got hacked

    looking at a page that had the code on it prior. it is now a fake windows virus/windows defender scam page.

    Since it’s calling w ww.evange lizabrasil.com (2 manual brakes added by me)

    I would also specifically block that. Not that I am sure thats an issue but it seems that the $z8c7dd922ad47 is calling the index on that site. and being the front landing page is hacked.. blocking it is a good idea anyway.

    I am not an expert, maybe someone else will pop in with more help.

    Forum: Fixing WordPress
    In reply to: Got hacked

    calling out of the IP for king-servers.com.

    162.244, range but with multiple servers I would start by blacklisting the whole range.

    if it still gets replaced or you want to do more work first..
    this shows 12 IP ranges those US based servers use.

    https://awebanalysis.com/en/ipv4-as-name-directory/http%3A-slash–slash-king-servers.com/

    Forum: Fixing WordPress
    In reply to: Got hacked

    may want to put a block on the server calling

    ht tp: //roi777.com

    Forum: Fixing WordPress
    In reply to: Got hacked

    this will not help if they are crossing from a trust with the host server but if it’s an outside attack and they are getting in and changing files, this may block the access to those files they need to change to modify your site.

    I had a few issues where they got into my site and changed the front page, they changed user names and access..

    I did all the same of changing passwords and credentials bu they were back in in 15 days. (with wordfence on) and yes when they hacked in they turned the plugins off.

    this, though a pain to have to update IP’s whenever I travel somewhere, has secured my site for now.. (last 8 months)

    Forum: Fixing WordPress
    In reply to: Got hacked

    If you can, lock off the changes by IP ranges you use.

    set public index .htaccess to allow only by IP ip range.
    also block PHP as well by IP range.

    <Files wp-login.php>
    Order Deny,Allow
    Deny from All
    Allow from ##.###.##.###
    Allow from ##.##.##
    Allow from ##.##.##
    Allow from ##.##.##
    Deny from ##.##.##

    <Files wp-admin$>
    Order Deny,Allow
    Deny from All

    Same IP list above

    <FilesMatch “^php5?\.(ini|cgi)$”>
    Order Deny,Allow
    Deny from All

    same again ending ip list with
    Allow from env=REDIRECT_STATUS=200

    toss this in too

    </FilesMatch>
    Options -Indexes
    <Files xmlrpc.php>
    Order Deny,Allow
    Deny from all
    </Files>

    Just out of curiosity looked at what it was calling.

    otpuwblr = Forex
    oyulpkp = database of money transfers

    You can always put in google “otpuwblr” quotes needed and see if an exact match pops up.

    (!function_exists(‘otpuwblr’))

    also sending out data..

    mailto:fepdof in the code fepdof pops up a lot in hacked Wp sites

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