Skip to content

Commit

Permalink
Add colored_traceback for colorized exception tracebacks (#1841)
Browse files Browse the repository at this point in the history
* Add colored_traceback for colorized exception tracebacks

* Add CHANGELOG
  • Loading branch information
heapcrash committed Mar 5, 2021
1 parent 2114708 commit 3bfb3ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -69,6 +69,7 @@ The table below shows which release corresponds to each branch, and what date th
- [#1780][1780] Re-add Python2 to the official Dockerfile
- [#1941][1941] Disable all Android tests, `pwnlib.adb` is no longer supported in CI
- [#1811][1811] Remove unnecessary `pwn.toplevel.__all__`
- [#1841][1841] Add colored_traceback
- [#1839][1839] run_in_new_terminal now creates a runner script if given a list or tuple
- [#1833][1833] Add pwnlib.filesystem module

Expand All @@ -82,7 +83,9 @@ The table below shows which release corresponds to each branch, and what date th
[1780]: https://github.com/Gallopsled/pwntools/pull/1780

[1941]: https://github.com/Gallopsled/pwntools/pull/1941

[1811]: https://github.com/Gallopsled/pwntools/pull/1811
[1841]: https://github.com/Gallopsled/pwntools/pull/1841
[1839]: https://github.com/Gallopsled/pwntools/pull/1839
[1833]: https://github.com/Gallopsled/pwntools/pull/1833

Expand Down
3 changes: 3 additions & 0 deletions pwn/toplevel.py
Expand Up @@ -17,6 +17,7 @@
import threading
import time

import colored_traceback
from pprint import pprint

import pwnlib
Expand Down Expand Up @@ -84,5 +85,7 @@
debug = log.debug
success = log.success

colored_traceback.add_hook()

# Equivalence with the default behavior of "from import *"
# __all__ = [x for x in tuple(globals()) if not x.startswith('_')]
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -63,6 +63,7 @@
'unicorn>=1.0.2rc1,<1.0.2rc4', # see unicorn-engine/unicorn#1100, unicorn-engine/unicorn#1170, Gallopsled/pwntools#1538
'six>=1.12.0',
'rpyc',
'colored_traceback',
]

if platform.python_version_tuple()[0] == '2':
Expand Down

0 comments on commit 3bfb3ff

Please sign in to comment.