top of page
Search
boescamvedree1976

How to Use DCP to Transfer Files Between Linux Hosts Using Peer-to-Peer Network Without SSH



This is why for generic USB-C you still need a PC-to-PC data transfercable, that acts for both computers as a device so both computerscan act as hosts, which Windows does well.Unless the transfer cable can emulate a network adapter for bothhosts, you will also need a specialized software for thetransfer of data.


In practical terms I'd plug both computers together with Gbit Ethernet and transfer data between them using the existing networking software. The minimum hardware requirement (for those living on a desert island), is one cross-over Ethernet cable. If you have a computer with no wired Ethernet port, get a USB3 (or USB2) Ethernet "dongle", or use wireless through your router. Wireless is pretty fast these days if you put the wireless computer close to a sufficiently capable router.




Transfer Files Between Linux Hosts Using Peer-to-Peer Network



It is possible to transfer data by USB A-to-A, C-to-A, or C-to-C, using the USB 3.x protocol. The process is a pain in the ass and only documented for use by kernel and driver developers, not even the typical software developer is expected to have to do this. If the USB-C ports in question support Thunderbolt then that's a different question, connecting computers by Thunderbolt will create an Ethernet-like network connection which makes the process trivial for all but the newbiest of newbs.


There are USB-to-USB bridge cables that offer 5 Gbps speeds. This is an improvement not only in speed but often in costs. As nigel222 discovered the chip in the cable is capable of emulating an Ethernet connection. What I discovered is that this chip has a serial port emulator mode too. When used with the horrible software these cables come with the cable is in a non-network mode, some kind of serial transfer mode. The Linux drivers for this cable will be default put the cable in a network mode and I suspect will allow an Ethernet-like connection between two Linux computers. How to get this in a network mode for macOS and Windows is anyone's guess, and if able to be put in this mode it should appear as an Ethernet port in the OS network settings.


Some tablet computers and phones have the software for an easy transfer of files to a PC by a USB-C cable. There is nothing special about the hardware that enables this function, it is all software with an off the shelf USB-C controller that is common in many laptop and desktop computers. My guess that this is not a ubiquitous feature because there are still plenty of USB-C controller chips out in the wild that do not support peer-to-peer functionality and the people that have to answer the phones on user complaints would rather just sell you a $50 data transfer cable than try to explain the difference between USB-C controllers.


Peer-to-peer is an entirely different model, in which everyone becomes a server. There is no central server; everyone who uses the network acts as their own server. Instead of simply taking files, peer-to-peer made it a two-way street.


In earlier forms of P2P networks, a central server was still necessary to organize the network, acting as a database that held information on connected users and files available in the system. Though the heavy lifting of file transfers was done directly between users, the networks were still vulnerable. Knocking out that central server meant disabling communications completely.


Napster, launched in 1999, was the first widely available implementation of a peer-to-peer model. A central database contained information about all the music files held by members. You would search for a song from this central server, but to download it, you would actually connect to another online user and copy from them. In turn, once you had that song in your Napster library, it became available as a source for others on the network.


PCIe peer-to-peer communication (P2P) is a PCIe feature which enables two PCIe devices to directly transfer data between each other without using host RAM as a temporary storage. The latest version of Alveo PCIe platforms support P2P feature via PCIe Resizeable BAR Capability.


Once an attacker has an initial foothold, they will usually seek to move laterally throughout the organization, using their C2 channels to beam back information about other hosts that may be vulnerable or misconfigured. The first machine compromised may not be a valuable target, but it serves as a launching pad to access more sensitive parts of the network. This process may be repeated several times until the attacker gains access to a high-value target like a file server or domain controller.


The whole point of maintaining a command and control infrastructure is to perform some specific action like accessing important files or infecting more hosts. Hunting for C&C activity from both a data and network perspective increases the likelihood of discovering well-camouflaged cyberattacks. This is exactly the approach that Varonis Edge takes, giving you the deep visibility required to spot everything from insider threats to APT groups.


BitTorrent is one of the most widely used protocol for transferring large files across the web via torrents. The main idea is to facilitate file transfer between different peers in the network without having to go through a main server. 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page