-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command: support alternatives including sub command wrapper like pwn #701
command: support alternatives including sub command wrapper like pwn #701
Conversation
bde67b8
to
e81aacb
Compare
welp, rip CI, i need to figure out what that cryptic test mismatch is and why the test binaries fail horribly on the newer travis ubuntu. Maybe @disconnect3d has a hint? |
If it helps any, the pwn wrapper is ALWAYS installed.
However, some distros have it as the only binary installed.
On Tue, Jan 28, 2020 at 7:12 PM Levente Polyak ***@***.***> wrote:
welp, rip CI, i need to figure out what that cryptic test mismatch is and
why the test binaries fail horribly on the newer travis ubuntu. Maybe
@disconnect3d <https://github.com/disconnect3d> has a hint?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#701?email_source=notifications&email_token=AAA3IGHM2JZFO3XSYOPREJTRADJWZA5CNFSM4KM4X6A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFTFTQ#issuecomment-579547854>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3IGALECXGZYXLX3BQ2QLRADJWZANCNFSM4KM4X6AQ>
.
--
*Zach Riggle*
|
@anthraxx um, that's weird.. maybe some ld.so/libc breaking change? Sounds like we should recompile the binaries. |
@disconnect3d yeah looks like that, i was first confused because it reads like travis creates those, but we seem to store them in the tests directory. Can you look into recompiling them against xenial? |
@anthraxx Will do, let's skip them for now |
Hmm maybe we should introduce the change to xenial in another PR? |
e81aacb
to
5fc1925
Compare
@disconnect3d yes, i just tried to fix the CI :D pushed without |
Additionally speed up the checksec logic by removing the --version check. Simply try to shell out and use the first working option variant as we can't easily detect the different available alternatives in a bulletproof way. This implementation allows to use the sub command wrapper 'pwn' to call checksec in case pwntools has been installed using --only-use-pwn-command To unconditionally unify the usage, the functions cmd attribute stores the base command to execute in form of a list that can be used to concatenate an array of options against it and pass the final list to call_cmd
Lets try a third available version of checksec as the lowest order variant in our cascade that works by only passing the target file without additional specifier.
5fc1925
to
1db95f9
Compare
command: support alternatives including sub command wrapper like pwn
Additionally speed up the checksec logic by removing the --version
check. Simply try to shell out and use the first working option variant
as we can't easily detect the different available alternatives in a
bulletproof way.
This implementation allows to use the sub command wrapper 'pwn' to call
checksec in case pwntools has been installed using --only-use-pwn-command
To unconditionally unify the usage, the functions cmd attribute stores
the base command to execute in form of a list that can be used to
concatenate an array of options against it and pass the final list to
call_cmd