Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python3-pycparser /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
c_files
[ DIR ]
drwxr-xr-x
c-to-c.py
1.42
KB
-rw-r--r--
cdecl.py
3.05
KB
-rw-r--r--
explore_ast.py
5.27
KB
-rw-r--r--
func_calls.py
1.08
KB
-rw-r--r--
func_defs.py
1.08
KB
-rw-r--r--
rewrite_ast.py
599
B
-rw-r--r--
using_cpp_libc.py
744
B
-rw-r--r--
using_gcc_E_libc.py
797
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : func_calls.py
#----------------------------------------------------------------- # pycparser: func_defs.py # # Using pycparser for printing out all the calls of some function # in a C file. # # Copyright (C) 2008-2015, Eli Bendersky # License: BSD #----------------------------------------------------------------- from __future__ import print_function import sys from pycparser import c_parser, c_ast, parse_file # A visitor with some state information (the funcname it's # looking for) # class FuncCallVisitor(c_ast.NodeVisitor): def __init__(self, funcname): self.funcname = funcname def visit_FuncCall(self, node): if node.name.name == self.funcname: print('%s called at %s' % (self.funcname, node.name.coord)) def show_func_calls(filename, funcname): ast = parse_file(filename, use_cpp=True) v = FuncCallVisitor(funcname) v.visit(ast) if __name__ == "__main__": if len(sys.argv) > 2: filename = sys.argv[1] func = sys.argv[2] else: filename = 'examples/c_files/hash.c' func = 'malloc' show_func_calls(filename, func)
Close