問題タブ [xxd]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - hexdump output vs xxd output
I'm trying to create a hexdump like xxd but there are some differences that I'm trying to resolve. Currently the program processes 10 characters per line as seen on the utmost right column vs 16 in xxd. It also only shows 1 octet per column instead of pairs of 2 octet's.
xxd
my output
EDIT:
To add some clarification, I am trying to achieve two things. 1) I would like this program to output exactly like xxd. For this it needs to output 32 Hex numbers (8x columns of 4). 2) I would also like the program to list the hex numbers in row's columns of 4 like in xxd.
I've tried to edit the "10" in the source below to something like "12" but it creates errors in the output, it seems to be a magic number.
source:
linux - xxd バイナリのみを出力
コマンドの使用:
xxd -b some_text
バイナリ表現と元のテキストを出力します。
ユーティリティにバイナリのみを出力させるにはどうすればよいですか?
bash - ファイル内のゼロのブロック (消去された領域) を grep する方法は?
ファイル内のゼロのブロック (ゼロで消去された領域) を grep するにはどうすればよいですか?
内部にマクロを含む悪意のある Word 文書があります。ウイルス対策ソリューションにより、この Word 文書内のゼロのブロックが消去されました。ファイルが変更されていることを分析する前に、これを将来検出したいと思います。
私はこれを試しました:
「Kaspersky Lab AV によって削除されました」が検出されますが、他の AV ソリューションも検出し、ゼロのブロックを grep したいと考えています。
事前にご協力いただきありがとうございます。
c++ - gdb と xxd ダンプのアドレス
xxd ダンプでコード行を見つけようとしています。gdb で実行可能ファイルを開き、コード行にブレークポイントを追加すると、0x8212224 のようなアドレスが表示されますが、xxd ダンプは 0x3040080 までしか上がりません。
gdb アドレスをダンプの内容に変換する方法はありますか? または、xxd ダンプでアドレスを取得するためのより良い方法はありますか?
c++ - 「xxd -i」でエンコードされた C ソース コードを C ソース コードに変換するスクリプト/ツールはありますか?
xxd -iC ファイルの 16 進ダンプ配列 (つまり の出力) を対応するソース コードに変換するために使用できる Linux/Unix ツールはありますか?
yum - 「xxd」コマンドの公式 Fedora パッケージ?
に基づくスクリプトを使用する必要がありますxxdが、Fedora 21 にはインストールされていません。
だから私はそれを検索してインストールしようとしましたが成功しませんでした:
xxdどのパッケージが提供されているか知っていますか?yum( Fedora リポジトリからインストールする公式パッケージを意味します)。
助けてくれてありがとう!