Skip to content

Commit 54fccaf

Browse files
author
bwall
committed
Resolved GUID formatting issue reported in issue cylance#1
1 parent c555b56 commit 54fccaf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ optional arguments:
2020
-v, --version show program's version number and exit
2121
-r, --recursive Scan paths recursively
2222
23-
getnetguids v1.0.0 by Brian Wallace (@botnet_hunter)
23+
getnetguids v1.1.0 by Brian Wallace (@botnet_hunter)
2424
2525
```

getnetguids.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88

99
def format_guid_from_hex(hex_string):
10-
return "{0}-{1}-{2}-{3}-{4}".format(hex_string[:8], hex_string[8:12], hex_string[12:16], hex_string[16:20],
10+
first = hex_string[6:8] + hex_string[4:6] + hex_string[2:4] + hex_string[:2]
11+
second = hex_string[10:12] + hex_string[8:10]
12+
return "{0}-{1}-{2}-{3}-{4}".format(first, second, hex_string[12:16], hex_string[16:20],
1113
hex_string[20:])
1214

1315

@@ -166,7 +168,7 @@ def get_assembly_guids(assembly_path):
166168
if __name__ == "__main__":
167169
from argparse import ArgumentParser
168170

169-
version = "1.0.0"
171+
version = "1.1.0"
170172

171173
parser = ArgumentParser(
172174
prog=__file__,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from distutils.core import setup
44

55
setup(name='getnetguids',
6-
version='1.0.0',
6+
version='1.1.0',
77
description='Extracts Typelib IDs and MVIDs from .NET assemblies.',
88
author='Brian Wallace',
99
url='https://github.com/bwall/getnetguids',

0 commit comments

Comments
 (0)