Bitcoin Forum
July 22, 2017, 02:32:49 AM *
News: The warning which may be displayed by Bitcoin Core about unknown versions is related to BIP91, and can be safely ignored.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Writing a dissector for wireshark  (Read 6754 times)
bluecmd
Newbie
*
Offline Offline

Activity: 14


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.
Decentralized search
Search for products or services and get paid for it
Join pre-ICO
25 July. 50% discount
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1500690769
Hero Member
*
Offline Offline

Posts: 1500690769

View Profile Personal Message (Offline)

Ignore
1500690769
Reply with quote  #2

1500690769
Report to moderator
bluecmd
Newbie
*
Offline Offline

Activity: 14


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
Jr. Member
*
Offline Offline

Activity: 53


=)


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

 Smiley

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
alkor
Full Member
***
Offline Offline

Activity: 137


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
Newbie
*
Offline Offline

Activity: 14


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
Newbie
*
Offline Offline

Activity: 14


View Profile
June 06, 2011, 06:30:00 PM
 #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: 2226



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!