#1   Report Post  
Posted to microsoft.public.excel.misc
Randy Brown
 
Posts: n/a
Default XOR Operator - How?

I have a keylog file that I captured and it is encrypted by the virus. It
requires a XOR operation of each byte. I would like to see what the contents
of the file is so I know if I lost anything.

I looked in Excel and there is no XOR operation or function.

An example of the file is hex code:

03 34 3e 3b .....

I'm told that if I XOR it with the key, I can get to the data. I found the
key... Can I do this in Exel?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Tom Ogilvy
 
Posts: n/a
Default XOR Operator - How?

Demo'd from the Immediate window:

? &HEF& xor 2^3
231
? &HEF&
239

Looks like an XOR operator to me.

--
Regards,
Tom Ogilvy

"Randy Brown" wrote in message
...
I have a keylog file that I captured and it is encrypted by the virus. It
requires a XOR operation of each byte. I would like to see what the

contents
of the file is so I know if I lost anything.

I looked in Excel and there is no XOR operation or function.

An example of the file is hex code:

03 34 3e 3b .....

I'm told that if I XOR it with the key, I can get to the data. I found

the
key... Can I do this in Exel?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
Randy Brown
 
Posts: n/a
Default XOR Operator - How?

Odd - it is not in the Excel 2003 function or operator list... I'll try it.

So it is A1 B1
3 =(a1 xor 0xE)

Returns an error. Function format is not correct...

HREF seems to be a large number checker... How can it use that for a very
large file? I want import it into Excel, each column containg 1 byte. In
sheet 2, do a XOR 0xE on the associated cell in Sheet 1.

I don't think this is possilbe.

"Tom Ogilvy" wrote:

Demo'd from the Immediate window:

? &HEF& xor 2^3
231
? &HEF&
239

Looks like an XOR operator to me.

--
Regards,
Tom Ogilvy

"Randy Brown" wrote in message
...
I have a keylog file that I captured and it is encrypted by the virus. It
requires a XOR operation of each byte. I would like to see what the

contents
of the file is so I know if I lost anything.

I looked in Excel and there is no XOR operation or function.

An example of the file is hex code:

03 34 3e 3b .....

I'm told that if I XOR it with the key, I can get to the data. I found

the
key... Can I do this in Exel?

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.misc
Tom Ogilvy
 
Posts: n/a
Default XOR Operator - How?

What I showed you is VBA.

Usually, processing a textfile as you describe would be done with VBA.

If the file has had all the bits altered, then I doubt it would come into
Excel with each bit in a single cell just by opening it.

In any event, you could create your own worksheet function

Public Function MYXOR(rng As Range)
If rng.Count 1 Then
MYXOR = CVErr(xlErrRef)
Exit Function
ElseIf Not IsNumeric(rng) Then
MYXOR = CVErr(xlErrValue)
Else
MYXOR = Int(rng.Value) Xor &HE&
End If
End Function

Change &HE& to your key value

Put this in a general module of your workbook.

Usage
=MYXOR(A1)



--
Regards,
Tom Ogilvy



"Randy Brown" wrote in message
...
Odd - it is not in the Excel 2003 function or operator list... I'll try

it.

So it is A1 B1
3 =(a1 xor 0xE)

Returns an error. Function format is not correct...

HREF seems to be a large number checker... How can it use that for a very
large file? I want import it into Excel, each column containg 1 byte. In
sheet 2, do a XOR 0xE on the associated cell in Sheet 1.

I don't think this is possilbe.

"Tom Ogilvy" wrote:

Demo'd from the Immediate window:

? &HEF& xor 2^3
231
? &HEF&
239

Looks like an XOR operator to me.

--
Regards,
Tom Ogilvy

"Randy Brown" wrote in message
...
I have a keylog file that I captured and it is encrypted by the virus.

It
requires a XOR operation of each byte. I would like to see what the

contents
of the file is so I know if I lost anything.

I looked in Excel and there is no XOR operation or function.

An example of the file is hex code:

03 34 3e 3b .....

I'm told that if I XOR it with the key, I can get to the data. I

found
the
key... Can I do this in Exel?

Thanks!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"