ArneBab / gnutella_tracker
A simple file-tracker for Gnutella You can put files into the "files" folder which then are made available via magnet links with alternate locations. Also it implements the x-alt protocol to learn about more alternate locations. Use it with "python gnutella_tracker.py"
Clone this repository (size: 64.9 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/ArneBab/gnutella_tracker/
| commit 30: | b4995af20695 |
| parent 29: | 9c7a382da61d |
| branch: | use-port-8765 |
switched the port to use.
6 months ago
Changed (Δ12 bytes):
raw changeset »
server.py (2 lines added, 2 lines removed)
| … | … | @@ -65,7 +65,7 @@ if "--help" in argv: |
65 |
65 |
exit() |
66 |
66 |
|
67 |
67 |
#: The port to use |
68 |
PORT = 8 |
|
68 |
PORT = 8765 |
|
69 |
69 |
|
70 |
70 |
#: A dict of crawled/crawling people: {IP: {new: [urls...], found: [site1, site2, ...]} |
71 |
71 |
hosts = {} |
| … | … | @@ -193,7 +193,7 @@ def main(): |
193 |
193 |
try: |
194 |
194 |
server = HTTPServer(('', PORT), HTTPHtmlHandler) |
195 |
195 |
print('started httpserver...') |
196 |
print('point your browser to http://127.0.0.1: |
|
196 |
print('point your browser to http://127.0.0.1:' + str(PORT) + ' to get sniffed') |
|
197 |
197 |
server.serve_forever() |
198 |
198 |
except KeyboardInterrupt: |
199 |
199 |
print('^C received, shutting down server') |
