mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-11-09 10:09:36 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6709a4f747 | ||
|
|
1a4a1e11ba | ||
|
|
f82c0aa3a2 | ||
|
|
646ca1eb26 |
No files matched your search
+12
-1
@@ -11,7 +11,8 @@ The table below shows which release corresponds to each branch, and what date th
|
||||
| ---------------- | -------- | ---------------------- |
|
||||
| [3.8.0](#380) | `dev` | Jul 28, 2017 (planned)
|
||||
| [3.7.0](#370) | `beta` | Jun 17, 2017 (planned)
|
||||
| [3.6.0](#360) | `stable` | May 8, 2017
|
||||
| [3.6.1](#361) | `stable` | May 12, 2017
|
||||
| [3.6.0](#360) | | May 8, 2017
|
||||
| [3.5.1](#351) | | Apr 15, 2017
|
||||
| [3.5.0](#350) | | Mar 26, 2017
|
||||
| [3.4.1](#341) | | Feb 17, 2017
|
||||
@@ -44,6 +45,16 @@ As of May 4, 2017, there have been no new features or major notable changes sinc
|
||||
|
||||
A few typos were fixed, a few Linux kernel configuration flags were added, and a few error messages were enhanced.
|
||||
|
||||
## 3.6.1
|
||||
|
||||
- [#979][979]+[1a4a1e1][1a4a1e1] Fixed [#974][974], a bug related to the terminal handling and numlock.
|
||||
- [#980][980] Fixed the `pwn template` command.
|
||||
|
||||
[974]: https://github.com/Gallopsled/pwntools/issues/974
|
||||
[979]: https://github.com/Gallopsled/pwntools/pull/979
|
||||
[980]: https://github.com/Gallopsled/pwntools/pull/980
|
||||
[1a4a1e1]: https://github.com/Gallopsled/pwntools/commit/1a4a1e1
|
||||
|
||||
## 3.6.0
|
||||
|
||||
- [#895][895] Added a Dockerfile to simplify testing setup and allow testing on OSX
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ graft examples
|
||||
graft extra
|
||||
include *.md *.txt *.sh *.yml MANIFEST.in
|
||||
recursive-include docs *.rst *.png Makefile *.py *.txt
|
||||
recursive-include pwnlib *.py *.asm *.rst *.md *.txt *.sh __doc__
|
||||
recursive-include pwnlib *.py *.asm *.rst *.md *.txt *.sh __doc__ *.mako
|
||||
recursive-include pwn *.py *.asm *.rst *.md *.txt *.sh
|
||||
recursive-exclude *.pyc
|
||||
@@ -2,7 +2,7 @@
|
||||

|
||||
|
||||
[](https://docs.pwntools.com/)
|
||||
[](https://pypi.python.org/pypi/pwntools/)
|
||||
[](https://pypi.python.org/pypi/pwntools/)
|
||||
[](https://travis-ci.org/Gallopsled/pwntools)
|
||||
[](https://coveralls.io/github/Gallopsled/pwntools?branch=dev)
|
||||
[](https://twitter.com/pwntools)
|
||||
|
||||
+23
-4
@@ -11,7 +11,9 @@ from pwnlib.term import termcap
|
||||
|
||||
__all__ = ['getch', 'getraw', 'get', 'unget']
|
||||
|
||||
|
||||
# When set, convert keypad codes into regular key presses, e.g. "+" instead of
|
||||
# `<kp plus>`
|
||||
FLAG_CONVERTKP = True
|
||||
|
||||
try: _fd = sys.stdin.fileno()
|
||||
except Exception: _fd = file('/dev/null', 'r').fileno()
|
||||
@@ -310,7 +312,24 @@ _csi_ss3s = {
|
||||
}
|
||||
|
||||
_csi_ss3kp = {
|
||||
|
||||
'M': (kc.TYPE_KEYSYM, kc.KEY_KPENTER , None),
|
||||
'X': (kc.TYPE_KEYSYM, kc.KEY_KPEQUALS, '='),
|
||||
'j': (kc.TYPE_KEYSYM, kc.KEY_KPMULT , '*'),
|
||||
'k': (kc.TYPE_KEYSYM, kc.KEY_KPPLUS , '+'),
|
||||
'l': (kc.TYPE_KEYSYM, kc.KEY_KPCOMMA , ','),
|
||||
'm': (kc.TYPE_KEYSYM, kc.KEY_KPMINUS , '-'),
|
||||
'n': (kc.TYPE_KEYSYM, kc.KEY_KPPERIOD, '.'),
|
||||
'o': (kc.TYPE_KEYSYM, kc.KEY_KPDIV , '/'),
|
||||
'p': (kc.TYPE_KEYSYM, kc.KEY_KP0 , '0'),
|
||||
'q': (kc.TYPE_KEYSYM, kc.KEY_KP1 , '1'),
|
||||
'r': (kc.TYPE_KEYSYM, kc.KEY_KP2 , '2'),
|
||||
's': (kc.TYPE_KEYSYM, kc.KEY_KP3 , '3'),
|
||||
't': (kc.TYPE_KEYSYM, kc.KEY_KP4 , '4'),
|
||||
'u': (kc.TYPE_KEYSYM, kc.KEY_KP5 , '5'),
|
||||
'v': (kc.TYPE_KEYSYM, kc.KEY_KP6 , '6'),
|
||||
'w': (kc.TYPE_KEYSYM, kc.KEY_KP7 , '7'),
|
||||
'x': (kc.TYPE_KEYSYM, kc.KEY_KP8 , '8'),
|
||||
'y': (kc.TYPE_KEYSYM, kc.KEY_KP9 , '9'),
|
||||
}
|
||||
|
||||
_csi_funcs = {
|
||||
@@ -373,14 +392,14 @@ def _peekkey_ss3(offset):
|
||||
cmd = _cbuf[offset]
|
||||
if cmd < 0x40 or cmd >= 0x80:
|
||||
return
|
||||
_cbuf = _cbuf[numb:] # XXX: numb is not defined
|
||||
_cbuf = _cbuf[offset:]
|
||||
|
||||
if chr(cmd) in _csi_ss3s:
|
||||
return Key(*_csi_ss3s[chr(cmd)])
|
||||
|
||||
if chr(cmd) in _csi_ss3kp:
|
||||
t, c, a = _csi_ss3kp[chr(cmd)]
|
||||
if CONVERTKP and a: # XXX: CONVERTKP is not defined
|
||||
if FLAG_CONVERTKP and a:
|
||||
return Key(kc.TYPE_UNICODE, a)
|
||||
else:
|
||||
return Key(t, c)
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
__version__ = '3.6.0'
|
||||
__version__ = '3.6.1'
|
||||
@@ -86,7 +86,7 @@ except Exception as e:
|
||||
setup(
|
||||
name = 'pwntools',
|
||||
packages = find_packages(),
|
||||
version = '3.6.0',
|
||||
version = '3.6.1',
|
||||
data_files = [('',
|
||||
glob.glob('*.md') + glob.glob('*.txt')),
|
||||
],
|
||||
@@ -97,6 +97,7 @@ setup(
|
||||
'data/binutils/*',
|
||||
'data/includes/*.h',
|
||||
'data/includes/*/*.h',
|
||||
'data/templates/*.mako',
|
||||
] + templates,
|
||||
},
|
||||
entry_points = {'console_scripts': console_scripts},
|
||||
|
||||
Reference in new issue
Block a user