PDA

View Full Version : My site got hacked?


PokePets
03-21-2012, 06:52 AM
// HoF asked for this thread, so...

So, I get now the whole time connetion errors on my website;

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/u693722181/public_html/inc/functions.php on line 1691

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u693722181/public_html/inc/functions.php on line 61

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u693722181/public_html/inc/functions.php on line 65

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u693722181/public_html/inc/functions.php on line 621

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/u693722181/public_html/inc/functions.php on line 625

Warning: file_get_contents(templates//template.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/u693722181/public_html/inc/functions.php on line 1760

Etc.

I checked the database and it seem's that there arn't any tables inside... Anything got deleted? But the weird thing is... the size of the database is still 0.7 MB...

I checked the Mys conect file etc. and it's ok.

Help please?
It's also weird that this error appeard after I installed the new Mys version in another subfolder (/Beta) and I used another database for that.

Hall of Famer
03-21-2012, 07:19 AM
Umm check your config.php and see if any database info is altered. This is a good starting point Id say.

PokePets
03-21-2012, 07:28 AM
Umm check your config.php and see if any database info is altered. This is a good starting point Id say.

Nothing changed I guess

<?php
//Mysidia Adoptables Site Configuration File

$dbhost = 'mysql.99webs.info'; //DB Hostname
$dbuser = 'u693722181_niels'; //DB User
$dbpass = 'Mypassword'; //DB Password
$dbname = 'u693722181_pokepets'; //Your database name
$domain = 'pokepets.99webs.info'; //Your domain name (No http, www or . )
$scriptpath = ''; //The folder you installed this script in
$prefix = 'adopts_';

?>

Hall of Famer
03-21-2012, 07:34 AM
I see, thats strange, nothing happened to your config file. Did you happen to enter the same database info for the Mys v1.3.x site? If so, this may explain how the database for Mys v1.2.x's got deleted.

PokePets
03-21-2012, 07:35 AM
This is my config fille of the other new Mys version;

<?php
//Mysidia Adoptables Site Configuration File

$dbhost = 'mysql.99webs.info'; //DB Hostname
$dbuser = 'u693722181_niels'; //DB User
$dbpass = 'Mypass'; //DB Password
$dbname = 'u693722181_beta'; //Your database name
$domain = 'pokepets.99webs.info'; //Your domain name (No http, www or . )
$scriptpath = '/Beta'; //The folder you installed this script in
$prefix = 'adopts_';

?>

No I guess ;S?

Hall of Famer
03-21-2012, 07:39 AM
umm I see... There is not a single line of script in Mys v1.3.0 that drops tables, the only possibility for it to cause conflict with your other databases is that you entered the same DB info so the old DB was deleted while Mys v1.3.0 was being installed. Cant think of anything else that could have led to this...

What was the version of the old script you were using btw? Just curious, dont think anyone would hack your site though. Also have you consulted with Nemesis on what might have happened to his hosting service?

PokePets
03-21-2012, 07:44 AM
Version 1.2.4
I messaged Nemesis, he said nothing about hacking or so...

Is it not possible that the DB is just down or so? It's really weird that it's still 0.7 MB...

Hall of Famer
03-21-2012, 07:47 AM
@Pokepets:
Yeah thats another possibility. I remember Corsair had the same problem two days ago, believing that her database was deleted/hacked. An hour later however, she found her old database and tables back, they just re-appeared out of nowhere lol. Not sure why your problem has been so persistent though.

Hall of Famer
03-21-2012, 01:21 PM
Well it appears that Corsair resolved the issue simply by refreshing the phpmyadmin page:


For some reason the display showed not databases but when I refresh they were there. It was weird.


I dont suppose this will fix your problem, since you are actually getting some mysql errors. Looks like we will have to think about other possible causes.

PokePets
03-23-2012, 09:54 AM
I did that and it didn't help, thaanks anyway.