@@ -33,7 +33,7 @@ def name():
3333
3434 # Overridden base function
3535 async def createDatabase (self , binary_file , is_windows ):
36- """Create a database file for the given binary file, compiled to windows or linux as specified.
36+ """Create a database file asynchonously for the given binary file , compiled to windows or linux as specified.
3737
3838 Args:
3939 binary_file (path): path to the input binary (*.o / *.obj) file
@@ -56,7 +56,7 @@ async def createDatabase(self, binary_file, is_windows):
5656
5757 # Overridden base function
5858 async def executeScript (self , database , script ):
59- """Execute the given script over the given database file that was created earlier.
59+ """Execute the given script asynchonously over the given database file that was created earlier.
6060
6161 Args:
6262 database (path): path to a database file created by the same program
@@ -66,9 +66,24 @@ async def executeScript(self, database, script):
6666 await process .wait ()
6767
6868 def isSupported (self , feature_name ):
69+ """Check if feature is enabled.
70+
71+ Args:
72+ feature_name (str): name of the feature to check if enabled
73+
74+ Return Value:
75+ returns whether the current class has a member name "feature_name"
76+ """
6977 return hasattr (self , feature_name )
7078
7179 async def createAndExecute (self , binary_file , is_windows , script ):
80+ """Execute the given script over the given database asynchonously without closing it first.
81+
82+ Args:
83+ binary_file (str): filename of the binary to analyze
84+ is_windows (bool): whether the file is a windows compiled file or linux compiled file
85+ script (str): filename of the script to use on the binary in ida
86+ """
7287 type = "elf" if not is_windows else "coff"
7388
7489 if not hasattr (self , "is64" ):
@@ -79,6 +94,12 @@ async def createAndExecute(self, binary_file, is_windows, script):
7994 await process .wait ()
8095
8196 def decideArchitecureChoices (self , binary_file , is_windows ):
97+ """Automate deciding whether to send the files to ida64 or ida.
98+
99+ Args:
100+ binary_file (str): filename of the file to be a test case for analysis
101+ is_windows (bool): whether the test file is a linux or windows binary
102+ """
82103 # machine type header of pe
83104 # specified in that order, amd64, arm64, ia64, loongarch64, riscv64
84105 ARCH64PE = [b"\x64 \x86 " , b"\x64 \xaa " , b"\x00 \x02 " , b"\x64 \x62 " , b"\x64 \x50 " ]
0 commit comments