Skip to content

Commit

Permalink
Remove eval from cli (#1758)
Browse files Browse the repository at this point in the history
* Remove eval from cli

* fix changelog

* shut up pylint
  • Loading branch information
152334H authored Jan 10, 2021
1 parent 2f4c5cb commit 153b35b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ The table below shows which release corresponds to each branch, and what date th
- process also looks now at `env['PATH']` to find the path for the executable
- [#1742][1742] New `baremetal` os to debug binaries executed with qemu-system-$(arch)
- [#1757][1757] update cache directories
- [#1758][1758] Remove eval from cli

[1261]: https://github.com/Gallopsled/pwntools/pull/1261
[1695]: https://github.com/Gallopsled/pwntools/pull/1695
[1735]: https://github.com/Gallopsled/pwntools/pull/1735
[1738]: https://github.com/Gallopsled/pwntools/pull/1738
[1742]: https://github.com/Gallopsled/pwntools/pull/1742
[1757]: https://github.com/Gallopsled/pwntools/pull/1757
[1758]: https://github.com/Gallopsled/pwntools/pull/1758

## 4.4.0 (`beta`)

Expand Down
2 changes: 1 addition & 1 deletion pwnlib/commandline/shellcraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def main(args):

vma = args.address
if vma:
vma = eval(vma)
vma = pwnlib.util.safeeval.expr(vma)

if args.format in ['e','elf']:
args.format = 'default'
Expand Down

0 comments on commit 153b35b

Please sign in to comment.