summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sploit/payload.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/sploit/payload.py b/sploit/payload.py
index 1ece105..cef17e0 100644
--- a/sploit/payload.py
+++ b/sploit/payload.py
@@ -47,6 +47,22 @@ class Payload:
values = [ itob(v) for v in values ]
return self.bin(*values, sym=self._name('int', sym))
+ def int8(self, *values, sym=None):
+ values = [ itob(v, 1) for v in values ]
+ return self.bin(*values, sym=self._name('int', sym))
+
+ def int16(self, *values, sym=None):
+ values = [ itob(v, 2) for v in values ]
+ return self.bin(*values, sym=self._name('int', sym))
+
+ def int32(self, *values, sym=None):
+ values = [ itob(v, 4) for v in values ]
+ return self.bin(*values, sym=self._name('int', sym))
+
+ def int64(self, *values, sym=None):
+ values = [ itob(v, 8) for v in values ]
+ return self.bin(*values, sym=self._name('int', sym))
+
def ret(self, *values, sym=None):
return self.int(*values, sym=self._name('ret', sym))