Skip to content
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

Installation instructions from tutorial should be updated #16

Open
marcin-chwedczuk opened this issue Jan 9, 2021 · 6 comments
Open

Comments

@marcin-chwedczuk
Copy link

The current installation instructions: https://docs.pwntools.com/en/stable/install.html
The main difference is using Python3. After my last problem this time I decided to use Kali linux.
Running:

pip install --upgrade git+https://github.com/Gallopsled/pwntools.git
python3 -c 'from pwn import *'

worked. python without version did not work.

Please update tutorial to point to the current (up to date) installation instructions.

@zachriggle
Copy link
Member

We also need to update the Pwntools tutorial page on installation, it has outdated info on installing Binutils.

@zachriggle
Copy link
Member

@marcin-chwedczuk You mention "from tutorial", are you referring to the official docs at docs.pwntools.com (which you linked to) or are you referring to the pwntools-tutorial repository?

The tutorial instructions on this repository ARE outdated and need to be updated

Python2 is EOL and should be consider deprecated. We make a LOT of effort to ensure things still work (can't thank @Arusekk enough for this) but we STRONGLY recommend using Python3.

On that note, we should probably change the installation instructions to all consistently use e.g. python3 -m pip to be less ambiguous on systems that still have Python2 installed as their default.

@marcin-chwedczuk
Copy link
Author

A: I used the instructions from the tutorial that you linked (https://github.com/Gallopsled/pwntools-tutorial/blob/master/installing.md). This was the first Google result when I searched for "pwn tools tutorial".

My Kali VM is quite fresh (< year old) and indeed it uses python 2.x as the default one, maybe because a lot of sec tools are still on 2.7???

@Arusekk
Copy link
Member

Arusekk commented Jan 12, 2021

People should really let Python 2 die in peace. It should not be used for anything new.

So, I don't know why Kali hasn't done that yet, but it certainly will. Since more and more sec tools are now on 3.7+ only. When I heard of pwntools during a camp and saw it didn't have py3 support, I glued together some minimal port to show the teacher that 3 is the new 2, and then I saw that it was the most important sec project holding back Python 3 adoption, I went and spent the rest of my first high school holiday on porting it. Then I submitted the patches and here I am the (almost) only maintainer now :)

So if you have time, and find a great project with no py3 support, I dare you to try to port it. It is so fulfilling: you learn stuff and help all those fellow FLOSS users.

@zachriggle
Copy link
Member

@Arusekk I had no idea you were in high school when you did that, I'm super impressed

@Arusekk
Copy link
Member

Arusekk commented Jan 12, 2021

@zachriggle I didn't tell you cause you would totally get super suspicious :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants