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

How to install hostapd-wpe on Raspberry Pi #35

Open
getr00t opened this issue Jun 9, 2024 · 7 comments
Open

How to install hostapd-wpe on Raspberry Pi #35

getr00t opened this issue Jun 9, 2024 · 7 comments

Comments

@getr00t
Copy link

getr00t commented Jun 9, 2024

I want to study airgeddon on Raspberry Pi 4 OS, but it says hostapd-wpe is missing. I found that hostapd dependency is installed by default on Raspberry Pi system. Is hostapd not equivalent to hostapd-wpe? How can I install hostapd-wpe successfully? Thank you.
System version: Debian GNU/Linux 11 (bullseye)
1265

error

libnl

@decidedlygray
Copy link

You won't be able to apt install hostapd-wpe itself since it is a patch to hostapd. Unless you are using Kali Linux.

To address your screenshot of missing "libnl-dev", I'd try to instead install "libnl-3-dev".

The rest of your screenshots don't seem to be showing that you're following the "Building" instructions in the readme.

If you would rather avoid manually building I suggest installing Kali Linux on your Pi, which does contain a hostapd-wpe package.

Hope that helps!

@getr00t
Copy link
Author

getr00t commented Jun 9, 2024

You won't be able to apt install hostapd-wpe itself since it is a patch to hostapd. Unless you are using Kali Linux.

To address your screenshot of missing "libnl-dev", I'd try to instead install "libnl-3-dev".

The rest of your screenshots don't seem to be showing that you're following the "Building" instructions in the readme.

If you would rather avoid manually building I suggest installing Kali Linux on your Pi, which does contain a hostapd-wpe package.

Hope that helps!

I just want to build it manually but it didn't work. I don't want to use kali linux, so I use the Raspberry Pi system. libnl-3-dev is installed. How should I build it? I don't understand the documentation.
IMG_20240610_033602

@decidedlygray
Copy link

I'm not sure how I can help without more specific errors from the docs.

Basically I would set up a space to install/build:

$ sudo -i
$ cd /opt/

Then I'd follow the docs:

General

	Now apply the hostapd-wpe.patch:
    
    $ git clone https://github.com/OpenSecurityResearch/hostapd-wpe

    $ wget http://hostap.epitest.fi/releases/hostapd-2.6.tar.gz
    $ tar -zxf hostapd-2.6.tar.gz
    $ cd hostapd-2.6
    $ patch -p1 < ../hostapd-wpe/hostapd-wpe.patch 
    $ cd hostapd
    
    If you're using Kali 2.0 edit .config file and uncomment:
    CONFIG_LIBNL32=y
    
    $ make

    I copied the certs directory and scripts from FreeRADIUS to ease that 
    portion of things. You should just be able to:

    $ cd ../../hostapd-wpe/certs
    $ ./bootstrap

    then finally just:
    
    $ cd ../../hostapd-2.6/hostapd
    $ sudo ./hostapd-wpe hostapd-wpe.conf

@getr00t
Copy link
Author

getr00t commented Jun 9, 2024

I'm not sure how I can help without more specific errors from the docs.

Basically I would set up a space to install/build:

$ sudo -i $ cd /opt/

Then I'd follow the docs:

General

	Now apply the hostapd-wpe.patch:
    
    $ git clone https://github.com/OpenSecurityResearch/hostapd-wpe

    $ wget http://hostap.epitest.fi/releases/hostapd-2.6.tar.gz
    $ tar -zxf hostapd-2.6.tar.gz
    $ cd hostapd-2.6
    $ patch -p1 < ../hostapd-wpe/hostapd-wpe.patch 
    $ cd hostapd
    
    If you're using Kali 2.0 edit .config file and uncomment:
    CONFIG_LIBNL32=y
    
    $ make

    I copied the certs directory and scripts from FreeRADIUS to ease that 
    portion of things. You should just be able to:

    $ cd ../../hostapd-wpe/certs
    $ ./bootstrap

    then finally just:
    
    $ cd ../../hostapd-2.6/hostapd
    $ sudo ./hostapd-wpe hostapd-wpe.conf

What does hostapd-2.6.tar.gz do here? Doesn't my Raspberry Pi come with hostapd by default? The version is newer than 2.6 Why do I need to install and compile it? wget http://hostap.epitest.fi/releases/hostapd-2.6.tar.gz is a dead link http code 404 I have downloaded hostapd-2.6.tar.gz using another link I am trying again It is 03:55 AM I got up late at night and turned on my computer but it still doesn't work Error message It is frustrating

I read the issue #1 which mentioned installing Solved by apt-get install libssl1.0-dev but it doesn't work for me
baocuo850

IMG_20240610_033602
89513
89530_040453

@getr00t
Copy link
Author

getr00t commented Jun 10, 2024

I'm not sure how I can help without more specific errors from the docs.

Basically I would set up a space to install/build:

$ sudo -i
$ cd /opt/

Then I'd follow the docs:

General

	Now apply the hostapd-wpe.patch:
    
    $ git clone https://github.com/OpenSecurityResearch/hostapd-wpe

    $ wget http://hostap.epitest.fi/releases/hostapd-2.6.tar.gz
    $ tar -zxf hostapd-2.6.tar.gz
    $ cd hostapd-2.6
    $ patch -p1 < ../hostapd-wpe/hostapd-wpe.patch 
    $ cd hostapd
    
    If you're using Kali 2.0 edit .config file and uncomment:
    CONFIG_LIBNL32=y
    
    $ make

    I copied the certs directory and scripts from FreeRADIUS to ease that 
    portion of things. You should just be able to:

    $ cd ../../hostapd-wpe/certs
    $ ./bootstrap

    then finally just:
    
    $ cd ../../hostapd-2.6/hostapd
    $ sudo ./hostapd-wpe hostapd-wpe.conf

@decidedlygray So what is the reason for this? Thank you. What should I do?

@getr00t
Copy link
Author

getr00t commented Jun 10, 2024

I'm not sure how I can help without more specific errors from the docs.

Basically I would set up a space to install/build:

$ sudo -i
$ cd /opt/

Then I'd follow the docs:

General

	Now apply the hostapd-wpe.patch:
    
    $ git clone https://github.com/OpenSecurityResearch/hostapd-wpe

    $ wget http://hostap.epitest.fi/releases/hostapd-2.6.tar.gz
    $ tar -zxf hostapd-2.6.tar.gz
    $ cd hostapd-2.6
    $ patch -p1 < ../hostapd-wpe/hostapd-wpe.patch 
    $ cd hostapd
    
    If you're using Kali 2.0 edit .config file and uncomment:
    CONFIG_LIBNL32=y
    
    $ make

    I copied the certs directory and scripts from FreeRADIUS to ease that 
    portion of things. You should just be able to:

    $ cd ../../hostapd-wpe/certs
    $ ./bootstrap

    then finally just:
    
    $ cd ../../hostapd-2.6/hostapd
    $ sudo ./hostapd-wpe hostapd-wpe.conf

I have provided the error information. What should I do? Thank you.

@getr00t
Copy link
Author

getr00t commented Jun 10, 2024

@decidedlygray Hi, brother, I have uploaded the compilation error message why is there no message? What should I do with this error? I look forward to your help. Thank you.

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

2 participants