Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
ghidra_script
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ComputerSecurity
ghidra_script
Commits
62663bf4
Unverified
Commit
62663bf4
authored
6 years ago
by
Vincent Brillault
Browse files
Options
Downloads
Patches
Plain Diff
func_renamer: clean data up to next \0
parent
78a85b69
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
func_renamer.py
+7
-1
7 additions, 1 deletion
func_renamer.py
with
7 additions
and
1 deletion
func_renamer.py
+
7
−
1
View file @
62663bf4
...
...
@@ -53,9 +53,15 @@ def MakeQword(addr):
return
int
(
listing
.
getDataAt
(
addr
).
value
.
toString
(),
16
)
def
range_printable
(
start
):
prev
=
start
while
memory
.
getByte
(
start
)
!=
0
:
prev
,
start
=
start
,
start
.
next
()
return
prev
def
MakeString
(
addr
):
addr
=
intToAddress
(
addr
)
listing
.
clearCodeUnits
(
addr
,
addr
,
False
)
listing
.
clearCodeUnits
(
addr
,
range_printable
(
addr
)
,
False
)
listing
.
createData
(
addr
,
CSTRING
)
return
listing
.
getDataAt
(
addr
).
value
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment