Take the State of DFIR Survey Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report. Take the survey ›

Take the survey

Take the State of DFIR Survey

Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report.

Take the survey →
Notifications
Clear all

Winhex Templates

2 Posts
2 Users
0 Reactions
1,142 Views
(@jwelsh)
New Member
Joined: 20 years ago
Posts: 4
Topic starter   [#1894]

Im trying to write a new template in Winhex but having trouble with the Uint_Flex variable so wondering if anyone has done some work with templates and knows a way around it.

I've got a variable and wish to use it for a loop and if statement but I get errors saying Invalid integer number.

uint_flex "2,1,0" "Offset1"
numbering 0
{
byte "B[~]"
} [(3^Offset1)]

And further down I wish to do an if comparision with the same variable but get the same probelem saying invalid integer. Is there anyway to turn these bits I've extracted using uint_flex into a valid integer that can be used in loops and if statements etc?

Thanks for any help.



   
Quote
(@jot49)
Active Member
Joined: 20 years ago
Posts: 16
 

Best way is to post it in the x-ways support forum. Stefan Fleischmann is really quick in answering.



   
ReplyQuote

Enterprise Partners

  • celebrite-logo
  • MagnetForensics_ForensicFocus
  • atola-logo
  • semantics21 2026 FF logo

Partners

  • ADF
  • detego-logo
  • Logo_MSAB_Black (2)
  • logo Belkasoft 135x100
  • gmdsoft-logo
  • Aid4Mail-Logo

Academic Partners

  • University of Southampton logo 2
Share: