<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Synalysis Q&amp;A - Recent questions without answers</title>
<link>https://synalysis.guru/q2a/unanswered</link>
<description>Powered by Question2Answer</description>
<item>
<title>Can I create a grammar for a compressed file type?</title>
<link>https://synalysis.guru/q2a/328/can-i-create-a-grammar-for-a-compressed-file-type</link>
<description>Is there a way to analyze a compressed file type? For example, I've encountered a file type that has a custom header then an embedded zlib-compressed file. That file decompresses into another format that I can make a grammar for easily But I have to split the file into two parts outside of Synalyze It! &amp;nbsp;and decompress the second part before loading. &lt;br /&gt;
&lt;br /&gt;
Scripting is pretty powerful and I can slice and decompress the data just fine in the program's python host, but once it's there, I can't use grammar features on the result. I guess I'm asking if there is a way to re-insert or alter data from scripting that is then can then be matched with a grammar? I maybe</description>
<category>Synalyze It!</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/328/can-i-create-a-grammar-for-a-compressed-file-type</guid>
<pubDate>Sun, 31 May 2026 01:05:02 +0000</pubDate>
</item>
<item>
<title>How to do Bitwise AND Operation</title>
<link>https://synalysis.guru/q2a/327/how-to-do-bitwise-and-operation</link>
<description>&lt;table border=&quot;1&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;7 (MSB)&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;0 (LSB)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;langcode&lt;/td&gt;&lt;td&gt;copyrightb&lt;/td&gt;&lt;td&gt;origbs&lt;/td&gt;&lt;td rowspan=&quot;1&quot; colspan=&quot;5&quot;&gt;dialnorm&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;1 or 0&lt;/td&gt;&lt;td&gt;1 or 0&lt;/td&gt;&lt;td&gt;1 or 0&lt;/td&gt;&lt;td rowspan=&quot;1&quot; colspan=&quot;5&quot;&gt;0-31 (0 represents 31)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br&gt;Sorry for the probably basic question. How would I extract the 4 fields values above using the mask feature? I'm using a hex mask successfully in another part of the file, but that is a simple mask on the whole byte value not at the bit level. From what I understand, if I took e.g. 'origbs' as an example, it will have a true/false value of 1/0. The byte has a value of 0x60 so...&lt;/p&gt;&lt;p&gt;origbs (Bit 5):&lt;/p&gt;&lt;p&gt;Mask: 0x20 (which is 00100000 in binary)&lt;/p&gt;&lt;p&gt;Extraction: (0x60 &amp;amp; 0x20) &amp;gt;&amp;gt; 5&lt;/p&gt;&lt;p&gt;Result: (0x60 &amp;amp; 0x20) &amp;gt;&amp;gt; 5 = (01100000 &amp;amp; 00100000) &amp;gt;&amp;gt; 5 = 00100000 &amp;gt;&amp;gt; 5 = 0x1 (or 1 in decimal)&lt;/p&gt;&lt;p&gt;Is this possible please and if so how do I set it up? Thank you.&lt;/p&gt;</description>
<guid isPermaLink="true">https://synalysis.guru/q2a/327/how-to-do-bitwise-and-operation</guid>
<pubDate>Sat, 31 Aug 2024 14:07:49 +0000</pubDate>
</item>
<item>
<title>Hexinator for Ubuntu system lacking Internet access</title>
<link>https://synalysis.guru/q2a/309/hexinator-for-ubuntu-system-lacking-internet-access</link>
<description>&lt;p&gt;I'd like to make Hexinator available to install via &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;apt&lt;/span&gt; for some Ubuntu systems that have no access to the Internet and so can't download the necessary material from &lt;a rel=&quot;nofollow&quot; href=&quot;https://hexinator.com/downloads/&quot;&gt;https://hexinator.com/downloads/&lt;/a&gt;. If this can be done, please tell me what I need to do, including any prerequisites I might also need.&lt;/p&gt;</description>
<category>Hexinator</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/309/hexinator-for-ubuntu-system-lacking-internet-access</guid>
<pubDate>Thu, 25 Apr 2024 13:10:38 +0000</pubDate>
</item>
<item>
<title>Trying to install on Ubuntu, but there is a dependency to python2.7</title>
<link>https://synalysis.guru/q2a/307/trying-to-install-on-ubuntu-but-there-is-dependency-python2</link>
<description>Python2 has been dead for a while, does this mean that hexinator also is dead?</description>
<guid isPermaLink="true">https://synalysis.guru/q2a/307/trying-to-install-on-ubuntu-but-there-is-dependency-python2</guid>
<pubDate>Fri, 06 Oct 2023 07:21:41 +0000</pubDate>
</item>
<item>
<title>how can i put the &quot;remaining length&quot;-element not at the end of a structure, but between fixed-length-elements?</title>
<link>https://synalysis.guru/q2a/306/remaining-length-element-structure-between-length-elements</link>
<description>&lt;p&gt;i have a fixed-length-chunk at the end of every section of my file,&lt;br&gt;but i don't know the length of the variable-length-binary.&lt;br&gt;how can i put the variable size between fixed-length-elements?&lt;br&gt;it only works if the remaining length element is at the end.&lt;br&gt;&lt;br&gt;the structure looks like this:&lt;br&gt;chunk_1 (fixed length)&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;strong&gt;variable length binary (remaining)&lt;/strong&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;br&gt;chunk_2 (fixed length)&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;strong&gt;variable length binary (remaining)&lt;/strong&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;br&gt;chunk_3&amp;nbsp;(fixed length)&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt;variable length binary (remaining)&lt;/strong&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; fixed length binary&lt;/p&gt;</description>
<guid isPermaLink="true">https://synalysis.guru/q2a/306/remaining-length-element-structure-between-length-elements</guid>
<pubDate>Sat, 05 Aug 2023 12:48:55 +0000</pubDate>
</item>
<item>
<title>How to display bytes (non-printing control codes) as Unicode control pictures?</title>
<link>https://synalysis.guru/q2a/305/display-bytes-printing-control-codes-unicode-control-pictures</link>
<description>I use Hexinator to select byte range freuently. with default font Courier New, non-printing control codes are displayed as dots, which is not so intuitive/distinguishable, thus affacts productivity.&lt;br /&gt;
&lt;br /&gt;
So are there any monospace fonts which display non-printing control codes as Unicode control pictures? or as 2-digit hex glyphs?&lt;br /&gt;
&lt;br /&gt;
If no such font found, how do I make a such font?</description>
<guid isPermaLink="true">https://synalysis.guru/q2a/305/display-bytes-printing-control-codes-unicode-control-pictures</guid>
<pubDate>Fri, 04 Aug 2023 12:42:35 +0000</pubDate>
</item>
<item>
<title>Has someone generated a grammar for m-bus (meter bus) yet?</title>
<link>https://synalysis.guru/q2a/229/has-someone-generated-a-grammar-for-m-bus-meter-bus-yet</link>
<description>I'd like to parse a hex file with a dump of a m-bus protocol. Has someone prepared the grammar for analyzing m-bus protocols? That would be very nice.&lt;br /&gt;
&lt;br /&gt;
Thank's a lot.&lt;br /&gt;
&lt;br /&gt;
Powerman</description>
<category>Grammars</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/229/has-someone-generated-a-grammar-for-m-bus-meter-bus-yet</guid>
<pubDate>Thu, 02 Dec 2021 16:31:43 +0000</pubDate>
</item>
<item>
<title>Read structure another value within script</title>
<link>https://synalysis.guru/q2a/131/read-structure-another-value-within-script</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a structure with name &quot;TLLV&quot;, that splits on 2 substructures: &quot;Header&quot; and &quot;Payload&quot;.&lt;/p&gt;&lt;p&gt;Payload has&amp;nbsp;&quot;Value&quot; and&amp;nbsp;&quot;padding&quot;, that is very depends on the length of the &quot;Value&quot;, specified in Header. And I want to calculate &quot;padding&quot; length in the custom datatype with writing&amp;nbsp;the&amp;nbsp;script:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;currentGrammar = currentMapper.getCurrentGrammar()&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;headerStruct = currentGrammar.getStructureByName(&quot;TLLV_Header&quot;)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;offset = currentMapper.getCurrentOffset()&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;bytesProcessed = currentMapper.mapStructureAtPosition(headerStruct, offset, 16)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;length = headerStruct.getElementByName(&quot;valueLength&quot;)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;So, currently, I am able to reach out length, as an element.&lt;/p&gt;&lt;p&gt;But how to convert element to a &quot;Number&quot; type to be able to use it?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Generic</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/131/read-structure-another-value-within-script</guid>
<pubDate>Wed, 13 Nov 2019 10:49:56 +0000</pubDate>
</item>
<item>
<title>Is it possible to write an advanced script, like decrypting?</title>
<link>https://synalysis.guru/q2a/130/is-it-possible-to-write-an-advanced-script-like-decrypting</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am wondering, before I will start, is it possible to adopt python decrypting code to the Synalysis?&lt;br /&gt;
&lt;br /&gt;
I want to try to write AES-128-CBC decryptor, to be able to read the data directly in Synalysis instead of jumping with exporting/importing + bash scripts.&lt;br /&gt;
&lt;br /&gt;
Which limitations should I consider? Have I access to the files on the disk to read the key? Can I directly invoke openssl or import some of useful python libraries?&lt;br /&gt;
&lt;br /&gt;
Sincerely,&lt;br /&gt;
&lt;br /&gt;
Vladimir.</description>
<category>Python</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/130/is-it-possible-to-write-an-advanced-script-like-decrypting</guid>
<pubDate>Tue, 12 Nov 2019 14:13:23 +0000</pubDate>
</item>
<item>
<title>What is the best way to add a binary coded decimal (BCD) number to a grammar?</title>
<link>https://synalysis.guru/q2a/110/what-the-best-way-add-binary-coded-decimal-bcd-number-grammar</link>
<description>What would be the best way to add a binary coded decimal number to a grammar? The best way I can come up with is to create a 4-bit number that's limited to a max value of 9 and repeat it. Is there a better way? Would I have to resort to scripting if I want the multi-digit number to appear as one element?</description>
<category>Grammars</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/110/what-the-best-way-add-binary-coded-decimal-bcd-number-grammar</guid>
<pubDate>Tue, 27 Nov 2018 06:14:43 +0000</pubDate>
</item>
<item>
<title>How to use the ByteView.findByteSequence method? Not sure what to pass for the buffer parameter.</title>
<link>https://synalysis.guru/q2a/109/byteview-findbytesequence-method-sure-what-buffer-parameter</link>
<description></description>
<guid isPermaLink="true">https://synalysis.guru/q2a/109/byteview-findbytesequence-method-sure-what-buffer-parameter</guid>
<pubDate>Thu, 11 Oct 2018 11:53:09 +0000</pubDate>
</item>
<item>
<title>How do I use Find in Selection?</title>
<link>https://synalysis.guru/q2a/108/how-do-i-use-find-in-selection</link>
<description>Where is find and replace .... find next etc. &amp;nbsp;How do I use 'Find using Selection'. &amp;nbsp;I get the popup window which shows the tabs .... 'text, numbers, mask and string..... and it is always on top of the editor which I find very disturbing. &amp;nbsp;&amp;nbsp;But what I don't understand is 'How or Where do I use this window to edit the file in the editor. &amp;nbsp;I just don't see the connection.....especially with the Find Window always on top of the editor.&lt;br /&gt;
&lt;br /&gt;
This is my First week using Synalysis Pro,&lt;br /&gt;
&lt;br /&gt;
Thank you..&lt;br /&gt;
&lt;br /&gt;
Dave</description>
<category>Synalyze It!</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/108/how-do-i-use-find-in-selection</guid>
<pubDate>Thu, 04 Oct 2018 08:33:09 +0000</pubDate>
</item>
</channel>
</rss>