MCPcopy
hub / github.com/Gallopsled/pwntools / get_template

Function get_template

pwnlib/commandline/shellcraft.py:173–184  ·  view source on GitHub ↗
(shellcodes)

Source from the content-addressed store, hash-verified

171)
172
173def get_template(shellcodes):
174 funcs = []
175 for shellcode in shellcodes:
176 func = shellcraft
177 cur_name = shellcode[0]
178 args = []
179 if len(shellcode) > 1:
180 args = shellcode[1:]
181 for attr in cur_name.split('.'):
182 func = getattr(func, attr)
183 funcs.append((cur_name, func, args))
184 return funcs
185
186def is_not_a_syscall_template(name):
187 template_src = shellcraft._get_source(name)

Callers 1

mainFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected