让aMule支持DLP的源码补丁(1月24日更新了~)

上网、浏览、聊天、下载等
回复
头像
foolegg
帖子: 249
注册时间: 2007-12-01 14:56

Re: 让aMule支持DLP的源码补丁(更新至3903)

#76

帖子 foolegg » 2009-11-21 14:05

很奇怪的错误,用

代码: 全选

./amuled -e
启动就会出错

代码: 全选

./amuled --ec-config
就不会……
头像
foolegg
帖子: 249
注册时间: 2007-12-01 14:56

Re: 让aMule支持DLP的源码补丁(更新至3903)

#77

帖子 foolegg » 2009-11-21 14:30

又崩溃了
我enable-debug又make了一次
但是控制台获得的信息与刚才一样

log 如下

代码: 全选

2009-11-21 14:26:42: amule.cpp(605): Starting aMuled 2.2.6 using wxGTK2 v2.8.7
2009-11-21 14:26:42: ClientCreditsList.cpp(168): Creditfile loaded, 0 clients are known
2009-11-21 14:26:42: IPFilter.cpp(109): Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2009-11-21 14:26:42: IPFilter.cpp(334): Loaded 0 IP-ranges from '/home/****/.aMule/ipfilter.dat'. 0 malformed lines were discarded.
2009-11-21 14:26:42: IPFilter.cpp(334): Loaded 0 IP-ranges from '/home/****/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
2009-11-21 14:26:42: ExternalConn.cpp(159): *** TCP socket (ECServer) listening on 0.0.0.0:4712
2009-11-21 14:26:42: MuleUDPSocket.cpp(81): Created Server UDP-Socket at port ****
2009-11-21 14:26:42: MuleUDPSocket.cpp(81): Created Client UDP-Socket at port ****
2009-11-21 14:26:42: UPnPBase.cpp(868): Universal Plug and Play: bound to ***.***.***.***:****
2009-11-21 14:26:45: UPnPBase.cpp(939): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: WAN Service not detected.
2009-11-21 14:26:45: ServerList.cpp(84): Loading server.met file: /home/****/.aMule/server.met
2009-11-21 14:26:45: ServerList.cpp(169): 0 servers in server.met found
2009-11-21 14:26:45: DownloadQueue.cpp(171): Found 1 part file
2009-11-21 14:26:45: SharedFileList.cpp(352): Found 0 known shared files
2009-11-21 14:26:45: amule.cpp(803): Connecting
2009-11-21 14:26:45: ServerConnect.cpp(124): No valid servers to which to connect found in server list
2009-11-21 14:26:45: Logger.cpp(275): Deleted stale lock file '/home/****/.aMule/muleLock'.
2009-11-21 14:26:45: ThreadScheduler.cpp(308): ThreadScheduler: Completed task 'AICH Syncronizing', 0 tasks remaining.
头像
smalloldman
帖子: 94
注册时间: 2007-12-08 20:45
来自: 兰州

Re: 让aMule支持DLP的源码补丁(更新至3903)

#78

帖子 smalloldman » 2009-11-24 17:11

楼主阿 我编译安装完咋是 英文版呢? language 不能选择阿
装的是wxGTK-2.8.10 系统是centos 求解。
附件
Screenshot.png
Bill Lee
帖子: 598
注册时间: 2009-09-19 20:50

Re: 让aMule支持DLP的源码补丁(更新至3903)

#79

帖子 Bill Lee » 2009-11-24 20:43

想问一下楼主
这DLP在GUI下有效,那在daemon下有效吗?
没有仔细研究过源码,不知道DLP这段是放在哪里
GUI的资源消耗实在太大,想用daemon
aMule 2.3.1 is coming...
真正动态的 amule-dlp is coming...
本人帐号在2011年1月被盗,在2011年1月3日17:19到2010年1月6日13:34之间本帐号发的一切帖子、短信等与本人无关!
amule-dlp 开发动态
amule-dlp on Google Code
WebArchiver - 基于 wget 的网页归档工具(PyQt4 GUI 前端)
Linux 2.6.34 编译笔记
头像
foolegg
帖子: 249
注册时间: 2007-12-01 14:56

Re: 让aMule支持DLP的源码补丁(更新至3903)

#80

帖子 foolegg » 2009-11-25 15:58

daemon有效的
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

Re: 让aMule支持DLP的源码补丁(更新至3903)

#81

帖子 syrano » 2009-11-25 16:00

foolegg 写了:daemon有效的
就是不知道用daemon时怎么查看被ban的xunlei.
E=m c^2
头像
suckmyball
帖子: 315
注册时间: 2009-10-17 22:05

Re: 让aMule支持DLP的源码补丁(更新至3903)

#82

帖子 suckmyball » 2009-11-30 19:47

我按LZ的方法安装了,
头像
midoriumi
帖子: 40
注册时间: 2009-02-24 13:07
联系:

如果崩溃的话……

#83

帖子 midoriumi » 2009-11-30 21:13

因为个人水平有限,程序里面难免会有鬼,如果发现经常崩溃,同时你有能力而又有心帮助开发的话,请按照下面的方法获得能帮我定位错误的错误信息

使用最新的源码进行编译,.configure 参数带上 --enable-debug
编译后安装,然后在终端中运行
amule崩溃后,将终端中输出的信息发到论坛上来,或着也可以发送到我的邮箱

没有打DLP补丁的官方版aMule也存在崩溃的问题,在报告崩溃错误之前请确定崩溃是因DLP补丁引发的。最简单的方法是重新安装官方的aMule,如果官方的aMule不会崩溃的话,那么基本上就可以确定是DLP补丁的问题了。如果你的技术水平较高,可以直接对照下面的已知的官方aMule存在的崩溃问题来确定崩溃是否是由DLP补丁引起的。

下面是目前已知的官方 2.2.6 版本潜在的崩溃问题

1.磁盘空间不足时aMule可能会崩溃

环境:Ubuntu 9.10, aMule-2.2.6, ext4

在非调试模式下终端输出的错误信息:

代码: 全选

--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.10
Running on: Linux 2.6.31-15-generic i686

[2] ?? in amule [0x8084d49]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x4a6ba6]
[4] ?? in [0x578400]
[5] wcslen in /lib/tls/i686/cmov/libc.so.6[0x5f4638]
[6] wxString::Replace(wchar_t const*, wchar_t const*, bool) in /usr/lib/libwx_baseu-2.8.so.0[0x462f5d]
[7] ?? in amule [0x82150f9]
[8] ?? in amule [0x80c0ef4]
[9] ?? in amule [0x80c4637]
[10] ?? in amule [0x8090ba6]
[11] ?? in amule [0x815e354]
[12] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x43d780]
[13] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0x43d987]
[14] ?? in amule [0x815e5eb]
[15] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0x58fb56]
[16] ?? in amule [0x8083b91]
在调试模式下(--enable-debug)终端输出的错误信息

代码: 全选

--------------------------------------------------------------------------------
A fatal error has occurred and aMule has crashed.
Please assist us in fixing this problem by posting the backtrace below in our
'aMule Crashes' forum and include as much information as possible regarding the
circumstances of this crash. The forum is located here:
    http://forum.amule.org/index.php?board=67.0
If possible, please try to generate a real backtrace of this crash:
    http://wiki.amule.org/index.php/Backtraces

----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.6 using wxGTK2 v2.8.10
Running on: Linux 2.6.31-15-generic i686

[2] CamuleApp::OnFatalException() in amule.cpp:1289
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x2c0ba6]
[4] ?? in [0x571400]
[5] wcslen in /lib/tls/i686/cmov/libc.so.6[0x635638]
[6] wxString::Replace(wchar_t const*, wchar_t const*, bool) in /usr/lib/libwx_baseu-2.8.so.0[0x27cf5d]
[7] ExecuteCommand in UserEvents.cpp:123
[8] CUserEvents::ProcessEvent(CUserEvents::EventType, void const*) in UserEvents.cpp:153
[9] CDownloadQueue::CheckDiskspace(CPath const&) in DownloadQueue.cpp:1152
[10] CDownloadQueue::LoadMetFiles(CPath const&) in DownloadQueue.cpp:175
[11] CamuleApp::OnInit() in amule.cpp:761
[12] CamuleGuiApp::OnInit() in amule-gui.cpp:263
[13] wxAppConsole::CallOnInit() in app.h:76
[14] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x257780]
[15] wxEntry(int&, char**) in /usr/lib/libwx_baseu-2.8.so.0[0x257987]
[16] main in amule-gui.cpp:95
[17] __libc_start_main in /lib/tls/i686/cmov/libc.so.6[0x5d0b56]
[18] _start in start.S:122
叫我greensea吧 [@lvhai]

虽然现在这个用户名是midoriumi,但实际上是我把自己注册的greensea的密码给忘记了,于是只好再注册一个midoriumi,字面意思也和greensea一样是緑海(みどりうみ)。所以,叫我greensea或GS吧。
头像
midoriumi
帖子: 40
注册时间: 2009-02-24 13:07
联系:

Re: 让aMule支持DLP的源码补丁(更新至3903)

#84

帖子 midoriumi » 2009-11-30 21:24

foolegg 写了:又崩溃了
我enable-debug又make了一次
但是控制台获得的信息与刚才一样

log 如下
呃……在终端中运行以后,崩溃时应该能打印出堆栈调用信息的,没有堆栈调用信息的话很难确定错误在哪里。
叫我greensea吧 [@lvhai]

虽然现在这个用户名是midoriumi,但实际上是我把自己注册的greensea的密码给忘记了,于是只好再注册一个midoriumi,字面意思也和greensea一样是緑海(みどりうみ)。所以,叫我greensea或GS吧。
头像
midoriumi
帖子: 40
注册时间: 2009-02-24 13:07
联系:

Re: 让aMule支持DLP的源码补丁(更新至3903)

#85

帖子 midoriumi » 2009-11-30 21:26

smalloldman 写了:楼主阿 我编译安装完咋是 英文版呢? language 不能选择阿
装的是wxGTK-2.8.10 系统是centos 求解。
DLP补丁并没有影响到语言包,还是请你问问谷歌吧,可能是你的设置方面的问题。
叫我greensea吧 [@lvhai]

虽然现在这个用户名是midoriumi,但实际上是我把自己注册的greensea的密码给忘记了,于是只好再注册一个midoriumi,字面意思也和greensea一样是緑海(みどりうみ)。所以,叫我greensea或GS吧。
Bill Lee
帖子: 598
注册时间: 2009-09-19 20:50

Re: 做了个加强版的DLP

#86

帖子 Bill Lee » 2009-12-05 20:51

做了个加强版的DLP
主要修改:
  • 补杀了ModString=="20080409"的Xunlei
  • 启用了被zz_fly注释掉的封杀easyMule2。VeryCD的easyMule2违反GPL,并且进行社区加分。这里在其形成规模之前将其 封 口 杀
:em06 VeryCD在国内太强大,趁早处理,等easyMule2普及了可不得了。
注意:
  • 软件遵循GNU GPL。
  • 我并不为软件提供任何形式的担保,也无法保证它可以在特定用途中得到您希望的结果。虽然说我学编程一年了,不过接触C++才两个星期。虽然经过了测试 结果见后面,会不会有什么没发现的问题我就不知道了。
  • 大家要是发现了什么漏检的Leecher,欢迎举报。
aMule-2.2.6-DLP3903-BillEnh01.tar.bz2
修改后的源码
(4.33 MiB) 已下载 121 次
编译方法:
1.解压

代码: 全选

tar -xjf aMule-2.2.6-DLP3903-BillEnh01.tar.bz2
2.安装编译环境

代码: 全选

sudo apt-get install g++ binutils-dev libcrypto++-dev libgtk2.0-dev libgd2-xpm-dev libgeoip-dev libupnp3-dev zlib1g-dev libwxbase2.8-dev libwxgtk2.8-dev
3.CD进aMule-2.2.6

代码: 全选

cd aMule-2.2.6
4.配置aMule

代码: 全选

./configure --prefix=/usr --disable-debug --enable-optimize --with-denoise-level=3 --enable-upnp --enable-geoip --enable-nls --enable-amule-gui --enable-amule-daemon --enable-amulecmd --disable-webserver --enable-alcc -enable-alc --enable-cas --enable-wxcas --enable-mmap
这里和楼主的不一样的是启用了daemon守护进程。GUI界面的amule消耗资源太大,amuled还是很有用的。
另外如果是ADSL,那UPnP就没用了,可以把--enable-upnp改成--disable-upnp
如果配置成功,输出的结果最后应该有
Libraries aMule will use to build:
wxWidgets 2.8.10 (gtk2,shared)
crypto++ 5.6.0 (installed, in /usr)
regex system
libintl system
libGeoIP system
libpng 1.2.37
libgd 2.0.36
zlib 1.2.3.3
5.编译

代码: 全选

make
如果用的是双核CPU,且在编译期间不做其他事,可以

代码: 全选

make -j2
这样用两个线程编译。
6.安装
可以直接sudo make install,以后卸载就用sudo make uninstall。不过这样就要一直留着源码。
可以先安装checkinstall,这样就可以用sudo checkinstall安装,之后会一步步提示你生成一个deb包。这样就可以删掉几百M的源码,以后直接用新立得卸载。
好了,现在秀一下我的劳动成果
反吸血日志节选:
2009-12-05 17时04分26秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]g 位于 123.149.68.37:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时05分30秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]v 位于 219.146.209.58:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时05分44秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]e 位于 218.28.87.21:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时06分12秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]uYpVrqm 位于 113.156.47.28:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时06分19秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]sw 位于 221.233.24.50:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时07分22秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]WViPxDU 位于 119.40.33.195:3799,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时07分39秒: [Username_Hard Bad USERNAME] 用户 http://www.sdjtuning.com Emule xtreme per Alice, Tiscali, Libero [2qMy] «Xtreme 6.1» 位于 83.114.7.23:42733,使用 eMule v0.48a - Xtreme 6.1 Xtreme 6.1 (00/(null)/(null))
2009-12-05 17时08分07秒: [Modstring_Hard Xunlei] 用户 [CHN]VCFDCXob 位于 119.134.79.97:80,使用 eMule v0.48a - 20080409 20080409 (00/(null)/(null))
2009-12-05 17时10分17秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]MqyMYuc 位于 125.121.27.41:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时10分22秒: [Modstring_Hard Xunlei] 用户 [CHN]yourname 位于 116.7.53.109:18933,使用 eMule v0.47c - 20071122 20071122 (00/(null)/(null))
2009-12-05 17时10分47秒: [Modstring_Soft Bad MODSTRING] 用户 ccg 位于 222.128.164.212:9338,使用 easyMule2 20091124 v2.0b - easyMule2 20091124 easyMule2 20091124 (08/(null)/(null))
2009-12-05 17时11分06秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]n 位于 124.126.162.62:65535,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时11分58秒: [Username_Hard Bad USERNAME] 用户 [CHN][VeryCD][FlashGet]yourname 位于 222.217.13.61:13904,使用 eMule v0.49b - VeryCD 080919 VeryCD 080919 (00/(null)/(null))
2009-12-05 17时14分15秒: [Modstring_Hard Xunlei] 用户 [CHN][VeryCD]IqFA][_ 位于 119.120.94.201:8190,使用 eMule v0.48a - xl build61 xl build61 (00/(null)/(null))
2009-12-05 17时14分17秒: [Modstring_Hard Xunlei] 用户 [CHN]oUVmWrf 位于 59.173.160.131:80,使用 eMule v0.48a - 080620 080620 (00/(null)/(null))
2009-12-05 17时14分57秒: [Username_Hard Bad USERNAME] 用户 http://www.sdjtuning.com Emule xtreme per Alice, Tiscali, Libero [3}8e] «Xtreme 6.1» 位于 79.42.22.204:4662,使用 eMule v0.48a - Xtreme 6.1 Xtreme 6.1 (00/(null)/(null))
2009-12-05 17时15分23秒: [Modstring_Hard Xunlei] 用户 [VeryCD][CHN]bn 位于 220.179.66.170:80,使用 eMule v0.48a - 080620 080620 (00/(null)/(null))
2009-12-05 17时16分36秒: [Modstring_Soft Bad MODSTRING] 用户 阿木 位于 218.206.127.196:4659,使用 easyMule2 20091124 v2.0b - easyMule2 20091124 easyMule2 20091124 (08/(null)/(null))
2009-12-05 17时18分30秒: [Modstring_Soft Bad MODSTRING] 用户 [CHN]yourname 位于 58.63.13.171:25988,使用 eMule v0.47c - http://www.xunlei.com 070606 http://www.xunlei.com 070606 (00/(null)/(null))
上次由 Bill Lee 在 2010-01-24 16:39,总共编辑 2 次。
aMule 2.3.1 is coming...
真正动态的 amule-dlp is coming...
本人帐号在2011年1月被盗,在2011年1月3日17:19到2010年1月6日13:34之间本帐号发的一切帖子、短信等与本人无关!
amule-dlp 开发动态
amule-dlp on Google Code
WebArchiver - 基于 wget 的网页归档工具(PyQt4 GUI 前端)
Linux 2.6.34 编译笔记
happyaron
帖子: 473
注册时间: 2008-04-27 1:10
来自: http://blogs.gnome.org/happyaron/

Re: 让aMule支持DLP的源码补丁(更新至3903)

#87

帖子 happyaron » 2009-12-06 11:27

Bill Lee 写了:做了个加强版的DLP
LS能不能放补丁呢,光放个修改后的大家看你改点什么还挺麻烦的。


另外:
viewtopic.php?p=1637878#p1637878
yuzh652800 写了:在amule中发现有使用Verycd easymule091113版的,怎么对他的上传速度不受单用户上传速度最大限制?

是否意味着其开始吸血?大家看看有无同类现象。

只要他在,你对其他用户的上传基本为零。
我也遇到限速失效的问题了,怎么回事呢? easymule 090304 以后的版本中有一部分存在这样的问题。
I will always return.
Bill Lee
帖子: 598
注册时间: 2009-09-19 20:50

Re: 让aMule支持DLP的源码补丁(更新至3903)

#88

帖子 Bill Lee » 2009-12-06 13:15

Verycd easymule091113是1.x版的VeryCD Mod,还不能算吸血骡。
我没有遇到1.x版的VeryCD Mod挤占带宽的现象,也就不好判断。
另外提醒大家,国内用户的aMule的昵称最好以[CHN]开头,根据VeryCD的说法,因为国内很难连上外国的Client,VeryCD Mod对带有[CHN]的用户有加分。
LS能不能放补丁呢,光放个修改后的大家看你改点什么还挺麻烦的。
至于补丁,很不好意思,我不会用patch :em06
不过修改的地方我都用“//Added by Bill Lee.”或“//Enabled by Bill Lee”注出。其实就是在src/antiLeech.cpp中添了两行代码,然后把zz_fly注释掉的一行启用。具体是:
  • 472行后加一行“_tcsstr(modversion, _DLPT("20080409")) || _tcsstr(modversion, _DLPT("20080409")) || //Added by Bill Lee.”,不过这是旧版的算法,本身已经被注释掉了。这里加上只是为了加强软件的可读性。
  • 634行后加一行“_tcsstr(modversion, _DLPT("20080409")) || _tcsstr(modversion, _DLPT("20080409")) || //Added by Bill Lee.”,ban掉了ModString=="20080409"的Xunlei。
  • 取消了774行的注释
aMule 2.3.1 is coming...
真正动态的 amule-dlp is coming...
本人帐号在2011年1月被盗,在2011年1月3日17:19到2010年1月6日13:34之间本帐号发的一切帖子、短信等与本人无关!
amule-dlp 开发动态
amule-dlp on Google Code
WebArchiver - 基于 wget 的网页归档工具(PyQt4 GUI 前端)
Linux 2.6.34 编译笔记
happyaron
帖子: 473
注册时间: 2008-04-27 1:10
来自: http://blogs.gnome.org/happyaron/

Re: 让aMule支持DLP的源码补丁(更新至3903)

#89

帖子 happyaron » 2009-12-06 14:02

Bill Lee 写了:Verycd easymule091113是1.x版的VeryCD Mod,还不能算吸血骡。
我没有遇到1.x版的VeryCD Mod挤占带宽的现象,也就不好判断。
另外提醒大家,国内用户的aMule的昵称最好以[CHN]开头,根据VeryCD的说法,因为国内很难连上外国的Client,VeryCD Mod对带有[CHN]的用户有加分。
我这里总的上传限速没问题,但是对单个用户的限速就有问题了。
[CHN]那事我就不参与了,aMule默认是什么就是什么了。
I will always return.
chenwenjin
帖子: 41
注册时间: 2007-09-09 12:41

Re: 让aMule支持DLP的源码补丁(3904更新了~)

#90

帖子 chenwenjin » 2009-12-09 19:07

建议参考sdc 最新测试版,加入Israel Community、Custom ModString、Fake X-Ray的检测,下载地址
http://blog.sdlpc.org/sdc-39004-beta5/
回复