Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   User Experience (https://www.gnutellaforums.com/user-experience/)
-   -   I broke the Code!! (https://www.gnutellaforums.com/user-experience/8658-i-broke-code.html)

gbrayut March 2nd, 2002 02:55 PM

I broke the Code!!
 
Well, the hostslist code atleast.

I've noticed that is is very hard to manually enter hosts into xolox. The add host button usually doesnt work, I think all it does is add new hosts into the host cache, which means that it will maybe try to connect to it in 10 or 15 mins. I wanted to be able to add in some hosts which i know share the kind of files i wanted, but the add host is not a very good way off doing this. The next best place is in the hostslist file. One problem.....it encodes the ip numbers.

So, i played around with it for a while, and just adding in straight ip numbers doesnt work. Also if the hostslist file is corrupt or if it just has a bunch of ip numbers in it, xolox gets a new host list from a server on xolox's web site (port 80 on ip # 194.109.6.83) Thats why you can still connect if you delete you hostslist file.

Decoding the hosts wasnt that hard, i just found all the unique port numbers in my hosts list that i could find, created a special hostslist file full of unique connection port hosts (instead of the usuall 6346/6347/6348...) and then used a packet sniffer to find all the pings that were sent out when i started xolox. I matched about 50 or so ip's to the encoded list, here are a few of them.

99999999:9999 51. 51. 51. 51:9999
88888888:8888 34. 34. 34. 34:8888
33333333:3333 153.153.153.153:3333
22222222:2222 136.136.136.136:2222
N<9K:<>>:6500 68. 6. 58.214:6500
K=;HN>;2:6667 24.212. 27.167:6667
8>2IOIN?:6688 213.236.140. 36:6688
>K3?ION;:6699 209.206.149. 74:6699
9N;<9>I9:6947 195. 52. 22. 61:6947
OI=22O22:6969 136.142.120.236:6969

Turns out that it uses the Hex value of the ip and then just replaces the letters. Basiclly, its a base 16 code using :;89>?<=23KHINOL instead of the 0123456789ABCDEF that hex uses. It also lists the ip number in NBO order, meaning that 1.2.3.4 would be listed as 4.3.2.1 (it just lists it backwards).

so, here is a quick example.
Say my IP is 192.168.169.170 on port 5000

if we convert that to hex, it is
C0 A8 A9 AA

Next we exchange the hex values for the Xolox coded values

:;89>?<=23KHINOL (xolox) (note it is a letter O not a Zero)<br> 0123456789ABCDEF (Hex)
so
C0 A8 A9 AA is
I: KH K3 KK

Then put it in NBO order
KK K3 KH I:
take away the spaces, add :port and you have your coded ip
KKK3KHI::5000

right now, it would be a lot of work to manually encode a list of ip numbers, but i hope to make a program to do it for you. I dont have much programing experience however, but i think i can manage. It probably will just take a list of ip numbers and create a hostslist file out of them.


Greg
gbrayut@excite.com

gbrayut March 2nd, 2002 07:03 PM

New chart
 

ok, the first post was a little confusing so here is a simple way of showing it. I took a chart of the hex values for ip numbers (1 to 255) but replaced the top and side lines with xolox characters. You read it by going down and then over. so if your ip starts with the number 52, you find 52 on the chart, and it reads 9> (NOT >9!!!)

---:---;---8---9--->---?---<---=---2---3---K---H---I---N---O---L
: 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015
; 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031
8 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047
9 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063
> 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079
? 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095
< 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111
= 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
2 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
3 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
K 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
H 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
I 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
N 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
O 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
L 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255

you still have to do it in reverse order, so its best to start with the last number and work towards the first.

Greg

markyrwol March 21st, 2002 12:05 PM

alphabetical IP addresses
 
Do you know a way to extract a numerical IP addresses from the alphabetical one’s, so that they can be adapted for the hostslist.txt?

connect1.gnutellanet.com:6346
connect2.gnutellanet.com:6346
connect3.gnutellanet.com:6346
connect4.gnutellanet.com:6346
connect5.gnutellanet.com:6346
connect6.gnutellanet.com:6346
connect7.gnutellanet.com:6346
gnutella.hostscache.com:6346
gnotella.fileflash.com:6346
gnutella.hostscache.com:6346
gnet2.ath.cx:6346
gnutella-again.hostscache.com:6346


public.bearshare.net:6346
connect1.bearshare.net:6346
connect2.bearshare.net:6346
connect3.bearshare.net:6346

gbrayut March 21st, 2002 03:21 PM

Simple
 
Yes, just find the ip number of the hostname.


Easiest way would be to just ping it, which would return the ip address.


Example:

goto the command line and type

ping www.yahoo.com
it says Reply from 64.58.76.176

so if you wanted to add www.yahoo.com:6346 (just an example)

you would use the ip/port number
64.58.76.176:6346



PS. I made a small program that converts a list of ip numbers for use in the hostslist, but so far they havent helped me much. I haddn't thought about adding the hostcaches (such as the ones you listed) but that might be a good idea. The program i made is in yabasic, so i dont think it is good for distribution (i dont really know much programing) its more just for my own personal use.

Also i have been having some problems in creating hostlist from scratch. It appears that xolox reads from the bottom of the list first, and i havent figure out how the list is ended. If i just use an encoded list it won't try to ping any of them. The best way is to put a list of encoded ips in the middle of the list.

gbray

gbrayut March 22nd, 2002 03:21 PM

encoded hostcaches
 
Alright, here is a list of some encoded host caches (the ones from markyrwol's message)

All you have to do is add these to you hostlist.txt file, somewhere in the middle would be best.


O;H29NN;:6346
O8H29NN;:6346
O9H29NN;:6346
O>H29NN;:6346
I8=?9H>;:6346
3HK>L?N::6346
;=9=O=N2:6346
<9>ILfN::6346
<>>ILfN::6346

Unregistered March 29th, 2002 11:22 PM

if you read the help file here you will find that [ code ] will format your stuff better when you post, good job on decoding, now what does this get us that we can't get on the other free clients?

Unregistered March 29th, 2002 11:32 PM

sorry, that was a serious question and not a flame against you. the other clients can be changed to add features that you liked about xolox or even made to look exactly like it if someone wants to put in the work. you seem to have a nack at doing this sort of stuff, the gui changes needed may be more graphic than programming

gbrayut April 1st, 2002 05:02 PM

Why? Why not?
 
well, its true that you can get most of xolox's features (and many many more) from other clients, but i have tried atleast 10 different clients so far, and i still think that xolox is in the top two or three. Xolox still has major problems, one being it has a very hard time connecting (and keeping) host connections. Now just because its not activly supported doesnt mean i'm going to drop everything and move on. If i can i'll help to fix a few flaws i will. Also i just like to play around with things and learn how they work. I think that gnutella is an awesome technology, with extremely good potential. you can find files on gnutella that you cant find anywhere else.

I hope that the develope
rs of xolox are going to release the source code, but if they dont, there will come a time where we all will have to move on. Right now gnucleus, which is an open source client, is looking very promising. They already have many of the features from xolox that i like, such as auto-researching and multi-source downloading, but they still have to work out a few things before i'm ready to switch over. I wish i could help more, but i only have very very very basic programing skills, so for right now i am doing what i can by offering my advice and opinions.

You have to remember, the people that made xolox were professional programers who were probably getting paid, which is not the case for most other clients. Its no surprise that the xolox, while it is much younger than a lot of the other clients, is still very advanced in features. In my opinion, it sounds like the developers made xolox to test out their coding ability, and not to make a really good xolox client. After they had tested their software, and showed what they could do, they desided to move on to another project. Thats ok though, they still left us with a great client, and gave some of the other clients new ideas.

If anyone is interested in moving to another client, i would suggest gnucleus or edonkey. both are good clients. They can be found at www.zeropaid.com . Just dont expect them to do all the work for you, like xolox does.

P.S. I did use some code, i used a fixed width font for the table. Maybe i'll read the help for more info....
Gbrayut

Unregistered April 5th, 2002 10:09 PM

Please detail what you like and what Gnucleus doesn't do, or how it acts, be specific. It's not that hard to make another program do what XoloX does if the programmers know what it is everyone rants and raves over.
If you just say "I like it better" that doesn't help.
If you want those features, detail what thye are and the developers may add it.

gbrayut April 7th, 2002 09:40 PM

Features
 
I already to this, i frequently post in the gnucleus forum

http://198.77.215.32/gnuforum/

I have offered my opinion on everything from auto-research (including some home made stats) to new features (such as a download manager) and the minor things that i would want changed.

With every release the gnucles client keeps getting better. I'm actually going to get a copy of Visual Studio so i can compile the latest source code (call it a beta i guess) so i can see where the next release is headed.

I'm thinking of taking some classes in programming also, so maybe i can help more.

I do what i can.

GBrayUT


All times are GMT -7. The time now is 05:22 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.