Migration of an existing (hacked) site locally
-
Hi all gurus,
please forgive the noobyness, I’m really new to WordPress …
Shortly: a friend of mine has got a wp site that has been hacked through a php shell.
Obviously, he didn’t have a backup and the person who did his site is a freelance webdesigner who’s actually disappeared…He asked me an help to start his site from scratch, and… well, here I am.
I performed a clean installation of wordpress, applied some security measures, installed his previous theme (a payment one). So far, so good.But… in order to render the look & feel similar, if not identical, to the hacked site, I would like to setup the “hacked” site locally.
I found this guide:https://codex.www.ads-software.com/Test_Driving_WordPress#Installing_an_Existing_WordPress_Site
And tried to follow it step-by-step, assured that I have a full FTP dump of the site after the attack (and cleansing procedure) as well as the access to its DB.
The problem is when I try to import the db using phpMyAdmin integrated in XAMPP.
As far as I’ve seen, the MySQL db of the site was made of two tables:
information schema
<sitename>_com_one
As seen in the guide, I exported the db in an SQL file and lately, I replaced in this file all the instances of URL “https://www.sitename.com” with “https://localhost/sitename.com”.When I tried to import the sql file in XAMPPP’s MyPHPAdmin I initially had a problem on the first row:
SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;
Hence, I commented it, but again the import stucks at the following row:
CREATE DATABASE information_schema DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
I commented also this row, given that “information schema” is a DB table which is already available by default in the MySQL db integrated in XAMPPP.
New import trial: this time I had an error on
USE information_schema;
Tried to comment also this entry, but then I had the error on this:
CREATE TEMPORARY TABLE CHARACTER_SETS ( CHARACTER_SET_NAME varchar(32) NOT NULL DEFAULT ”, DEFAULT_COLLATE_NAME varchar(32) NOT NULL DEFAULT ”, DESCRIPTION varchar(60) NOT NULL DEFAULT ”, MAXLEN bigint(3) NOT NULL DEFAULT ‘0’ ) ENGINE=MEMORY DEFAULT CHARSET=utf8;
At this time I stopped commenting as it’s clear the problem is elsewhere.
Could anyone help me out with this task?
Thanks in advance,
kind regards!
- The topic ‘Migration of an existing (hacked) site locally’ is closed to new replies.