Bitcoin Forum
May 05, 2024, 11:21:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Writing a dissector for wireshark  (Read 6958 times)
bluecmd (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 05, 2011, 10:30:30 AM
 #1

Hello.

After playing a bit with writing a python implementation of the protocol (extending pybitcoin) I find it very frustrating that I am unable to debug my packets. A quick scan around the wiki, IRC and forums revealed that no-one has stepped up to produce one, but I am going to write a wireshark dissector. Hopefully this will make the life of alternative implementations developers a bit easier.

I'll keep you posted - I should have something basic working by the end today or tomorrow and continue to extend it as I go along.
1714951307
Hero Member
*
Offline Offline

Posts: 1714951307

View Profile Personal Message (Offline)

Ignore
1714951307
Reply with quote  #2

1714951307
Report to moderator
1714951307
Hero Member
*
Offline Offline

Posts: 1714951307

View Profile Personal Message (Offline)

Ignore
1714951307
Reply with quote  #2

1714951307
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714951307
Hero Member
*
Offline Offline

Posts: 1714951307

View Profile Personal Message (Offline)

Ignore
1714951307
Reply with quote  #2

1714951307
Report to moderator
bluecmd (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 05, 2011, 04:21:15 PM
 #2

You can track progress on https://github.com/blueCommand/bitcoin-dissector
Currently supporting version, verack and addr messages.
blap
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 06, 2011, 12:04:40 AM
 #3

 Smiley
alkor
Full Member
***
Offline Offline

Activity: 136
Merit: 100


View Profile
June 06, 2011, 01:53:09 AM
 #4

In addition to pybitcoin, there is another python implementation of bitcion that you may be interested in:

https://github.com/phantomcircuit/bitcoin-alt

I think it is almost complete. The only thing that it is missing is the verify signature stuff in the scripting language.
bluecmd (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 06, 2011, 08:03:38 AM
 #5

In addition to pybitcoin, there is another python implementation of bitcion that you may be interested in:

https://github.com/phantomcircuit/bitcoin-alt

I think it is almost complete. The only thing that it is missing is the verify signature stuff in the scripting language.
Perfect! pybitoin seems to be abandoned, this project is in a much better state. Thank you!
It will do nicely in testing the dissector.
bluecmd (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 06, 2011, 06:30:00 PM
Last edit: June 07, 2011, 05:59:14 AM by bluecmd
 #6

Success!

Every message except for IP transactions, alert and headers are handled. The reason why these are not implemented is that I cannot verify that they behave like the documentation. I will extend this as we go along, but this will hopefully help people debug their clients and such.

Screenshot:
http://data.fuskbugg.se/skalman02/4ded1c579b364_wireshark.jpg
Luke-Jr
Legendary
*
expert
Offline Offline

Activity: 2576
Merit: 1186



View Profile
June 07, 2011, 01:19:50 AM
 #7

Please add this project to BitGit, and enable CIA notification Cheesy

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!