A simple IDAPython script to name a function

During IDA parsing, I try to prefix the function name with zzz_ so that the functions I named will appear together when sorted in the Name view.

So I wrote a simple IDAPython script that assigns a name to a function with the zzz_ prefix no matter where the cursor is in the function.

from idaapi import *
from idautils import *

newFuncName = AskStr("CmdFunction", "Type function base name")
if not newFuncName is None:
    func = get_func(here())
    newName = "zzz_" + newFuncName
    Message("Renaming %s to %s\n" % (Name(func.startEA), newName))
    MakeNameEx(func.startEA, newName, SN_PUBLIC)

Recommended Posts

A simple IDAPython script to name a function
How to create a simple TCP server / client script
A function that returns a random name
How to make a recursive function
I wrote a function to load a Git extension script in Python
[Python] A simple function to find the center coordinates of a circle
Want to solve a simple classification problem?
Qiita (1) How to write a code name
Execute a script from Jupyter to process
[Ubuntu] How to execute a shell script
I made a script to display emoji
Script to create a Mac dictionary file
Creating a shell script to write a diary
How to run a Maya Python script
A simple example of how to use ArgumentParser
How to create a function object from a string
I added a function to CPython (ternary operator)
Sample to draw a simple clock using ebiten
Benchmark simple script
I wrote a script to upload a WordPress plugin
Write a script to convert a MySQL dump to TSV
[Python] I tried to get the type name as a string from the type function
[Go] How to write or call a function
Try to write a ping confirmation script appropriately
How to Mock a Public function in Pytest
Create a function to visualize / evaluate the clustering result
I made a script to put a snippet in README.md
A memorandum to run a python script in a bat file
Make a function to describe Japanese fonts with OpenCV
A simple difference when passing a pointer as a function argument
[Simple procedure] To log in to ssh without a password
Consider a conversion from a Python recursive function to a non-recursive function
Python script to create a JSON file from a CSV file
I decided to do a simple regression analysis manually-1-
I added a function to CPython (build & structure grasp)
Generate a bash script to add Datadog monitor settings
[Python] How to call a c function from python (ctypes)
An introduction to machine learning from a simple perceptron
[Linux] [C / C ++] How to get the return address value of a function and the function name of the caller
C ++ simple sleep function
Call Rust from Python to speed it up! PyO3 Tutorial: Wrapping a Simple Function Part ➀
Make a function decorator
Call Rust from Python to speed it up! PyO3 Tutorial: Wrapping a Simple Function Part ➁
Create a function to display images like Jupyter / RStudio [Docker]
[python] Change the image file name to a serial number
A Python script that saves a clipboard (GTK) image to a file.
How to run a Python program from within a shell script
[Linux] Copy data from Linux to Windows with a shell script
Create a Mastodon bot with a function to automatically reply with Python
It's hard to write a very simple algorithm in php
I want to automatically generate a modern metal band name
Add a function to heat transfer + heat input by temperature to heatrapy
How to print characters as a table with Python's print function
A simple way to avoid multiple for loops in Python
I made a function to check the model of DCGAN
[Python Kivy] How to create a simple pop up window
A handy function to add a column anywhere in a Pandas DataFrame
How to make a simple Flappy Bird game with pygame
Try adding a simple image baking function as an add-on
To return char * in a callback function using ctypes in Python
I'll never forget how to write a shell script, don't forget! !!