LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > In The Middle Of Nowhere [edK's blog]
User Name
Password

Notices

In The Middle Of Nowhere

Life, universe and everything...
--
Blog title (C) Orbital
Rate this Entry

Useless hacking: libTorrent spoof version

Posted 07-22-2010 at 06:36 PM by Web31337

For my own part I made many useless creations/hacks.
One of most recent, absolutely simple and useless is a modification of libTorrent 0.12.6.0 local_id, in order it to appear in other torrent clients as "libTorrent 12.12.12.12"
Stupid, isn't it?
But for those who are interested(you really are? :DDDD), it's statically defined in makefiles, to be more specific: in "configure" and "configure.ac" files, as "PEER_NAME" and "PEER_VERSION" constants.
Modifying "PEER_NAME" to
Code:
$as_echo "#define PEER_NAME \"-ltCCCC-\"" >>confdefs.h
you can make it look like version 12.12.12.12 in other clients. It is simply a 4-byte version representation.
You can spoof it with other client id, if you'd like to. Check src/torrent/peer/client_list.cc for more information on existing bittorrent clients and their IDs.
Posted in opensource, etc
Views 1021 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration