Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 09:37:50 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149686
Posts in
21102
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
"Watch my site": Admin-Tool to check permanent if files have changed
Pages: [
1
]
Go Down
Author
Topic: "Watch my site": Admin-Tool to check permanent if files have changed (Read 1956 times)
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
"Watch my site": Admin-Tool to check permanent if files have changed
«
on:
March 08, 2010, 12:16:00 PM »
yepp. As you can see, my english is not the best...
Please: Someone may have a look at the EN-language files (german is original)
the really dangerous way to hack sites is not defacement, but invisible manipulation of files; embedding iFrames with manipulated PDFs or javascript.
You and your visitors dont even realize it - if you dont use an older browser..
This tool makes a hash value of the most used files and the checks permanent, if one has changed. If so, it sends an eMail.
Here is version 0.3. Install it, go to Admin-Tools->Watch my site and then follow the instruction.
//EDIT:
New version 0.4
You can change the eMail and [check], if it works.
Better Language files
«
Last Edit: March 19, 2010, 02:19:28 PM by chio
»
Logged
*weg*
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #1 on:
March 08, 2010, 12:24:20 PM »
wow, great module... I had an issue with 2 of my temp sites, they have been hacked with js..
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Argos
Moderator
Offline
Posts: 2084
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #2 on:
March 12, 2010, 01:20:33 AM »
How does that work, "checks permanent"? Does it use cron or something?
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe
Offline
Posts: 2077
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #3 on:
March 12, 2010, 09:14:27 AM »
As far as I know it starts one proove with each call of the homepage (frontend).
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
oeh
Offline
Posts: 190
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #4 on:
March 12, 2010, 09:35:22 AM »
Correct. I loads the script in the index file.
Logged
Good bye ;-{(
oeh ;-}>
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #5 on:
March 12, 2010, 10:52:42 AM »
Yes, it uses your visitors as Cronjob
Logged
*weg*
Argos
Moderator
Offline
Posts: 2084
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #6 on:
March 12, 2010, 12:07:34 PM »
Ah, I see!
So if a hacker does his dirty job and no one visits your site, you won't get any alarms?
Does the script have noticable impact on loading time, traffic, etc?
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #7 on:
March 12, 2010, 12:14:33 PM »
Quote from: Argos on March 12, 2010, 12:07:34 PM
Ah, I see!
So if a hacker does his dirty job and no one visits your site, you won't get any alarms?
No. But I guess: a typical Website has some visitors. at least the google-bot..
Quote
Does the script have noticable impact on loading time, traffic, etc?
Not much. One database request to check the last call. If there is more than 10 minutes gone: a bit more, but not much. its a small script.
Logged
*weg*
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #8 on:
March 12, 2010, 10:03:18 PM »
I am excited about this module. I followed the instructions and all seems to be working in the admin.
But I can't seem to get a warning email sent. I've tried changing my template index.php file through the WB admin... and then through my webhost, but I never get an email.
Is there something I'm doing wrong?
As it says in the module I put this in my WB root index.php file:
if (file_exists(WB_PATH.'/modules/watchmysite/dowatch.inc.php')) {include(WB_PATH.'/modules/watchmysite/dowatch.inc.php');}
Logged
crnogorac081
AddOn Development
Offline
Posts: 1680
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #9 on:
March 13, 2010, 03:05:24 AM »
@chio
Does the module use simple phpmail or $wb->mail ?
@sky writer
If module is using simple phpmailer maybe your host doesnt allow it..
Also it could be that they are coming with delay..
cheers
«
Last Edit: March 13, 2010, 03:07:19 AM by crnogorac081
»
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #10 on:
March 13, 2010, 07:54:08 AM »
It uses:
Code:
$wb->mail(SERVER_EMAIL,$admin_email,$mail_subject,$mail_message);
$admin_email = eMail of user 1
I plan to make this editable in the next version.
Did you check the SERVER_EMAIL ? (Options)
Did you _ever_ get a mail from your website?
I know, there are sometimes problems with sending eMails. I have different eMails, if I use my GMX account, I always get the mail, if I use another, I never get the mails.
Logged
*weg*
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #11 on:
March 13, 2010, 04:29:32 PM »
Hi, thanks for following up. I did eventually see the warning in the module admin, and did receive ONE warning email. But I have continued to change the template/index.php file and it has shown the warning a couple of times in the admin, but hasn't sent me another email.
Is there a certain cycle of time that each page is checked?
What do these items (Nr: 4. Full loops: 3) mean?
Logged
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #12 on:
March 13, 2010, 06:01:59 PM »
When a visitor opens a page (any page) the tool first asks, if at least some time has passed since the last check. if yes: it checks. In the beginning this time is 0, but its getting more; simply not to slow down your site.
When it finds an error, it also checks if there passed some time since the last warning. (I think its 1 hour).
This is necessary, because if a hacker really was on your site, he might have changed masses of files - and you would get masses of mails, which could hang in the spamfilter.
Quote
What do these items (Nr: 4. Full loops: 3) mean?
List-Entry Nr 4 was last checked; all entries (the whole list) was checked 3 times.
Logged
*weg*
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #13 on:
March 13, 2010, 06:14:38 PM »
Thanks so much for your explanation. I really like the potential of this module.
«
Last Edit: March 14, 2010, 04:36:40 PM by sky writer
»
Logged
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #14 on:
March 13, 2010, 06:30:23 PM »
Thanks! I will include it in the next version.
Logged
*weg*
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #15 on:
March 14, 2010, 12:39:04 AM »
There was one line in the help file I couldn't fully translate:
Nach einem Upgrade von WebsiteBaker ändern sich natürlich sehr viele Dateien.
Sie können diese dann einzeln reseten oder dieses Tool einfach neu installieren.
I figured it meant: If you upgrade WB, or alter files yourself, you should install this module again to ensure it functions properly.
Am I even close?
Logged
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #16 on:
March 14, 2010, 07:53:06 AM »
Not exactly.It means:
If you upgrade websitebaker, there will be altered a lot of files. you can reset each single entry, or reinstall this tool (to reset the list fully)
Logged
*weg*
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #17 on:
March 14, 2010, 04:37:19 PM »
I have attached my revised interpretation of the EN language files. Hope this helps.
Logged
oeh
Offline
Posts: 190
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #18 on:
March 18, 2010, 09:21:06 PM »
Norwegian language files.
Logged
Good bye ;-{(
oeh ;-}>
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #19 on:
March 19, 2010, 11:45:11 AM »
Thanks!
Logged
*weg*
chio
WebsiteBaker Org e.V.
Offline
Posts: 2264
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #20 on:
March 19, 2010, 02:26:52 PM »
I have uploaded version 0.4 (see first post)
You can now change eMail-address and send a test-mail. (to reset the eMail, simply change it to "@")
Thanks to oeh & sky-writer for their language files (I did some changes now, because of the new options)
NOTE: I have realised, that most problems with eMail sending is a wrong Server-eMail in the WB-Options: In some cases it MUST be an existing address and/or fitting to your domain.
Logged
*weg*
oeh
Offline
Posts: 190
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #21 on:
March 19, 2010, 05:31:05 PM »
Updated Norwegian language files.
Logged
Good bye ;-{(
oeh ;-}>
sky writer
Offline
Posts: 252
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #22 on:
April 14, 2010, 06:29:52 PM »
Just wanted to follow up and say that I really like this module. It's great peace of mind to know that I don't have to be checking for hackers and injections like I used to (one of my main website was hacked on a regular basis). It's funny, I will do some code work on a site, and then a little while later I'll get a warning email... and I'll think "uh oh", then I'll remember that it was "I" who changed the code. But it's nice to be reminded that the module is working.
Cheers!
Logged
Vidar
Offline
Posts: 36
Re: "Watch my site": Admin-Tool to check permanent if files have changed
«
Reply #23 on:
April 25, 2010, 08:33:27 AM »
Hey,
Execellent idea, thanks for the peace of mind!
I created finnish language files.
One problem: It can't reset the file status from the backend. When I click the "OK" on a changed file nothing happens. Tried this on chrome and opera browsers.
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...