Advertisement:

Author Topic: urgent help ! receiving spam search and loosing resource  (Read 1546 times)

mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #15 on: January 08, 2018, 12:13:30 pm »
osc_get_latest_searches($limit = 20) - Gets the latest searches done in the website

the above is added footer to see what search is being done in my website ..... and it is giving those random words that are searched in my website

Aficionado

  • Guest
Re: urgent help ! receiving spam search and loosing resource
« Reply #16 on: January 08, 2018, 12:14:10 pm »
Scripts from preResize plugin:

Code: [Select]
</html>
    <script src="http:// * /oc-content/plugins/preResize_images/js/pica/pica.min.js"></script>
    <script src="http:// * /oc-content/plugins/preResize_images/js/jquery.ui.touch-punch.min.js"></script>

Also  a HUGE ammount of code (html and PHP) showing in all pages (categories for example) with IMPROPER <!-->


mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #17 on: January 08, 2018, 12:14:30 pm »
on which page you found this script

Aficionado

  • Guest
Re: urgent help ! receiving spam search and loosing resource
« Reply #18 on: January 08, 2018, 12:16:48 pm »
osc_get_latest_searches($limit = 20) - Gets the latest searches done in the website

the above is added footer to see what search is being done in my website ..... and it is giving those random words that are searched in my website

In any case the possible attacker IP is in the website logs. Check and block it within .htaccess.

Still, this is a very badly modified site and i bet your debug.log is full of errors.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: urgent help ! receiving spam search and loosing resource
« Reply #19 on: January 08, 2018, 12:18:27 pm »
That is not "php" code, just pure html. And he commented out some input forms, thought not exactly properly (but most modern browsers understand them anyway). You must put at least one space character after <!-- and before -->

Aficionado

  • Guest
Re: urgent help ! receiving spam search and loosing resource
« Reply #20 on: January 08, 2018, 12:21:09 pm »
That is not "php" code, just pure html. And he commented out some input forms, thought not exactly properly (but most modern browsers understand them anyway). You must put at least one space character after <!-- and before -->

Not sure why you ALWAYS doubt me. There IS PHP CODE EVERYWHERE.


mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #21 on: January 08, 2018, 12:21:17 pm »
the scripts the plugin owner have mentioned like after_html

osc_add_hook('after_html', 'przi_load_additional_js', 9);

do i have to modify or leave it...............

another things is does this is causing the random keywords searched in my websites

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: urgent help ! receiving spam search and loosing resource
« Reply #22 on: January 08, 2018, 12:23:33 pm »
Not sure why you ALWAYS doubt me. There IS PHP CODE EVERYWHERE.
Sorry, I was looking at the search pages, not categories. Yes, that is definitely wrong!

edit: please post here what pages you see that php code (you can omit the domain), as all pages I've checked do not contain above.
« Last Edit: January 08, 2018, 12:27:43 pm by dev101 »

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: urgent help ! receiving spam search and loosing resource
« Reply #23 on: January 08, 2018, 12:26:27 pm »
@ mandi
That script part probably works, although it is not 'by the book', but that is most definitely NOT the cause of this search 'issue'.

mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #24 on: January 08, 2018, 12:27:01 pm »
That is not "php" code, just pure html. And he commented out some input forms, thought not exactly properly (but most modern browsers understand them anyway). You must put at least one space character after <!-- and before -->

Not sure why you ALWAYS doubt me. There IS PHP CODE EVERYWHERE.

removed wrongly used it now removed

Aficionado

  • Guest
Re: urgent help ! receiving spam search and loosing resource
« Reply #25 on: January 08, 2018, 12:30:07 pm »
@mandy

Why don't you check the website logs (the webserver) ?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: urgent help ! receiving spam search and loosing resource
« Reply #26 on: January 08, 2018, 12:30:12 pm »
Not sure why you ALWAYS doubt me. There IS PHP CODE EVERYWHERE.
Sorry, I was looking at the search pages, not categories. Yes, that is definitely wrong!

edit: please post here what pages you see that php code (you can omit the domain), as all pages I've checked do not contain above.

That is not "php" code, just pure html. And he commented out some input forms, thought not exactly properly (but most modern browsers understand them anyway). You must put at least one space character after <!-- and before -->

Not sure why you ALWAYS doubt me. There IS PHP CODE EVERYWHERE.

removed wrongly used it now removed

Ah, that explains why I didn't see it. Afficionado. again, sorry for the doubt :)

mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #27 on: January 08, 2018, 12:32:58 pm »
@ mandi
That script part probably works, although it is not 'by the book', but that is most definitely NOT the cause of this search 'issue'.

in search if i am searching some keywords say like "nokia mobile" that it reflects in the footer using
Quote
<?php
                    osc_get_latest_searches($limit = 20) ;
                        if(osc_count_latest_searches() >0)
                        {
                            $i=1;
                            while(osc_has_latest_searches())
                            {
                                echo '<span>' . osc_latest_search_text() . '</span> | ';
                                $i++;
                            }
                        }
                ?>

after few secs i can see more random words search like this

Quote
jqZMxUAYV | nzyYBMBKP | OItFLWpjeJuvMAvWCQ | wSXmVgzjH | sKFlbZVwX | hEFALvfzbujpGN | KieaxZYwTmagMRacW | rmCZnqHz | GaXrnuuuOqVcqaFZ | WuEycgMzQIYgbD | final year projects |

why these words are coming up

is this my bots or what....how to get rid of this...

mandi007

  • Full Member
  • ***
  • Posts: 204
Re: urgent help ! receiving spam search and loosing resource
« Reply #28 on: January 08, 2018, 12:35:21 pm »
in my access_log i cant find any url related to it and also in error_log.......please point me where should i check

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: urgent help ! receiving spam search and loosing resource
« Reply #29 on: January 08, 2018, 12:35:56 pm »
Hmm, that is interesting. You use CloudFlare, now I don't wish to speculate much without seeing your logs first, but can you completely bypass CF for a while and see if it happens again?