Skip to content

Commit 1f2137e

Browse files
committed
Regen auto-generated files
1 parent 8409c9e commit 1f2137e

File tree

504 files changed

+2265
-1564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

504 files changed

+2265
-1564
lines changed

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/execve.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>execve(path, argv, envp) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/exit.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>exit(status) -> str
98

@@ -52,8 +51,8 @@ Returns:
5251

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/getdirentries64.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>getdirentries64(fd, buf, bufsize, position) -> str
98

@@ -55,8 +54,8 @@ Returns:
5554

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/getxattr.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>getxattr(path, name, value, size) -> str
98

@@ -55,8 +54,8 @@ Returns:
5554

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/lseek.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>lseek(fd, offset, whence) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/read.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>read(fd, buf, nbytes) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/aarch64/darwin/syscalls/write.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>write(fd, buf, n) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/execve.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>execve(path, argv, envp) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/exit.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>exit(status) -> str
98

@@ -52,8 +51,8 @@ Returns:
5251

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/getdirentries64.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>getdirentries64(fd, buf, bufsize, position) -> str
98

@@ -55,8 +54,8 @@ Returns:
5554

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/getxattr.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>getxattr(path, name, value, size) -> str
98

@@ -55,8 +54,8 @@ Returns:
5554

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/lseek.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>lseek(fd, offset, whence) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/read.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>read(fd, buf, nbytes) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/amd64/darwin/syscalls/write.asm

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import collections
33
import pwnlib.abi
44
import pwnlib.constants
55
import pwnlib.shellcraft
6-
import six
76
%>
87
<%docstring>write(fd, buf, n) -> str
98

@@ -54,8 +53,8 @@ Returns:
5453

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

pwnlib/shellcraft/templates/common/linux/syscalls/_llseek.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>_llseek(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str
99

@@ -52,8 +52,8 @@ Returns:
5252

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

pwnlib/shellcraft/templates/common/linux/syscalls/_newselect.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>_newselect(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str
99

@@ -52,8 +52,8 @@ Returns:
5252

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

pwnlib/shellcraft/templates/common/linux/syscalls/_sysctl.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>_sysctl(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4, vararg_5) -> str
99

@@ -52,8 +52,8 @@ Returns:
5252

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

pwnlib/shellcraft/templates/common/linux/syscalls/accept.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>accept(fd, addr, addr_len) -> str
99

@@ -54,8 +54,8 @@ Returns:
5454

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

pwnlib/shellcraft/templates/common/linux/syscalls/accept4.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>accept4(fd, addr, addr_len, flags) -> str
99

@@ -55,8 +55,8 @@ Returns:
5555

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

pwnlib/shellcraft/templates/common/linux/syscalls/access.asm

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%
2+
# Auto-generated by pwnlib/data/syscalls/generate.py. DO NOT EDIT!
23
import collections
34
import pwnlib.abi
45
import pwnlib.constants
56
import pwnlib.shellcraft
6-
import six
77
%>
88
<%docstring>access(name, type) -> str
99

@@ -53,8 +53,8 @@ Returns:
5353

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

0 commit comments

Comments
 (0)