FOSSPicks
hexyl
Hexadecimal, as everybody knows, is base 16. This means you can represent 16 values with a single digit, 0 to 9 and then A through F for the additional six values (where A=10 and F=15). It's often used to view memory and binary files for a couple of reasons. Firstly, it's more compact than decimal – a single digit can hold more data and consequently, doesn't require so much screen area (or 1970s printer paper). But more importantly, computers thrive on working with 8 or 16 values, thanks to their architecture. When viewing hexadecimal, you're able to decode more than the literal value for any one location; you're actually able to see patterns and even raw data emerge because the view can represent the way data is physically passing through memory. This is why a hexadecimal viewer is still an essential utility to have at hand, especially if you're interested in how files are stored or how an executable may work.
One such tool, hexyl
, couldn't be any simpler. It's driven from the command line and takes a filename as an argument. The only other potential argument is a value to adjust the number of bytes read from the input. This is useful if you're trying to view something large, such as a swap file or even a virtual device such as memory. But the best thing about hexyl
is how clean the output is. There's no superfluous detail, with the same three columns you traditionally see in hexadecimal viewers and editors – the starting location for a row, the hexadecimal value for each location for the input shown on the left, and an ASCII rendering of those locations on the right. Locations are colored according to their type: NULL bytes, printable ASCII characters, ASCII white-space characters, other ASCII characters, and non-ASCII. This makes it very easy to correlate the ASCII output with that data's location within the main view.
Project Website
https://github.com/sharkdp/hexyl
File sharing
weborf
Last month, I looked at a fantastic command-line tool called wormhole
that can magically and securely transfer a file from one machine to another. The best thing about wormhole is that it's easy to use – you run the command with a file as an argument and a few keywords appear. All your potential recipient has to do is type the equivalent receive
command with those keywords and the file will be automatically transferred. It's perfect for one-off transfers, but it's not all that great if you want to share more than a single file or leave the tunnel open so that you don't have to keep renegotiating keywords. There are of course lots of ways this can be done, but weborf
attempts the task while remaining almost as simple to use as wormhole.
Rather than being a command for one-off transfers, weborf
actually sets up a simple HTTP server, just like running Apache in the olden days to share the contents of /home
. This makes it supremely flexible, not just from a web browser, but from almost anything with access to the network using WebDAV, with caching, even from virtual hosts or running CGI scripts. You simply run the server command with an argument for the port to use and a folder to share, and all the client has to do is access your IP address with the correct port. It can be run in the background as a daemon, use certificates, handle authentication with your own tools, and listen only for connections from specific IP addresses. If the command line offers too many options, a convenient Qt-based GUI can be run to handle all this semiautonomously, even adding the ability to do NAT traversal to share files outside of the local network and sending directories as .tar.gz
files.
Project Website
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.