找回密码
 注册账户
查看: 2364|回复: 1

Adsense Code Checker

[复制链接]
admin 发表于 2008-1-3 03:36:22 | 显示全部楼层 |阅读模式
A security vulnerability in your hosting and an hacker can access your files, store spamming scripts, and change the Adsense code in ads to put the one of his account and be credited to his account with... your incomes!

Hacking is not always easy to detect. If a clumsy hacker changes the codes on most of your pages and is waiting for the revenues, when noting the drop in earnings on your site, or even full extinction, you look at what is happening and find the cause... But if it is more clever, it will change the code at certain times of the day and then restore your code, so could be unnoticed by reducing your income only.

The Adsense Checker script is designed to automatically detect such fraud. You have to run it from time to time at different times of day. This script requires that PHP 4 or 5 is installed locally on your computer.

How Adsense Checker works
The program scans the content of your website in FTP mode, so without running the scripts on the site, it loads Web pages, identifies the JavaScript Adsense code, extract the client code, and provides at the end of operations the list of codes found.
You can so verify if besides your code, was introduced a foreign code by the hacker.
A file, acheck.log is created to show details of the operations, pages found and where codes were inserted.

Using the script
It runs from the command line, in a so-called "DOS" window.
Type:

php acheck.php [options] -llogin -ppassword ftpaddress
Required arguments:
If these arguments are omitted you will be prompted by the program to enter them:

-l your ftp login.

-p your ftp password.

ftpaddress: ftp address of your site in the form: ftp.scriptol.com.

Optional parameters
If these arguments are omitted, default values will be used:

-v verbose mode, more details displayed, default is false.

-q quiet mode, default is false.

-d followed by a directory name. Subdirectory that is the root of the hosting. Often "www". Default none.

-n displaying the number of ads found on each page. Default displays "."

-s displaying subdirectories.

It is recommended that you create a batch file. This is a text file containing the command with a BAT extension. It will be executed as a program.

What the script displays
Firstly the options you have selected, and then for each page on the site, a dot or the number of ads found. When a new client code is encountered, the + symbol is displayed, so you know already when several codes exist.

At the end of the processing, the script displays all Adsense codes he found.

What if a hacking is found?
Check all PHP scripts on your site, they could change the content of your pages or replace them. Change your password for the FTP connection.

Limitations
The script does not take into account the possible pages generated by PHP scripts on your hosting. You must review the scripts on your site, and if they have not been changed. One can also consider the worst, an employee of the hosting company, which has thus access to all hosted sites and make revenue to their detriment. Having a local image of the site that can be compared with the online contents can be useful.

下载地址
http://pcfile.cn/386adsense-checker.zip
lm5580409 发表于 2008-4-15 22:35:52 | 显示全部楼层
来看看。。谢谢
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

存档|黑屋|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2026-6-4 21:50 , Processed in 0.010695 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表