io12 / pwninit

pwninit - automate starting binary exploit challenges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when installing ( compiling phase )

MajbriOussema opened this issue · comments

Hello,
I am always having this error when installing pwninit, is it from caused by the last update ? can you help me.
Thank you
Compiling pwninit v3.0.1
error[E0277]: a value of type std::ffi::OsString cannot be built from an iterator over elements of type &_
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/pwninit-3.0.1/src/patch_bin.rs:112:10

Capture

commented

same issue here, going crazy :)

What version of Rust do you have installed and does updating to the latest stable Rust fix it?

v1.53.0.
I think this is the latest version.
Capture2

That is really confusing. I tried just now with v1.53.0 and it worked for me, and v1.53.0 added this feature https://github.com/rust-lang/rust/blob/master/RELEASES.md#libraries-1. Are you sure you're compiling with v1.53.0?

reinstall your rust may be it can fix this problem

@Lambangaw's suggestion to reinstall Rust is a good idea. I'm going to close this issue for inactivity and because I have no idea what the problem is, but feel free to reopen it if you still have the issue. Worst case, I can change the way it does OsString concatenation.

Quick fix that worked for me on Kali Linux: Install Rust using the official installer script instead of the version in the Kali repos (v1.48 vs. v1.53 at the time of writing):

  1. Make sure to uninstall the repo version first:
    sudo apt remove --purge cargo && sudo apt autoremove

  2. Install using the script provided here:
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  3. Build pwninit:
    cargo install pwninit

image