Powered by Invision Power Board

Welcome Guest ( Log In | Register )

5 Pages < 1 2 3 4 > »  
Reply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Try to detect a fake server, sending bogus search results

AraldoL
Dec 27 2006, 18:34
+Quote Post





Group: Members
Posts: 77
Joined: 23-August 05



Now I think BiG BanG 12 was a false alert. Seems like things are running asynchronous so my debug lines don't show the correct server sad.gif Now on an installation without BB12 I get a debug log that BB5 is sending this filename.

I need to take a deeper look into the code to get it working properly (in UDPSocket.cpp I get server name and IP as Aw3 showed me above and store it, in CSearchList::AddToList I check the filename and report the last stored server name but seems like this doesn't correspondend.

So I would say that BB12 is innocent and I have to search again which one it is. I'll be back when I get it working.

Araldo
User is offlineProfile CardPM
Go to the top of the page
Post #16
AraldoL
Jan 7 2007, 18:29
+Quote Post





Group: Members
Posts: 77
Joined: 23-August 05



Something new on the subject:

1. Dropping those bogus search results does work. I added the red code lines to SearchList.cpp function CSearchList::AddToList at line ~675:

CODE
                        delete pAddedFile;
                       return false;
                 }
           }
     }

     CString strServerFilename = pAddedFile->GetFileName();
     uint32 dwServerFullsources = pAddedFile->GetIntTagValue(FT_COMPLETE_SOURCES);
     if ((dwServerFullsources > 4000) && (strServerFilename.MakeLower().Find(".exe") > 0))
     {
           AddLogLine(false, RGB_LOG_ERROR_TXT _T("Bogus Server sends %u full sources for suspicious file %s - dropped!"),
              dwServerFullsources,strServerFilename);
           delete pAddedFile;
           return false;
     }

     CSearchFile            *pSearchFile;

     for (POSITION pos = list.GetHeadPosition(); pos != NULL; )


To allow logging I had to change SearchList.h as well at line 87:
CODE
class CSearchList : public CLoggable
{


As you see it's only dropped if it's an EXE file and server reports more than 4000 complete(!) sources. Now the file name changes, it's not only shareaccelerator any more. But it's always an EXE file with about 6500 full sources.

2. Detecting the server responsible for this results: Sorry, I wasn't able to find out the proper connection between server IPs and result packets, resulting in wrongly accusing a BigBang server. Perhaps someone can add it to the detection above to filter such a server.

Araldo

This post has been edited by AraldoL: Jan 7 2007, 18:30
User is offlineProfile CardPM
Go to the top of the page
Post #17
Fuxie - DK
Jan 8 2007, 05:14
+Quote Post





Group: Managers
Posts: 4800
Joined: 21-January 03
From: Copenhagen, Denmark



QUOTE(AraldoL @ Jan 7 2007, 19:29)
As you see it's only dropped if it's an EXE file and server reports more than 4000 complete(!) sources. Now the file name changes, it's not only shareaccelerator any more. But it's always an EXE file with about 6500 full sources.
*

Try doing a search for "exe" in the name-field and "4000" in availability-field..

I get two results:
eMule0.47c-Installer.exe <-- 12870 results...
ud.sarkilari_Web_Hottest_Videos_PersonalPlayer.exe <-- 4457 results...

So by excluding all exe-files simply because they have more than 4000 sources seems a bit dangerous for me...
User is offlineProfile CardPM
Go to the top of the page
Post #18
Aw3
Jan 8 2007, 05:53
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



Just add the following guys to your ipfilter and delete them from the server list as well:
62.90.175.146
213.8.162.36
66.232.114.92

If you can see another Israel 17.10 server, it might be the same buddy as well...
User is offlineProfile CardPM
Go to the top of the page
Post #19
AraldoL
Jan 8 2007, 08:38
+Quote Post





Group: Members
Posts: 77
Joined: 23-August 05



QUOTE(Fuxie - DK @ Jan 8 2007, 07:14)
Try doing a search for "exe" in the name-field and "4000" in availability-field..

I get two results:
eMule0.47c-Installer.exe  <-- 12870 results...
ud.sarkilari_Web_Hottest_Videos_PersonalPlayer.exe  <-- 4457 results...

So by excluding all exe-files simply because they have more than 4000 sources seems a bit dangerous for me...
*

The search packet is only dropped if you get more than 4000 full sources from a single(!) server. So perhaps the first example is dropped from one or two biggest servers that really have 4000 complete sources connected. But even then your global search gets lots of additional results from servers with less than 4000 full sources which are not(!) dropped. It's unlikely that there are more than 4000 sources on a big server and none on the smaller ones. If one packet is dropped you would get 8000 instead of 12000 total sources, still enough I think. If such a download is started the remaining sources are found by source exchange.

Btw, the second example sounds exactly like those fake results! (currently I'm getting xxx_shareaccelerator.exe, xxx_web_hottest_videos_personalplayer.exe, xxx_direct_torrent_search_bar.exe, ...), you could download and launch it and tell me what it does biggrin.gif

Araldo
User is offlineProfile CardPM
Go to the top of the page
Post #20
Aw3
Jan 19 2007, 02:12
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



One more guy for the ipfilter: 069.046.023.148
User is offlineProfile CardPM
Go to the top of the page
Post #21
AraldoL
Jan 19 2007, 10:52
+Quote Post





Group: Members
Posts: 77
Joined: 23-August 05



Currently I'm not filtering the whole server but just drop those bogus results with the code posted above (drop level: > 9000 full sources!). No more problems with searching now smile.gif

Araldo
User is offlineProfile CardPM
Go to the top of the page
Post #22
Aw3
Jan 19 2007, 14:00
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



You don't know what those servers do -- better to avoid any transfers with them...
User is offlineProfile CardPM
Go to the top of the page
Post #23
Aw3
Jan 25 2007, 02:14
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



One more: 212.025.103.162
User is offlineProfile CardPM
Go to the top of the page
Post #24
muleteer
Jan 25 2007, 05:06
+Quote Post





Group: Betatesters
Posts: 8261
Joined: 29-February 04



I think I'll start a thread listing these in the support forum - or should it be the Public info forum? unsure.gif
User is offlineProfile CardPM
Go to the top of the page
Post #25
Aw3
Jan 25 2007, 05:29
+Quote Post





Group: Admins
Posts: 7319
Joined: 8-December 03



There's a similar thread on eMule forum, those addresses will be a part of IPfilter soon (some of them are already there)...
User is offlineProfile CardPM
Go to the top of the page
Post #26
MaxWilder
Jan 26 2007, 00:41
+Quote Post





Group: Members
Posts: 1
Joined: 12-February 04



QUOTE(Aw3 @ Jan 25 2007, 05:29)
There's a similar thread on eMule forum, those addresses will be a part of IPfilter soon (some of them are already there)...
*


I looked at that thread, and it had no solution that I could find applicable to eMule Plus.

Though I am certainly not an expert, I have stopped the spam using the following method:

1. Select all current servers, right-click and select "Remove selected Server".
2. Go to Preferences -> Connection -> Server.
3. Check "Auto-update serverlist at startup"
4. Un-check "Update serverlist when connecting to servers and clients".
5. Restart eMule Plus -or- Manually "Update server.met from URL", available through a button on the top-right of the main "Servers" page. Use one of the servers which appears in the dropdown list such as "http://www.gruk.org/server.met.gz".

In my guesstimation, this should guarantee all your servers have been cleared by gruk.org or srv1000.com. I have no idea who they are, but other people seem to respect their lists.

However, this will disable the ability to find new servers through current servers. Meaning your searches may not find as many results. Sad, but now it seems to have become necessary. sad.gif

Hopefully somebody will post a better long-term solution.

Araldo, the searches are now returning .zip files as well as .exe files. I'm sure they will keep adding more extensions and name permutations, so you might as well remove the .exe part of your code. And if your code becomes widely used, they will probably lower the number of complete sources until they mix with the normal hits. It's a good short-term solution, though.
User is offlineProfile CardPM
Go to the top of the page
Post #27
LUCA TONI
Feb 1 2007, 20:16
+Quote Post





Group: Members
Posts: 67
Joined: 2-September 06
From: Italy



to eliminate the problem of spy servers i exclusively use this server list: http://elboiler.p2pforum.it/server.met and i renew my ipfilter at this site: www.emulesecurity.net
User is offlineProfile CardPM
Go to the top of the page
Post #28
WiZaRd
Feb 18 2007, 13:12
+Quote Post





Group: Members
Posts: 39
Joined: 25-July 05



The problem cannot be solved by ipfiltering because UDP packets' source IP+Port can be easily faked.
Filtering by the number of sources is also a bad idea, they might just change it to another (high) number and in case of a very popular file you will lose good search results.

The only - proper - way to block them, as far as I am concerned, is to use a simple server search or not to use servers at all (best solution IMHO) but join the KAD network.
The might try to infiltrate it, too, earlier or later but for now we are safe smile.gif

After all, using your brains to analyze the given search results isn't such a bad thing either... biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
Post #29
muleteer
May 3 2007, 18:40
+Quote Post





Group: Betatesters
Posts: 8261
Joined: 29-February 04



I have had reports of bad results from KAD searches too. wink.gif Friends using oMule report results with a whole heap of 'c's in them. Eg. Ccccccc. sad.gif
User is offlineProfile CardPM
Go to the top of the page
Post #30

5 Pages < 1 2 3 4 > » 
Reply to this topicTopic OptionsStart new topic
 

Lo-Fi Version Time is now: 25th May 2013 - 15:49