Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 07:47:23 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155551
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
Site Hacked
Pages: [
1
]
Go Down
Author
Topic: Site Hacked (Read 831 times)
jokerboy
Offline
Posts: 21
Site Hacked
«
on:
August 15, 2011, 07:09:10 PM »
My site was hacked. I can't figure out how to get it back. The page loads fine from within admin but not at the URL. Where might this little hack be?
??
Logged
badknight
Moderator
Offline
Posts: 246
Re: Site Hacked
«
Reply #1 on:
August 15, 2011, 07:21:21 PM »
can you post give us the link to your sitE?
Logged
Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #2 on:
August 15, 2011, 08:14:50 PM »
O.K. I found it in an index.htm. Now WB is not loading.
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: Site Hacked
«
Reply #3 on:
August 15, 2011, 08:54:43 PM »
Hi,
which Version did you have installed and which modules (including the integrated modules!).
Make a backup of the existing webspace like it s now (after the "hack"). Upload the files from the WB Version you are using on that site. Check your downloaded /pages folder for malicious files (compare the index.php and the page access files). Do the same with the folders templates and media and modules and then reupload these four folders. Then check the config.php for malicious code and reupload it as well. You should be able the reuse your site.
Take especially care with checking the media folder, if somebody got access to it, there will be the culprit.
IMPORTANT: You'll have to use the same WB Version first of all! If you want to upgrade to a newer version of WB, do it afterwards!
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Luisehahne
Board Member
Development Team
Offline
Posts: 3147
Re: Site Hacked
«
Reply #4 on:
August 15, 2011, 10:08:21 PM »
Maybe you have an older Fix package. Than you again have to upload the index.php in root folder. Please try and inform.
Dietmar
Logged
We are human beings - and nobody is perfect at all.
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #5 on:
August 15, 2011, 10:19:25 PM »
I uploaded the hacked site again now I am getting:
Template Error: set_root: /home/file/public_html/templates/argos_theme/templates is not a directory.
Halted.
when I try to log on to the admin panel.
What is that all about?
Logged
Luisehahne
Board Member
Development Team
Offline
Posts: 3147
Re: Site Hacked
«
Reply #6 on:
August 15, 2011, 10:35:26 PM »
Hi,
now step by step.
please download
WB 2.8.2 Fixes 2011/08/01 (Rev. 1484)
unpack the package
upload all folder to your webspace
upload the index.php and upgrade-script.php to your webspace.
run the upgrade-script.php
Dietmar
Logged
We are human beings - and nobody is perfect at all.
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #7 on:
August 16, 2011, 03:21:38 PM »
I did all that. re-named config.php.new to config.php and I get:
Warning: require_once(WB_PATH/framework/functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/baker/public_html/upgrade-script.php on line 21
Fatal error: require_once() [function.require]: Failed opening required 'WB_PATH/framework/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/baker/public_html/upgrade-script.php on line 21
any suggestions?
thanks,
jb
Logged
Luisehahne
Board Member
Development Team
Offline
Posts: 3147
Re: Site Hacked
«
Reply #8 on:
August 16, 2011, 05:12:19 PM »
Your config.php is empty. Did you already install WB? then you have to fill the config.php as follows
Code:
<?php
define
(
'DB_TYPE'
,
'mysql'
);
define
(
'DB_HOST'
,
'localhost'
);
define
(
'DB_NAME'
,
'databasename'
);
define
(
'DB_USERNAME'
,
'datbase user'
);
define
(
'DB_PASSWORD'
,
'database password'
);
define
(
'TABLE_PREFIX'
,
'wb_'
);
define
(
'WB_PATH'
,
dirname
(
__FILE__
));
define
(
'WB_URL'
,
'http://www.yourdomain.com'
);
define
(
'ADMIN_PATH'
,
WB_PATH
.
'/admin'
);
define
(
'ADMIN_URL'
,
WB_URL
.
'/admin'
);
require_once(
WB_PATH
.
'/framework/initialize.php'
);
Logged
We are human beings - and nobody is perfect at all.
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #9 on:
August 16, 2011, 07:12:19 PM »
O.K. I did that. now the upgrade-script.php just returns a blank page.
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7973
Re: Site Hacked
«
Reply #10 on:
August 16, 2011, 07:46:25 PM »
Hello,
wich php Version is running on your server?
Matthias
Logged
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #11 on:
August 16, 2011, 08:26:20 PM »
5.1.52-cll
Logged
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #12 on:
August 17, 2011, 10:47:13 PM »
O.K. I did a complete new install. I tried to dump db and nothing shows. It shows in PHP MyAdmin but not in WB. Howhere can I see in WB admin what DB it is pulling from?
Thanks,
JB
Logged
pcwacht
AddOn Development
Offline
Posts: 2859
Re: Site Hacked
«
Reply #13 on:
August 17, 2011, 10:53:03 PM »
config.php -> DB_NAME and TABLE_PREFIX
See allso (litle above)
http://www.websitebaker2.org/forum/index.php/topic,22146.msg149360.html#msg149360
Oh, and it might be helpfull to know wich WB version you did have!
What was in the index.html, and was it surely a index.HTML?
WB don't use index.html but index.PHP
You are very sparse with information.
We don't have cristall balls where we can look in to fill in what we might need to know to help you.
We can only know what you tell, like normal people
.
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
jokerboy
Offline
Posts: 21
Re: Site Hacked
«
Reply #14 on:
August 17, 2011, 11:17:35 PM »
I thought of config.php after I posted last. I don't understand. the DB is populated with the old info but it does not show. I also created a new test home page and it does show.
I don't know the old version because it will not load anymore.
Logged
pcwacht
AddOn Development
Offline
Posts: 2859
Re: Site Hacked
«
Reply #15 on:
August 18, 2011, 07:28:31 AM »
Quote
the DB is populated with the old info but it does not show.
What doesn't show? I suspect pages, where don't they show, frontend/backend or both??
If they show in frontend, not in backend then the pagelink files are corrupt or missing. (pages/)
Just edit each page and WB will create new pagelink files.
Same with news items.
Quote
I also created a new test home page and it does show.
New page shows, did you check the db to see if new page is added to the pages table?
If not then the new WB is n't using the old DB - correct the settings in config.php.
Allso remember please, we don't see what you see, we don't know more then you tell us - we don't ask you to write a whole novell
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...