基于区块链的毕业设计Ethbridge – 埃斯布里奇

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Ethbridge – 埃斯布里奇 是一篇很好的国外资料

Ethbridge

Basic implementation of Layer 2 bridging functionality which allows two clients to talk to each other over local LAN as long as they are directly connected to the switch/router. This can bypass firewall restrictions or blocked incoming ports, or allow communcation if one or both are prse

Requirements

  • OSX/Linux (currently only tested/built on Linux but should work on OSX with some makefile changes)

  • libpcap0.8

To install libpcap, use

Linux:

sudo apt install libpcap libpcap-dev

OSX:

brew install libpcap

No windows support is currently planned.

Description

The software uses libpcap to send and recieve raw ethernet packets. In the ethernet header, the protocol for these packets (which would normally be ETH_P_IP or 0x0800 for IP packets) is set to 0xffff, which is not assigned to any protocol currently. Together with a filter on the mac address of the other end (specified in command line options) forms a bridge that passes data back and forth, datagram style without any additional states or checks or security (those are left to the attaching protocols to implement).

Usage

Each communicating computer must run the following command. Note that multiple instances of this process will not work for communicating with more than one computer, as there is no separation of the respective channels when sending or recieving raw packets

Sudo privilege is required due to raw packet capture.

ethbridge -i [interface-regex] -m [mac_address] -o [output_specification]
 interface-regex: the regular expression to match to the ethernet name on w to communicate (saves you from typing longer ones manually)   mac_address: the mac address of the computer on the other end of the bridge   output_specification: the local communcation protocol. Options are:   - STDIO           read from STDIN, write to STDOUT   - TCP:L:[port]    listen on tcp connection on 127.0.0.1:port, and forward data   - TCP:C:[port]    connect to 127.0.0.1:port, and forward data  

Examples


Simple text chat, ether end can

Computer 1:

sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o STDIO 0</dev/tty

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o STDIO 0</dev/tty

TCP connection bridge

Computer 1:

nc -l 5585 sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o TCP:C:5585

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o TCP:L:5585 nc 127.0.0.1 5585

Remote Shell

Computer 1:

mkfifo ./testpipe /bin/bash 0<./testpipe | sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o STIDO >./testpipe

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o STDIO 0</dev/tty

Ethbridge

Basic implementation of Layer 2 bridging functionality which allows two clients to talk to each other over local LAN as long as they are directly connected to the switch/router. This can bypass firewall restrictions or blocked incoming ports, or allow communcation if one or both are prse

Requirements

  • OSX/Linux (currently only tested/built on Linux but should work on OSX with some makefile changes)

  • libpcap0.8

To install libpcap, use

Linux:

sudo apt install libpcap libpcap-dev

OSX:

brew install libpcap

No windows support is currently planned.

Description

The software uses libpcap to send and recieve raw ethernet packets. In the ethernet header, the protocol for these packets (which would normally be ETH_P_IP or 0x0800 for IP packets) is set to 0xffff, which is not assigned to any protocol currently. Together with a filter on the mac address of the other end (specified in command line options) forms a bridge that passes data back and forth, datagram style without any additional states or checks or security (those are left to the attaching protocols to implement).

Usage

Each communicating computer must run the following command. Note that multiple instances of this process will not work for communicating with more than one computer, as there is no separation of the respective channels when sending or recieving raw packets

Sudo privilege is required due to raw packet capture.

ethbridge -i [interface-regex] -m [mac_address] -o [output_specification]
 interface-regex: the regular expression to match to the ethernet name on w to communicate (saves you from typing longer ones manually)   mac_address: the mac address of the computer on the other end of the bridge   output_specification: the local communcation protocol. Options are:   - STDIO           read from STDIN, write to STDOUT   - TCP:L:[port]    listen on tcp connection on 127.0.0.1:port, and forward data   - TCP:C:[port]    connect to 127.0.0.1:port, and forward data  

Examples


Simple text chat, ether end can

Computer 1:

sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o STDIO 0</dev/tty

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o STDIO 0</dev/tty

TCP connection bridge

Computer 1:

nc -l 5585 sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o TCP:C:5585

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o TCP:L:5585 nc 127.0.0.1 5585

Remote Shell

Computer 1:

mkfifo ./testpipe /bin/bash 0<./testpipe | sudo ethbridge -i eth -m aa:bb:cc:dd:01 -o STIDO >./testpipe

Computer 2:

sudo ethbridge -i eth -m aa:bb:cc:dd:02 -o STDIO 0</dev/tty

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/20016.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Ethbridge – 埃斯布里奇

提供最优质的资源集合

立即查看 了解详情