Skip to content

Commit

Permalink
Regen auto-generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed Feb 21, 2025
1 parent 3c21fc2 commit fe22120
Show file tree
Hide file tree
Showing 504 changed files with 2,265 additions and 1,564 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>execve(path, argv, envp) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/aarch64/darwin/syscalls/exit.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>exit(status) -> str

Expand Down Expand Up @@ -52,8 +51,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>getdirentries64(fd, buf, bufsize, position) -> str

Expand Down Expand Up @@ -55,8 +54,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>getxattr(path, name, value, size) -> str

Expand Down Expand Up @@ -55,8 +54,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/aarch64/darwin/syscalls/lseek.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>lseek(fd, offset, whence) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/aarch64/darwin/syscalls/read.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>read(fd, buf, nbytes) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/aarch64/darwin/syscalls/write.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>write(fd, buf, n) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/amd64/darwin/syscalls/execve.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>execve(path, argv, envp) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/amd64/darwin/syscalls/exit.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>exit(status) -> str

Expand Down Expand Up @@ -52,8 +51,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>getdirentries64(fd, buf, bufsize, position) -> str

Expand Down Expand Up @@ -55,8 +54,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>getxattr(path, name, value, size) -> str

Expand Down Expand Up @@ -55,8 +54,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/amd64/darwin/syscalls/lseek.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>lseek(fd, offset, whence) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/amd64/darwin/syscalls/read.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>read(fd, buf, nbytes) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
5 changes: 2 additions & 3 deletions pwnlib/shellcraft/templates/amd64/darwin/syscalls/write.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>write(fd, buf, n) -> str

Expand Down Expand Up @@ -54,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
6 changes: 3 additions & 3 deletions pwnlib/shellcraft/templates/common/linux/syscalls/_llseek.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>_llseek(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str

Expand Down Expand Up @@ -52,8 +52,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>_newselect(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str

Expand Down Expand Up @@ -52,8 +52,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
6 changes: 3 additions & 3 deletions pwnlib/shellcraft/templates/common/linux/syscalls/_sysctl.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>_sysctl(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str

Expand Down Expand Up @@ -52,8 +52,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
6 changes: 3 additions & 3 deletions pwnlib/shellcraft/templates/common/linux/syscalls/accept.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>accept(fd, addr, addr_len) -> str

Expand Down Expand Up @@ -54,8 +54,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
6 changes: 3 additions & 3 deletions pwnlib/shellcraft/templates/common/linux/syscalls/accept4.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>accept4(fd, addr, addr_len, flags) -> str

Expand Down Expand Up @@ -55,8 +55,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
6 changes: 3 additions & 3 deletions pwnlib/shellcraft/templates/common/linux/syscalls/access.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<%
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>access(name, type) -> str

Expand Down Expand Up @@ -53,8 +53,8 @@ Returns:

# The argument is not a register. It is a string value, and we
# are expecting a string value
elif name in can_pushstr and isinstance(arg, (six.binary_type, six.text_type)):
if isinstance(arg, six.text_type):
elif name in can_pushstr and isinstance(arg, (bytes, bytearray, str)):
if isinstance(arg, str):
arg = arg.encode('utf-8')
string_arguments[name] = arg

Expand Down
Loading

0 comments on commit fe22120

Please sign in to comment.