Welcome, Guest. Please login or register.
March 21, 2010, 04:28:49 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite .
110567 Posts in 15967 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  "Watch my site": Admin-Tool to check permanent if files have changed
Pages: [1] Go Down Print
Author Topic: "Watch my site": Admin-Tool to check permanent if files have changed  (Read 356 times)
chio

Offline Offline

Posts: 1617



WWW
« 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

crnogorac081

Offline Offline

Posts: 1163



« 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
Forum administrator
*****
Offline Offline

Posts: 1349


WWW
« 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
www.argosmedia.nl/portfolio (mostly WB sites)
----------------------------------------------------------------
Please don't request personal support, use the forums!
erpe

Offline Offline

Posts: 1738



WWW
« 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

oeh
Documentation Team
******
Offline Offline

Posts: 130


German Pischer's, what's life without them?


« Reply #4 on: March 12, 2010, 09:35:22 AM »

Correct. I loads the script in the index file.
Logged

Regards
oeh ;-}>
chio

Offline Offline

Posts: 1617



WWW
« Reply #5 on: March 12, 2010, 10:52:42 AM »

Yes, it uses your visitors as Cronjob wink
Logged

Argos
Forum administrator
*****
Offline Offline

Posts: 1349


WWW
« Reply #6 on: March 12, 2010, 12:07:34 PM »

Ah, I see!  grin
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
www.argosmedia.nl/portfolio (mostly WB sites)
----------------------------------------------------------------
Please don't request personal support, use the forums!
chio

Offline Offline

Posts: 1617



WWW
« Reply #7 on: March 12, 2010, 12:14:33 PM »

Ah, I see!  grin
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

sky writer

Offline Offline

Posts: 87


« 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

Offline Offline

Posts: 1163



« 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

Offline Offline

Posts: 1617



WWW
« 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

sky writer

Offline Offline

Posts: 87


« 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

Offline Offline

Posts: 1617



WWW
« 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

sky writer

Offline Offline

Posts: 87


« 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

Offline Offline

Posts: 1617



WWW
« Reply #14 on: March 13, 2010, 06:30:23 PM »

Thanks! I will include it in the next version.
Logged

sky writer

Offline Offline

Posts: 87


« 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

Offline Offline

Posts: 1617



WWW
« 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

sky writer

Offline Offline

Posts: 87


« 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
Documentation Team
******
Offline Offline

Posts: 130


German Pischer's, what's life without them?


« Reply #18 on: March 18, 2010, 09:21:06 PM »

Norwegian language files.

Logged

Regards
oeh ;-}>
chio

Offline Offline

Posts: 1617



WWW
« Reply #19 on: March 19, 2010, 11:45:11 AM »

Thanks!
Logged

chio

Offline Offline

Posts: 1617



WWW
« 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

oeh
Documentation Team
******
Offline Offline

Posts: 130


German Pischer's, what's life without them?


« Reply #21 on: March 19, 2010, 05:31:05 PM »

Updated Norwegian language files.
Logged

Regards
oeh ;-}>
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!